![how to install glibc on slackware how to install glibc on slackware](https://benisnous.com/wp-content/uploads/2021/06/Kali-Linux-20212-Whats-New-Top-Features-Of-Kali-800x445.jpg)
NPTL is the second attempt (first was NPGT) to have real POSIX threading on Linux. They were not meant to be an elegant or ideal solution (read: dirty hack). Linuxthreads were tacked on to glibc to allow applications that require threading to perform on the right order of magnitude (proxy and routing services come to mind as early examples) to run on linux. Posts on the LKML indicate that the average thread_create() call with NPTL is 8 times faster than with linuxthreads. Using POSIX threading semantics and signal passing with linuxthreads is a can of worms to say the least, and results in way too much processor time being spent remapping virtual memory and creating/destroying threads. This is misleading, because linuxthreads aren’t really threads, they’re just lightweight processes. And emphasis added for nptl.īefore NPTL, there was linuxthreads. The words after the package name are the use flags that are enabled. sys-libs/glibc-2.3.5 -build -debug -erandom -hardened (-multilib) +nls -nomalloccheck +nptl -nptlonly +pic +userlocales 0 kB These are the packages that I would merge, in order:
![how to install glibc on slackware how to install glibc on slackware](https://distrowatch.com/images/screenshots/puppy-5.5-small.png)
Once you put it in your use flags, you can just emerge (compile and install) glibc like normal. You just have to specify that you want to use it in your /etc/nf by adding “nptl” to your USE flags, which the Gentoo Handbook teaches you about if you read it to install Gentoo (for new users this is very important). I’m using Gentoo with nptl right now, while that may be used by default if you do no configuration during the install (stupid idea). Gentoo doesn’t have it, although there are directions for installing NPTL. It’s been around for a while in RedHat/Fedora, and was backported even into the 2.4 kernels for those distributions.