1, NPTL = Native Posix Thread Library
Linux Thread = old linux posix thread library
2, requirement
kernel version > 2.5, 2.6 is better
3, advantage
LinuxThread : light-process, slow, couldn't be preemptive, different PID
NPIL : , fast, could be preepmtive, same PID
4, using glibc >2.3.3
5, how to get the library version
#getconf GNU_LIBPTHREAD_VERSION
本文对比了NPTL(Native Posix Thread Library)与旧版Linux POSIX线程库(LinuxThread)的区别,包括它们的要求、优势及使用条件。NPTL要求内核版本高于2.5,最好为2.6版本;它比LinuxThread更快,可以被抢占,并且具有相同的PID。此外,文章还介绍了如何检查glibc版本及线程库版本。
1334

被折叠的 条评论
为什么被折叠?



