Task

Spawn a new process which can run simultaneously with, and independently of, the original parent process.




main:
(
  INT pid;
  IF (pid:=fork)=0 THEN
    print("This is new process")
  ELIF pid>0 THEN
    print("This is the original process")
  ELSE
    print("ERROR: Something went wrong")
  FI
)