Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

semaphore in python

import threading

sem = threading.Semaphore() # or sem = threading.Semaphore(value=n)
sem.acquire()
# Your code here
sem.release()
 
PREVIOUS NEXT
Tagged: #semaphore #python
ADD COMMENT
Topic
Name
3+7 =