From 2ee324eec1970f67297a2f42a263fb02b8d3c971 Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Tue, 13 Mar 2018 11:11:28 +0800 Subject: [PATCH] auto commit --- notes/计算机操作系统.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes/计算机操作系统.md b/notes/计算机操作系统.md index 89958614..18074fee 100644 --- a/notes/计算机操作系统.md +++ b/notes/计算机操作系统.md @@ -310,7 +310,7 @@ semaphore full = 0; void producer() { while(TRUE){ - int item = produce_item; + int item = produce_item(); down(empty); down(mutex); insert_item(item); @@ -323,7 +323,7 @@ void consumer() { while(TRUE){ down(full); down(mutex); - int item = remove_item(item); + int item = remove_item(); up(mutex); up(empty); consume_item(item);