分类: LINUX
2012-04-09 21:41:50
MagicBoy20102012-04-11 17:54:18
asuka20012012-04-10 23:22:28
在《Linux内核的设计与实现》第3版中提到了:
The simplicity and efficiency of the mutex comes from the additional constraints it imposes on its users over and above what the semaphore requires. Unlike a semaphore, which implements the most basic of behavior in accordance with Dijkstra’s original de-sign, the mutex has a stricter, narrower use case:
1. Only one task can hold the mutex at a time.That is, the usage count on a mutex is always one.
2. Whoever locked a mutex m