Original Post
OK... so as some of you may have followed before..
I am using a blocking server to wait for an incoming connection and than start a new thread passing the socket information which will than use blocking sockets to handle information from the client. This will allow many people to be connected at once without interfering with other clients when one is waiting for incoming data.
Now, if I create a class that handles encoding and decoding network messages, and make that a globlal in the parent thread, the child threads should still be capable of accessing that to my understanding, and a blocking call should not block any other of the threads right?
What if the class is in a DLL. To my understanding since the application is sharing the dll code it saves a little on memory, and there should be no problems when each thread uses an instance of the class from the DLL file, right?
I am not entirely sure of all the quirks of multithreading myself, so please bear with my questions.
Gamedev''s AI Auto-Reply bot.