四川丹甫制冷压成缩机股份有限公司招.90.pptVIP

  • 1
  • 0
  • 约7.13千字
  • 约 29页
  • 2019-01-18 发布于福建
  • 举报

四川丹甫制冷压成缩机股份有限公司招.90.ppt

四川丹甫制冷压成缩机股份有限公司招.90

Outline for Today;Semaphores;Semaphore Usage;while (1) { ...other stuff... critical section } ;Producer / Consumer;Producer / Consumer;Tweedledum and Tweedledee;The code shown above exhibits a well-known synchronization flaw. Outline a scenario in which this code would fail, and the outcome of that scenario;Show how to fix the problem by replacing the Sleep and Wakeup calls with semaphore P (down) and V (up) operations. ;Monitor Abstraction;Condition Variables;Nachos-style Synchronization;Monitor Abstraction;Monitor Abstraction;EnQ:{Lock-Acquire ( ); if (head == null) {head = item; notEm

文档评论(0)

1亿VIP精品文档

相关文档