Bounding the buffer
A producer writes items into a shared buffer and a consumer removes them. The buffer holds at most 100 items.
Which conditions must the synchronisation enforce?
A producer writes items into a shared buffer and a consumer removes them. The buffer holds at most 100 items.
Which conditions must the synchronisation enforce?