摘要:
Mutex:Is a key to a toilet. One person can have the key - occupy the toilet - at the time. When finished, the person gives (frees) the key to the next person in the queue.Semaphore:Is the number of free identical toilet keys. Example, say we have four toilets with identical locks and keys. The semap 阅读全文