What is the difference between NPTL and POSIX threads?

后端 未结 3 805
暖寄归人
暖寄归人 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:53

    I guess your best source of information is starting on Wikipedia and following the links from there.

    There is really no difference: NPTL is just the current Linux implementation of POSIX threads, you still use the pthread_* family of functions. Earlier in Linux history, a dedicated library called libpthreads was used. NPTL appeared for 2.6+ kernels circa 2003, see the link above for more details.

    [BTW: NPTL == Native Posix Threads Library]

提交回复
热议问题