For Students
Monday, 12 March 2012
Bounded-Buffer Problem Producer Process
do
{
…
produce an item in
nextp
…
wait(empty);
wait(
mutex
);
…
add
nextp
to buffer
…
signal(
mutex
);
signal(full);
}
while (1);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment