Skip to content

Commit 7e1b19c

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy