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
Jan 16, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment