Question: 1) Write a solution for the bounded-Buffer producer consumer problem, Considering: one producer, one consumer and one buffer. You must declare the number of semaphores
1) Write a solution for the bounded-Buffer producer consumer problem, Considering: one producer, one consumer and one buffer. You must declare the number of semaphores used in you solution and indicate their initial values.
2) Write a solution for Bounded-Buffer producer-consumer problem, considering: one producer, one consumer and two buffers. You must declare the number of semaphores used in your solution and what are initial values. The producer inserts the same value in both buffers. The consumer consume both buffers. Buffer 1 is size 5 and buffer 5 is size 7.
3) When a program initiates an I/O operation and interrupt occurs. What is the name of the interrupt.
4) Draw a state diagram indicating the states a process can be in and the interrupts that moves processes from one state to another.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
