Skip to content

yashbansal10/ProducerConsumerProject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

In this project, we will design a programming solution to the bounded-buffer problem using the producer and consumer processes. For this project, we will use standard counting semaphores for
empty and full and a mutex lock, rather than a binary semaphore, to represent mutex. The producer and consumer—running as separate threads—will move items to and from a buffer that is synchronized with the empty, full, and mutex structures. This problem represents the common problem of process synchronization in operating systems. In the given solution there is a critical section for every process whether it is producer or consumer that is to be executed without any interruption. There is a semaphore named full that check number of filled spaces in array and similarly empty semaphore checks for the number of empty spaces in the buffer. Mutex lock ensures that the critical section is executed without any interruption.

About

In this project, we will design a programming solution to the bounded-buffer problem using the producer and consumer processes. For this project, we will use standard counting semaphores for empty and full and a mutex lock, rather than a binary semaphore, to represent mutex. The producer and consumer—running as separate threads—will move items t…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 100.0%