https://github.com/codophobia/multi-producer-consumer-problem-simulation
Simulation of a multi producer-consumer problem in c
https://github.com/codophobia/multi-producer-consumer-problem-simulation
Last synced: 15 days ago
JSON representation
Simulation of a multi producer-consumer problem in c
- Host: GitHub
- URL: https://github.com/codophobia/multi-producer-consumer-problem-simulation
- Owner: codophobia
- Created: 2016-08-02T18:57:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-08T20:24:40.000Z (over 9 years ago)
- Last Synced: 2025-01-20T00:16:44.686Z (12 months ago)
- Language: C++
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multi Prodcuer-Consumer Problem Simulation
The producer-consumer problem is one of the classical examples of synchronization. This program simulates a multi producer-consumer problem in C++(althrough most part is c).
Compiling the program: g++ filename.cpp -pthread
Running the program: ./a.out number_of_producers number_of consumers maximum_buffer_size