请输入您要查询的百科知识:

 

词条 LinuxThreads
释义

  1. References

  2. External links

{{morerefs|date=August 2012}}

In the Linux operating system, LinuxThreads was a partial implementation of POSIX Threads introduced in 1996. The main developer of LinuxThreads was Xavier Leroy. it has been superseded by the Native POSIX Thread Library (NPTL).[1]

LinuxThreads had a number of problems, mainly owing to the implementation, which used the clone system call to create a new process sharing the parent's address space. For example, threads had distinct process identifiers, causing problems for signal handling; LinuxThreads used the signals SIGUSR1 and SIGUSR2 for inter-thread coordination, meaning these signals could not be used by programs.

To improve the situation, two competing projects were started to develop a replacement; NGPT (Next Generation POSIX Threads) and NPTL. NPTL won out and is today shipped with the vast majority of Linux systems. {{As of|2006}}, LinuxThreads may still be seen on production systems, particularly those using version 2.4 or lower of the Linux kernel, as NPTL requires facilities which were specifically added into the 2.6 version of the kernel for its use.

LinuxThreads was also ported to and used on FreeBSD.[2]

References

1. ^{{cite book|last=Jones|first=M. Tim|title=GNU/Linux application programming|year=2008|publisher=Charles River Media|location=Hingham, Mass.|isbn=978-1-58450-568-6|edition=2nd|page=253|quote=The 2.6 kernel utilizes the new Native POSIX Thread Library, or NPTL (introduced in 2002), which is a higher performance implementation with numerous advantages over the older component.}}
2. ^LinuxThreads on FreeBSD  

External links

  • [https://web.archive.org/web/19961128030318/http://pauillac.inria.fr/~xleroy/linuxthreads/ The LinuxThreads library], Xavier Leroy Home Page
  • Linux threading models compared: LinuxThreads and NPTL, IBM 2006
{{Linux}}{{linux-stub}}{{DEFAULTSORT:Linuxthreads}}

1 : Threads (computing)

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 13:26:00