Get your own Python server Result Size: 625 x 565
x
 
#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())