The P
var load
load=
north=
south=
GO_South()
P(load);
P(north);
過北段橋;
到橋中間;
V(north);
P(south);
過南段橋;
到達南岸;
V(south);
V(load);
GO_North()
P(load);
P(south);
過南段橋;
到橋中間
V(south);
P(north);
過北段橋;
到達北岸
V(north);
V(load);
返回《操作系統之PV金典》
[
From:http://tw.wingwit.com/Article/program/czxt/201311/24220.html