Create a Hashtable that in a different thread maybe stores the Data structure like this:
ID, BEG
ID, BEG
ENDPOS
When checking if there is still enough space to allocate in a certain user you can just check if it would override the BEG of the next User.
I'll add other ideas tomorrow.
Create a Hashtable that in a different thread maybe stores the Data structure like this:
ID, BEGID, BEGENDPOSWhen checking if there is still enough space to allocate in a certain user you can just check if it would override the BEG of the next User.
I'll add other ideas tomorrow.