2005-10-26 20:59:25 +02:00
|
|
|
GNU Pth - The GNU Portable Threads
|
|
|
|
Copyright (c) 1999-2005 Ralf S. Engelschall <rse@gnu.org>
|
1999-05-23 16:54:10 +02:00
|
|
|
|
1999-07-16 17:11:46 +02:00
|
|
|
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
|
|
|
|
which provides non-preemptive priority-based scheduling for multiple
|
2005-10-26 20:59:25 +02:00
|
|
|
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.
|
1999-05-23 16:54:10 +02:00
|
|
|
|
2005-10-26 20:59:25 +02:00
|
|
|
The thread scheduling itself is done in a cooperative way, i.e., the
|
1999-07-16 17:11:46 +02:00
|
|
|
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.
|
1999-05-23 16:54:10 +02:00
|
|
|
|
2000-01-08 16:17:25 +01:00
|
|
|
WWW: http://www.gnu.org/software/pth/
|