[Q] LinuxThreads internals....

Bharadwaj Yadavalli sby@ives.lkg.dec.com
Wed Nov 29 08:38:00 GMT 2000


I am trying to understand the internals of LinuxThreads and
I have the following simple question:

In pthread_initialize(void):pthread.c, I notice that 
initial stack (__pthread_initial_thread_bos) is computed
by subtracting 2 * STACK_SIZE from the current stack_pointer 
before aligning the result to STACK_SIZE boundary. Why *2*
stack sizes? Can someone please explain the logic here?

Thanks,

Bharadwaj


More information about the Libc-alpha mailing list