Skip to content

Commit 7e1b19c

Browse files
committed
bounded semaphor
1 parent 95c78e3 commit 7e1b19c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/thread_semaphore.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
num = 0 # shared resource
1111
lock_normal = Semaphore(value=2)
12+
13+
1214
# lock_bounded = BoundedSemaphore(value=2)
1315

1416
def add():

0 commit comments

Comments
 (0)