Threads and processes don't exist

On Linux, threads and processes don&rsquo;t actually exist. Underneath all the abstractions, the kernel knows only of &ldquo;tasks&rdquo; - independent flows of execution, created using the clone(2) &#xA;family of syscalls. The differences between what we call a &ldquo;thread&rdquo; and what we call a &ldquo;process&rdquo; lie in the flags argument of the clone syscall, which determines many kinds…