fork download
  1. import Queue
  2. import threading
  3. import time
  4.  
  5. lock = threading.Lock()
  6.  
  7. def queue_test():
  8. with lock:
  9. time.sleep(100)
  10.  
  11. threading.Thread(target=queue_test).start()
  12. exit()
  13.  
Time limit exceeded #stdin #stdout 5s 19176KB
stdin
Standard input is empty
stdout
Standard output is empty