You are on page 1of 1

Producer Consumer Aim To write a C program to implement producer consumer relationship

Algorithm 1. Get the stack size and the name of the process. 2. The Producer will produce until stack is full. 3. The Consumer will consume until the stack is empty. 4. If the Stack is empty then the Consumer will not consume the items. 5. If the Stack is full then the Producer will not consume the items. 6. Print the result.

You might also like