【OS】有關哲學家晚餐的Semaphore設計 - 考試

Table of Contents

http://i.imgur.com/MKpgrI5.jpg
請問圖中第二及第五行wait指令中為何要用【mod】呢?
拿掉不行嗎?

謝謝

--
Sent from my Android

--

All Comments

Michael avatarMichael2015-08-31
i+1可能會是5
Lauren avatarLauren2015-09-01
對吼~謝謝
Eden avatarEden2015-09-05
餘數概念
Christine avatarChristine2015-09-08
謝謝