Skip to content

Commit 557dedf

Browse files
committed
Add: Prodcutor-Consumer using C++ semaphores
1 parent 233f37a commit 557dedf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

productor_consumer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/**
22
3+
C++ - SEMAPHORES
4+
35
This is an easy example of how to use semaphores in C++.
46
Basically, we have two threads, one to write and another
57
to read, and the only thing they do is write simple long

0 commit comments

Comments
 (0)