Understanding Linux Processes 2
2. Can you spawn independent processes from a C Program using Linux, or are you always going to have the parent/child dependency (using fork() )? I assume that when using the fork() call, if you kill the parent process the child is also killed. Can you create and run 4 totally independent processes from, say a main function, without weeding through several if statements to get to the 4th process? It seems to me that it should be the job of the OS to handle the scheduling of processes without the programmer having to use the if statements.