This is a multi-threading program that i found online. Can some one please explain why it is q.join() and not t.join()?

后端 未结 0 1533
天命终不由人
天命终不由人 2021-01-21 06:48

from threading import Thread, Lock, current_thread import threading import Queue

def worker(q, lock): while True: value = q.get()

    with lock:
        pr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题