For Students
Sunday, 11 March 2012
Bounded-Buffer
Consumer process
item
nextConsumed
;
while (1) {
while (counter == 0)
; /* do nothing */
nextConsumed
= buffer[out];
out = (out + 1) % BUFFER_SIZE;
counter--;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment