当前学科:微机原理及应用
  • 题目: 未知类型

      试修改下面消费者生产者问题解法中的错误: producer: begin repeat produce an item in nextp; wait(mutex); wait(empty); buffer(in):=nextp; signal(mutex); until false; end consumer: begin repeat wait(mutex); wait(full); nextc:=buffer(out); out:=out+1; signal(mutex); consume item in nextc; until false; end

    答案: <查看本题扣1积分>

    查看答案

    答案不对?请尝试站内搜索