cobegin
Procedure Bike T
begin
p(T
p(L);
go T to L;
p(M);
go into M;
V(L);
P(k);
go K to s;
V(M);
V(k);
V(T
end
Procedure Bike N
begin
P(N
p(k);
go v to k;
p(M);
go into M;
V(k);
P(L);
go L to T;
V(M);
V(L);
V(N
end
coend
返回《操作系統之PV金典》
[
From:http://tw.wingwit.com/Article/program/czxt/201311/24051.html