Jan 16, 2009

Difference between Mutex and semaphore

Difference between Mutex and semaphore
Mutext: one time only one thread can execute, binary semaphore, can use volatile to replace
Semaphore: has a maximum number of threads (more than one) to execute the shared resource

No comments:

Post a Comment