| United States-English |
|
|
|
![]() |
Parallel Programming Guide for HP-UX Systems: K-Class and V-Class Servers > Chapter 9 Parallel programming
techniquesSetting thread default stack size |
|
Thread 0's stack can grow to the size specified in the maxssiz configurable kernel parameter. Refer to the Managing Systems and Workgroups manual for more information on configurable kernel parameters. Any threads your program spawns (as the result of loop_parallel or tasking directives or pragmas) receive a default stack size of 80 Mbytes. This means that if the following conditions exist, then you must modify the stack size of the spawned threads using the CPS_STACK_SIZE environment variable:
Under csh, you can modify the stack size of the spawned threads using the CPS_STACK_SIZE environment variable. The form of the CPS_STACK_SIZE environment variable is shown in Table 9-12 “Forms of CPS_STACK_SIZE environment variable”. Table 9-12 Forms of CPS_STACK_SIZE environment variable
where
For example, the following command sets the thread stack size to 100 Mbytes: setenv CPS_STACK_SIZE 102400 |
|||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||