fork a thread : Os : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Os »

 

fork a thread


ret = os.fork()        # spawn processes, both return

if ret == 0:           # child returns with PID of 0
    child_suite        # child code
else:                  # parent returns with child's PID
    parent_suite       # parent code



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Module
» Os