fork(2) download
  1. import threading as H,time as T
  2. m=T.time
  3. z=H.Thread
  4. s=m()
  5. r=[]
  6. def f():n=m();T.sleep(9);f.t+=m()-n
  7. f.t=0
  8. exec"r+=[z(None,f)];r[-1].start();"*8
  9. map(z.join,r)
  10. print m()-s,f.t
Internal error #stdin #stdout 0.01s 9120KB
stdin
Standard input is empty
stdout
Standard output is empty