Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#importing os and signal Library import os, signal #Create a child process pid = os.fork() #pid greater than 0 denotes the parent process if pid : print("\nIn parent process") # send signal 'SIGSTOP' to the child process # 'SIGSTOP' signal causes the process to stop os.kill(pid, signal.SIGSTOP) print("Child stopped...") else : print("\nIn child process") print("Process ID:", os.getpid())