NPTL vs Linux Thread

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

你可能感兴趣的:(thread,linux,library)