Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 440 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 440 Bytes

Os-2_project-

The Producer-Consumer problem is a classic synchronization problem in operating systems.

The problem is defined as follows: there is a fixed-size buffer and a Producer process, and a Consumer process.

The Producer process creates an item and adds it to the shared buffer. The Consumer process takes items out of the shared buffer and “consumes” them.

video animation:https://www.youtube.com/watch?v=8vfahI3NG-A&t=5s