On Fri, 2013-09-13 at 11:10 +0400, niXman wrote: > Hi, > > [intro]This question was originally asked on StackOverflow, but so far > I have not get a response.[/intro] > > In Linux, 'clone()' syscall is used for creating processes/threads. > > On OpenBSD using ktrace/kdump I determined that for process creation > 'vfork()' syscall is used, and for thread creation - 'tfork()'. > > I have two questions: > 1. Is my statement correct? > 2. Shouldn't 'vfork()' and 'tfork()' finally use a single system call > like 'clone()'?
You might want to read up on your POSIX standard.[1] Search in the System Interfaces volume (XSH). > > > Thanks. > > [1] http://pubs.opengroup.org/onlinepubs/007904975/toc.htm