电脑故障

位置:IT落伍者 >> 电脑故障 >> 浏览文章

十四 真经之过桥问题[6]


发布日期:2018/6/15
 

The PV code Using Pascal

begin

mutex:semaphore=;

cobegin

process Scar//南边来的车

begin

come;

p(mutex);

过桥;

v(mutex);

go;

end

process Ncar//北边来的车

begin

come;

p(mutex);

过桥;

v(mutex);

go;

end

coend

end

返回《操作系统之PV金典》

[] [] [] [] [] [] [] []

上一篇:3.2.4 简答题[1]

下一篇:十四 真经之过桥问题[5]