For Students
Monday, 27 February 2012
Bounded-Buffer – Shared-Memory Solution
Shared data
#define BUFFER_SIZE 10
Typedef
struct
{
. . .
} item;
item buffer[BUFFER_SIZE];
int
in = 0;
int
out = 0;
Solution is correct, but can only use BUFFER_SIZE-1 elements
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment