Friday, September 5, 2014

Linux Thread


Threads are implemented as processes in Linux sharing resources.  Threads are created using clone(CLONE_FS | CLONE_VM | CLONE_FILES  CLONE_SIGHAND, 0).

Normal process creation uses fork() translates to clone(SIGCHLD, 0).  vfork called clone(CLONE_VFORK | CLONE_VM | SIGCHLD, 0)

No comments: