Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#Import os Library import os # Fork a child process processid = os.fork() print(processid) # processid > 0 represents the parent process if processid > 0 : print("\nParent Process:") print("Process ID:", os.getpid()) print("Child's process ID:", processid) # processid = 0 represents the created child process else : print("\nChild Process:") print("Process ID:", os.getpid()) print("Parent's process ID:", os.getppid())