BSD Ports

devel/pth 2.0.7p1 OpenBSD

GNU portable threads

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel

Description

GNU Pth - GNU Portable Threads

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 ("multithreading") inside server 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.

In the other systems

SystemPortVersion
OpenBSDdevel/pth2.0.7p1
NetBSDdevel/pth2.0.7nb5
DragonFlydevel/pth2.0.7_2
MidnightBSDdevel/pth2.0.7_3

Install

Binary package:

pkg_add pth

From the ports tree:

cd /usr/ports/devel/pth && make install

Dependencies

No port depends on this one.