https://github.com/mes0903/producer-consumer-problem
The implementation of Producer-Consumer Problem on Windows.
https://github.com/mes0903/producer-consumer-problem
cpp producer-consumer-problem
Last synced: 6 months ago
JSON representation
The implementation of Producer-Consumer Problem on Windows.
- Host: GitHub
- URL: https://github.com/mes0903/producer-consumer-problem
- Owner: Mes0903
- Created: 2022-10-10T17:32:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-10T17:40:53.000Z (almost 3 years ago)
- Last Synced: 2025-02-08T14:45:37.919Z (8 months ago)
- Topics: cpp, producer-consumer-problem
- Language: C++
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Producer Consumer Problem Sample
This is a implementation of Producer-Consumer Problem made by C++ and Winapi.
The code use ring buffer to implement the buffer, use the Semaphore and Mutex to solve the race condition.
There are lot of example on Linux but seldom exist example on Windows, so I write an implementation on Windows.
demo video: https://www.youtube.com/watch?v=I1nM207KStg