from threading import Thread
from multiprocessing import Process
from time import sleep
from sys import exit
def prcss():
Thread(target=thrd).start()
sleep(10)
print("Exit")
exit(0)
def thrd():
while True:
print("Running")
sleep(1.5)
prcs = Process(target=prcss)
prcs.start()