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

Managing threads concurrency

The size of the pool of available LWPs (the ``actual concurrency level'') will vary over time. The Threads Library manages the size of this pool automatically and dynamically according to rules outlined below. The programmer can influence the algorithm by changing the ``requested concurrency level'' (with thr_setconcurrency, see below); at times, the actual concurrency level may be either greater than or less than the requested level.

The rules governing implicit changes to the actual concurrency level are:

A thread can use the thr_setconcurrency(3thread) function to change the requested concurrency level mentioned in the algorithm above. The syntax is:

   int thr_setconcurrency(
   	int new_level
   );

This request is serviced asynchronously.

The rules governing the explicit changes in actual concurrency by thr_setconcurrency(3thread) are:


Next topic: Bound threads
Previous topic: Multiplexed threads

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