对生产者 — 消费者问题的算法描述如下,请把 PV 操作填入下述方框中,以保证进程正确的并发执行。 Var empty,full,mutex:semaphore:=n,0,1; Producer: begin repeat ; ; buffer(in):=m; in:=(in+1)mod n; ; ; until false end Consumer: begin repeat ; ; m:=buffer(out); out:=(out+1)mod n; ; ; until false end
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】We hope that the management will take note of the findings and improve their products acc____(相应地).
【简答题】The recovery strategy by Ahold’s management includes _____ [A] avoiding the next accounting scandal [B] diverting investment to other fields [C] issuing rights to more retailers [D] selling the retail...