In the implementation of finite bounded buffer shown in Figure 5.16…
A. What line blocks a producer thread when the buffer is full?
B. What line releases a blocked producer thread when space becomes available?
C. What line blocks a consumer thread when the buffer is empty?
D. What line releases a blocked consumer thread when data becomes available?
Book used is Operating Systems, Internals and Design Principles. Seventh Edition by William Stallings.