Hi all,
If i have a Mutex (created with CreateMutex), and i have a lot of threads waiting with WaitForSingleObject, bcoz other thread acquired the Mutex.
When i set ReleaseMutex, all the waiting threads are released or only the first thread that called WaitForSingleObject?.

Greets, and thanks.
Posted on 2003-06-17 01:50:04 by r00t
The threads that are waiting for the mutex are served in a first-come-first-serve basis. If the owner releases the mutex, only the first thread that is waiting will be released. The other threads will be released when that thread releases the mutex again.

Hope it will help you
Posted on 2003-06-17 06:44:50 by rxbagain
About that, could you give me some good link for some really clear mutex usage sample ?

Thx B7
Posted on 2003-06-18 07:03:47 by Bit7