Try the fork(); command. The command copies your entire process, and runs them simultaneously. A non-zero value is returned to the child process, and a zero to the parent, so you can tell which is what...
if (!($PID = fork()))
{
SOME_SUB();
}
else
{
SOME_OTHER_SUB();
}
The child will run until it hits an exit or die....