from threading import Thread, Lock, current_thread import threading import Queue
def worker(q, lock): while True: value = q.get()
with lock: pr