Producer consumer: Busy waiting
We can only produce when buffer is not full.
We can only consume when buffer is not empty.
In the above scenarios we busy wait.
We can only produce when buffer is not full.
We can only consume when buffer is not empty.
In the above scenarios we busy wait.