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:

    Eye of newt and toe of frog,
    Wool of bat and tongue of dog,
    Adder’s fork and blind-worm’s sting,
    Lizard’s leg and owlet’s wing,
    For a charm of powerful trouble,
    Like a hell-broth boil and bubble.
    William Shakespeare (1564–1616)