import time import os import thread def thread1(): time.sleep(1) pid = os.fork() thread.start_new_thread(thread1, ()) time.sleep(10)