📅  最后修改于: 2022-03-11 14:56:20.807000             🧑  作者: Mango
代码示例1
process P[i]
while true do
{ THINK;
PICKUP(CHOPSTICK[i], CHOPSTICK[i+1 mod 5]);
EAT;
PUTDOWN(CHOPSTICK[i], CHOPSTICK[i+1 mod 5])
}