摘要: 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 阅读全文
posted @ 2012-10-17 20:40 greencolor 阅读(142) 评论(0) 推荐(0) 编辑