- 8
- 0
- 约1.13万字
- 约 62页
- 2016-09-20 发布于浙江
- 举报
* The producer-consumer problem using semaphores exchange * In conclusion, we use semaphores in two different ways: mutual exclusion (mutex); process synchronization (full, empty). Is it easy to use semaphores? * Mutex: Binary Semaphore Simplified version of semaphore Mutex is used for mutual exclusion problem A variable with only 2 states Lock Unlock * Mutual Exclusion Problem using Mutex semaphore mutex = 1; /* set mutex.count = 1 */ DOWN(mutex); - critical section - UP(mutex); For two parallel processes, the value of mutex is 1, 0, -1 For N parallel processes, the valu
您可能关注的文档
- “大手拉小手,共筑祖国新未来”社会实践报告.docx
- “大手拉小手,共筑祖国新未来”实践报告.doc
- 《Database System Concepts Course Introduction》ch01.ppt
- 《Database System Concepts Course Introduction》ch02.ppt
- 《Database System Concepts Course Introduction》ch03.ppt
- 《Database System Concepts Course Introduction》ch04.ppt
- 《Database System Concepts Course Introduction》ch06.ppt
- 《Database System Concepts Course Introduction》ch07.ppt
- 《Database System Concepts Course Introduction》ch12.ppt
- 《Database System Concepts Course Introduction》ch13.ppt
- 《OPERATING SYSTEMS教学课件》ch2c.ppt
- 《OPERATING SYSTEMS教学课件》ch3a.ppt
- 《OPERATING SYSTEMS教学课件》ch3b.ppt
- 《OPERATING SYSTEMS教学课件》ch4.ppt
- 《OPERATING SYSTEMS教学课件》ch5.ppt
- 《OPERATING SYSTEMS教学课件》ch6.ppt
- 《Struts2与控制器Action》hibernate1.ppt
- 《Struts2与控制器Action》hibernate2.ppt
- 《Struts2与控制器Action》hibernate3.ppt
- 《Struts2与控制器Action》hibernate4.ppt
原创力文档

文档评论(0)