I would like to know how to spawn multiple processes from one process, and have them all doing something at once. I know that you can create a process with the fork() function, but aren't I in the child process when I do that?
So, if I did:
child = fork();
, then if pid_t is 0, then I'm in the child process now, right? So, if I'm the child now, I could get that child process started on some task, but how do I go back up to the parent to create other processes and have them start other tasks in parallel, without waiting for this current child to die?