pid = forkif (pid) puts "Hello from parent process: #$$" puts "Created child process #{pid}"else puts "Hello from child process: #$$"end