fork(60) download
  1. #@avhishek_ydv
  2. import os
  3. a=5
  4. if os.fork()==0:
  5. a=a+5
  6. print (a,id(a))
  7. else:
  8. a=a-5
  9. print (a,id(a))
  10.  
Success #stdin #stdout 0.04s 9328KB
stdin
Standard input is empty
stdout
0 94241062497888
10 94241062498208