Neil Devlin wrote:
As I am using 2 processors, and having 4 threads in my IOCP. If for example 4 threads do a Postmessages with he same message,(for example the above message). When the system comes to execute the function 4 times, does it wait until one is finished before doing the next one? If not, suppose I am better doing a EnterCriticalSection(..) and LeaveCriticalSection(..) withn the routine?

Since all of the four function calls are executed in the same thread, they cannot be overlapped. IOW, they will execute one after another (with some possible time inbetween.)


--
Ehsan Akhgari
Farda Technology <http://www.farda-tech.com/>

If C gives you enough rope to hang yourself, C++ gives you enough rope to bind and gag your neighborhood, rig the sails on a small ship, and still have enough rope left over to hang yourself from the yardarm.

_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to