問題描述
(由Dijkstra首先提出並解決)
The P
解法一
semaphore Fork[i]:=
begin
Thiking;
Being hangery;
P(Fork[i mod
p(Fork[(i+
Eating;
v(Fork[i mod
v(Fork[(i+
end
[
From:http://tw.wingwit.com/Article/program/czxt/201311/24287.html