Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Process-Thread
Title: producer-consumer-problem Download
 Description: Introduction In this project, we will design a programming solution to the bounded-buffer problem using the producer and consumer processes. The solution uses three semaphores: empty and full, which count the number of empty and full slots in the buffer, and mutex, which is a binary (or mutual exclusive) semaphore that protects the actual insertion or removal of items in the buffer. For this project, standard counting semaphores will be used for empty and full, and, rather than a binary semaphore, a mutex lock will be used to represent mutex. The producer and consumer- running as separate threads- will move items to and from a buffer that is synchronized with these empty, full, and mutex structures. You are required to use the pthread package to solve this problem in this project.And there can be several producers/consumers as many as you want.
 Downloaders recently: [More information of uploader student1407]
File list (Check if you may need any files):
producer-consumer-problem.c
producer-consumer-problem.exe
    

CodeBus www.codebus.net