Native POSIX Thread Library: Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Alter: isbn. Upgrade ISBN10 to 13. | Use this bot. Report bugs. | Suggested by Whoop whoop pull up | #UCB_webform 119/583
Citation bot (talk | contribs)
Add: publisher. | Use this bot. Report bugs. | Suggested by Abductive | Category:Threads (computing) | #UCB_Category 6/41
Line 14:
 
==Design==
Like LinuxThreads, NPTL is a 1:1 threads library. Threads created by the library (via ''pthread_create'') correspond one-to-one with schedulable entities in the kernel (''processes'', in the Linux case).<ref name="lsp-love">{{Cite book |title=Linux System Programming |author=Robert Love |edition=2nd |isbn=978-1449339531 |date=2013|publisher=O'Reilly Media, Incorporated }}</ref>{{rp|226}} This is the simplest of the three [[Thread (computing)#Threading models|threading models]] (1:1, N:1, and M:N).<ref name="lsp-love"></ref>{{rp|215–216}} New threads are created with the clone() [[system call]] called through the NPTL library. NPTL relies on kernel support for [[futex]]es to more efficiently implement user-space locks.<ref name="lsp-love"></ref>{{rp|182}}
 
==See also==