Skip to content

enisesahan/Coffee-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coffee-Simulator

Producer-Consumer Problem using Semaphores & Shared Memory

  • Shared Memory uses 15 slots for coffe production, 1 int count Head and 1 int count Tail.
  • Semaphores are used. One binary semaphore controls accessing to 15 slots, one counting semaphore is for controlling number of empty slots and one counting semaphore for controlling number of full slots.
  • 3 Baristas (These are producer processes), 50 Clients (These are consumer processes).
  • Producer and Consumer processes use semaphore to wake each other.

About

Producer-Consumer Problem using SHM & SEM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages