programming_tutorials/wip/06_other_languages/python/semaphore.py

9 lines
117 B
Python

import threading
import time
sem = threading.Semaphore()
def fun1():
sem.acquire()
#munka
sem.release()