The fork(2) system call creates a new process. Listing 2 shows fork being used in a simple piece of C code. The code in fork1.c simply makes the call to fork and prints the integer result through a call to printf.
The fork(2) system call creates a new process. Listing 2 shows fork being used in a simple piece of C code. The code in fork1.c simply makes the call to fork and prints the integer result through a call to printf.