For Students
Monday, 12 March 2012
Readers-Writers Problem Reader Process
wait(
mutex
);
readcount
++;
if (
readcount
== 1)
wait(
rt
);
signal(
mutex
);
…
reading is performed
…
wait(
mutex
);
readcount
--;
if (
readcount
== 0)
signal(
wrt
);
signal(
mutex
):
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment