Ok this is kind of an odd question but Im going to ask it because I need an answer

Lets say I have a server app that uses winsock I will call it server.exe and 2 people have client.exe which connects to server.exe, got me so far right?

ok now lets say there is a module in server.exe that does some extensive processing of some files when told to by client.exe

lets say client one sends a command to do the file processing which takes lets say 5 minutes to complete. In this routine it is looping to contstantly check the status of the job.

So before the job is finished, client two sends the same request which calls this module code. Does the code execute at the same time? or does it wait for the module code from client ones request to finish and then processes client twos request? or does it crash and cause a tear in the fabric of space/time?

I thought about using class modules because for each request you can create a new instance of the class which would then be running their own set of code within themselves, but the code in the module uses AddressOf when interfacing with this C++ DLL and you can only use AddressOf in a standard module.

Thanks for your help