- Consumer process removes an item from the shared buffer and puts it in nextc
region buffer when (count > 0)
{
nextc = pool[out];
out = (out+1) % n;
count--;
}
out = (out+1) % n;
count--;
}
No comments:
Post a Comment