Let’s consider an example of how this can happen. In Chapter 3, we devel-
oped a model of a system consisting of cooperating sequential processes or
threads, all running asynchronously and possibly sharing data.We illustrated
this model with the producer–consumer problem, which is representative of
operating systems. Specifically, in Section 3.4.1, we described how a bounded
buffercouldbeusedtoenableprocessestosharememory.
operating system concepts,9th edition 204p,여기에서 bounded buffer가 뭘 말하는거지?
말 그대로 한계가 있는(크기가 정해진) 버퍼라는 뜻임. bound는 크게 세 가지 뜻이 있는데 하나는 "튀어오른다"는 뜻의 bound, 또 하나는 "경계(boundary), 경계를 짓다"라는 뜻의 bound, 나머지 하나는 bind(묶다)의 과거, 과거분사인 bound가 있음. bounded라는 표현으로 볼 때 bind의 과거형은 아닐 거고, 그래서 "경계가 있는(끝이 있는) 버퍼"임을 어렵지 않게 알 수 있음.
제한된 메모리 영역에 Circular Array 식으로 구조를 만들면 제한된 메모리 영역만으로도 producer-consumer 문제를 해결할 수 있지.
? producer-consumer problem이 다른 말로 bounded buffer problem이다. 버퍼가 무한하다면 둘 다 그냥 직진하면 되는데 producer가 produce하다 보면 버퍼의 끝에 도달하게 되기 때문에 생기는 문제임.
아 그렇군 답변 감사감사~
이거 오랜만에 본다 이등병때 컴독학한다고 공룡책 보면서 배웠었는데 ㅋㅋ