the semaphore variable full,empty,and mutex are 0,n,1 respectively.process p1 adds one item at a time and p2 removes one item at a time from the same buffer.in the program ,K,L,M,N.
P1:while(1)
{
k;p(mutex);
add an item to the buffer;
v(mutex);L;
}
p2:while(1)
{
M;p(mutex);
remove an item to the buffer
v(mutex);N;
}
answer is P(empty),V(full),P(fulll),V(empty) how???????