Operating Systems, Processes And Threads, Multitasking.
see that the program currently running has code for two programs in itself. One is expected to run the if block, and the other the else block. When reaching fork(), the running process is cloned: code, memory allocation, pointer to the last called instruction, stack, heap, and environment. The new