import time import os print("Process ID: {}".format(os.getpid())) print("Entering infinite loop ...") while 1: time.sleep(2)