What is the difference between NPTL and POSIX threads?

后端 未结 3 804
暖寄归人
暖寄归人 2021-02-01 18:05

What is the basic difference between NPTL and POSIX threads? How have these two evolved?

3条回答
  •  别那么骄傲
    2021-02-01 18:34

    "POSIX threads" is a 'standard', defining an API for threading. i.e. it states that functions such as pthread_exit () etc, should exist in the system, and describes how they should behave. All POSIX compliant operating systems implement POSIX threads in their own way.

    NPTL is a bunch of features that enables "Linux" (the kernel) to efficiently implement "POSIX threads" (the standard).

    You can read more about NPTL and how it came about here

提交回复
热议问题