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(S) 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

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005