pth is a library that allows for the scheduling of threads within an event-driven program.
Pth is a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for multiple threads of execution (aka ``multithreading'') inside event-driven applications. All threads run in the same address space of the server application, but each thread has it's own individual program-counter, run-time stack, signal mask and errno variable.The thread scheduling itself is done in a cooperative way, i.e., the threads are managed by a priority- and event-based non-preemptive scheduler. The intention is that this way one can achieve better portability and run-time performance than with preemptive scheduling. The event facility allows threads to wait until various types of events occur, including pending I/O on filedescriptors, asynchronous signals, elapsed timers, pending I/O on message ports, thread and process termination, and even customized callback functions.
Project information
- Licence:
- GNU LGPL v2.1
View full history Series and milestones
main series is the current focus of development.
All packages Packages in Distributions
-
pth source package in Xenial
Version 2.0.7-20 uploaded -
pth source package in Trusty
Version 2.0.7-19ubuntu1 uploaded -
pth source package in Squeeze
Version 2.0.7-16 uploaded -
pth source package in Precise
Version 2.0.7-16ubuntu3 uploaded -
pth source package in Oneiric based series for Ubuntu LEB
Version 2.0.7-16ubuntu2 uploaded