Operating System: Chapter 3

在課本給的producer-consumer範例中,bounded buffer是一個circular array,由in跟out紀錄頭尾,而producer只會更改in、consumer只會更改out,所以不會衝突!

留言