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

Awakening threads for synchronization mechanisms

When only one thread is to be awakened for a newly available synchronization mechanism, the selection is made by the following general rule.

  1. Preference is given to bound threads over multiplexed threads.

  2. If there is still more than one candidate for awakening, the thread with the highest (Threads Library) ``priority'' is chosen.

  3. If there is still more than one candidate for awakening, the thread that blocked first is selected.

There are some exceptions to this algorithm:


Next topic: Further considerations for synchronization mechanisms
Previous topic: Condition variables

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