mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
b025fedb2a
a scratch box that is not to appear in the main history of pth, so no repository copying is necessary.
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
GNU Pth - GNU Portable Threads
|
|
Copyright (c) 1999 Ralf S. Engelschall <rse@engelschall.com>
|
|
|
|
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.
|
|
|
|
The documentation and latest release can be found on
|
|
o http://www.gnu.org/software/pth/
|
|
o ftp://ftp.gnu.org/gnu/pth/
|