# creating a child process using fork
# import module os.
import os, time
id = os.fork()
# at this point, after execution of the fork,
# 2 processes are running, child and parent
if (id==0):
	   # this is the child
	   # do something here in the child process
    time.sleep(5)
    print('child')
else:
	   # this is the parent
	   # do something here in the parent process
    time.sleep(10)
    print('parent')
