DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Threads

Multiplexed thread scheduling

Multiplexed threads are subjected to two levels of scheduling:

The Threads Library maintains a ``priority level'' for each multiplexed thread. This value plays a role in the selection of a thread for assignment to an LWP. The priority value of a multiplexed thread can be modified by any other thread in the process via the thr_setprio(3thread) function.

   int thr_setprio(
   	thread_t tid,
   	int      prio
   );

Runnable, multiplexed threads are scheduled for execution as follows:

The Threads Library must select a thread for assignment to an LWP on the following occasions:

Threads Library scheduling and system scheduling are independent of each other.

The interaction of these two levels of scheduling can produce some interesting effects:

Additional points to consider:
Next topic: Bound thread scheduling
Previous topic: Thread scheduling

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004