Fork two processes which share a common 4KB area of memory. One process should produce 10 million bytes, the other should consume them.
Hint: use shared memory, include sys/shm.h. Think to what is fork function doing.
SOLUTION
Download the file here
Exercise from CS3008
No comments:
Post a Comment