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:
Post a Comment