This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Q] LinuxThreads internals....



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]