有n+
(
(
這個問題較為簡單
The P
var full
full=
empty=
mutex=
cobegin
procedure A_i(i=
begin begin
p(empty); P(full);
p(mutex); p(mutex);
put message to the buffer; Get the message;
v(mutex); v(mutex);
v(full); v(empty);
end end
返回《操作系統之PV金典》
From:http://tw.wingwit.com/Article/program/czxt/201311/24247.html