Operating System - HP-UX
1834149 Members
2437 Online
110064 Solutions
New Discussion

64K default stacksize of Posix threads

 
Bhoyet Orillo
Occasional Contributor

64K default stacksize of Posix threads

What is the reason behind the 64K default
stack size of Posix threads in HP?
1 REPLY 1
Kiran N. Mehta
Advisor

Re: 64K default stacksize of Posix threads

Memory for per-thread stacks is allocated from the finite data segment of the process; the default thread-stack size of 64K --albeit much smaller than the more common default-size of 1M-- will allow more number of threads to be concurrently spawned and may have been found to be sufficient for most code-paths...

My two cents,
Kiran