Difference between mutex and semaphore
2011-08-20 17:01
330 查看
Difference between mutex and semaphore
1. Mutex can only be unlocked by the process locks it, where as a binary semaphore can be unlocked by any other process.
2. Mutex will only let one thread attempt access, a Semaphore can be assigned a number of threads access.
1. Mutex can only be unlocked by the process locks it, where as a binary semaphore can be unlocked by any other process.
2. Mutex will only let one thread attempt access, a Semaphore can be assigned a number of threads access.
相关文章推荐
- difference between semaphore and mutex
- [OS][Multithread]Difference between Semophore and Mutex
- Differences between LSMW and BDC
- Underlining the differences between Resource Leveling and Resource Smoothing?
- What is the difference between Full load and Incremental load
- Difference between enabled and userInteractionEnabled properties
- Differences between Hub, Network Bridge, Switch and Router
- What is the basic difference between NSTimer, NSTask, NSThread and NSRunloop ?
- The difference between Python __init__ and __new__
- Difference between HashMap and Hashtable in Java
- Difference between List and Set in Java Collection
- Difference Between Static and Volatile
- ruby learning-- Difference between require and include
- Differences and data exchange between Ax3 & AX4
- Mutex vs. Semaphore, what is the difference?
- The difference between Language Interface Pack (LIP) and Language Pack (LP)
- Difference between Global DB name and SID
- The difference between Delegate and Composite
- What is the difference between symbolic link and hard link?