https://github.com/sameetasadullah/producer-consumer-problem-using-semaphores
C++ code to solve producer consumer problem using threads and semaphores
https://github.com/sameetasadullah/producer-consumer-problem-using-semaphores
cpp linux producer-consumer-problem semaphores threads ubuntu
Last synced: 3 months ago
JSON representation
C++ code to solve producer consumer problem using threads and semaphores
- Host: GitHub
- URL: https://github.com/sameetasadullah/producer-consumer-problem-using-semaphores
- Owner: SameetAsadullah
- Created: 2022-08-08T01:54:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T02:00:36.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T17:51:05.456Z (4 months ago)
- Topics: cpp, linux, producer-consumer-problem, semaphores, threads, ubuntu
- Language: C++
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Producer Consumer Problem Using Semaphores
### Description
A simple `C++ Program` to solve `Producer Consumer Problem` using `Threads and Semaphores`.### Manual
1) Use the following command to `Compile the code`:
```
g++ -pthread -o a.out main.cpp
```
2) Use following commands to `Run the Code`:
```
./a.out
```