Process Synchronization Using Monitor and Pthreads
Krishna413
The purpose of this programming project is to explore process synchronization. This will be accomplished by writing a program to solve the bounded buffer problem using monitor concept. Your program must be written using C or C++ and you are required to use the Pthread libraries.
Bounded buffer is used to enable multiple producers and consumers processes to share memory. A producer can place items into the buffer only if the buffer has a free memory location to store the item. A producer cannot add items to a full buffer. A consumer can remove items from the buffer if the buffer is not empty. A consumer must wait to consume items if the buffer is empty. The "items" stored in this buffer will be integers. Your producer processes will have to insert random numbers into the buffer. The consumer processes will consume a number.
- 3 years ago
- 50
- PSYCH 504 Week 6 Individual Assignment Personality Theory Paper
- HCS 335 Week 3 Learning Team Assignment Code of Ethics Paper
- XBCOM 275 Week 2 Assignment Demonstrative Communication Paper
- PHL 251 Week 1 Individual Assignment Nature of Thought Paper
- NTC 242 Week 5 Final Project Network Design for Acme Manufacturing
- MGT 307 Week 5 Organizational Trends Team Paper
- Children Having Children Public Service Announcement
- Business Decision Making Project, Part 3
- Please read and paraphrase the following article:
- Business Management