Introduction to Pth
The Pth package contains a very
portable POSIX/ANSI-C based library for Unix platforms which
provides non-preemptive priority-based scheduling for multiple
threads of execution (multithreading) inside event-driven
applications. All threads run in the same address space of the
server application, but each thread has its own individual
program-counter, run-time stack, signal mask and errno variable.
Package Information
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pth
Installation of Pth
Caution
Don't add the --enable-pthread
parameter to the configure command below else
you will overwrite the pthread library and interface header
installed by the Glibc package
in LFS.
Install Pth by running the
following commands:
./configure --prefix=/usr &&
make
To test the results, issue: make
check.
Now, as the root
user:
make install &&
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
install -v -m644 README PORTING SUPPORT TESTS \
/usr/share/doc/pth-2.0.7