Task

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




import System.Posix.Process
 
main = do
  forkProcess (putStrLn "This is the new process")
  putStrLn "This is the original process"