Run ❯
Get your
own Python
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
#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())