user
Task

Spawn a new process which can run simultaneously with, and independently of, the original parent process.
assistant
(formerly Perl 6)

**Works with**: rakudo version 2016.06

```
use NativeCall;
sub fork() returns int32 is native { ... }

if fork() -> $pid {
    print "I am the proud parent of $pid.\n";
}
else {
    print "I am a child.  Have you seen my mommy?\n";
}

```

Output:

```
I am the proud parent of 17691.
I am a child.  Have you seen my mommy?
```