◄ Wiki / OS
fork / clone
Cloning creates a new process or thread; the fresh child begins execution at its own defined entry point.
On Linux-style systems, clone is the lower-level primitive underneath both fork (new process) and thread creation, letting the caller choose exactly what the child shares — memory, file descriptors, and so on. A newly cloned child does not magically continue in the middle of the parent's work; it resumes through its own entry path, a starting address set up when the clone was made. Getting that resume representation right is essential, since a mismatch can leave the child running from the wrong place.
See also
- forkfork is the Unix system call that creates a new process by duplicating the one that calls it.
- file descriptorA file descriptor is a small integer the operating system hands you to refer to an open file, socket, or other I/O channel.
- FP/SIMDFP/SIMD refers to a CPU's floating-point and vector registers, which hold decimal math and batched parallel data.