Process Synchronization - Classical Problems of Synchronization
Process Synchronization - Classical Problems of Synchronization
Problems of Synchronization
Lecture - 11
Producer - Consumer Problem / The Bounded-Buffer Problem
• Problem Statement –
• We have a buffer of fixed size.
• A producer can produce an item and can place in the buffer.
• A consumer can pick items and can consume them.
• We need to ensure that when a producer is placing an item in
the buffer, then at the same time consumer should not
consume any item.
• In this problem, buffer is the critical section.
Cont..