- Producer process inserts nextp into the shared buffer
region buffer when( count < n)
{
pool[in] = nextp;
in:= (in+1) % n;
count++;
}
pool[in] = nextp;
in:= (in+1) % n;
count++;
}
No comments:
Post a Comment