Fork (operating System)

Fork (operating System)

In computing, when a process forks, it creates a copy of itself. Under Unix-like operating systems, this is implemented with the fork system call. The original process that calls fork is the parent process, and the newly created process is the child process. Both processes return from the system call and execute the next instruction.

The fork operation creates a separate address space for the child. The child process has an exact copy of all the memory segments of the parent process, though if copy-on-write semantics are implemented actual physical memory may not be assigned (i.e., both processes may share the same physical memory segments for a while). Both the parent and child processes possess the same code segments, but execute independently of each other.

Read more about Fork (operating System):  Usage, Importance of Forking in Unix, Process Address Space, Fork and Page Sharing, Vfork and Page Sharing, MMUless Systems, Forking in Other Operating Systems

Famous quotes containing the word fork:

    Every country we conquer feeds us. And these are just a few of the good things we’ll have when this war is over.... Slaves working for us everywhere while we sit back with a fork in our hands and a whip on our knees.
    Curtis Siodmak (1902–1988)