3 ms·
> Yes, as it is in C really. Not really. What people understand by "the C stack" is the stack that automatically comes when new threads are created. This stack
by 4ad 12y ago
> Yes, as it is in C really.
Not really. What people understand by "the C stack" is the stack that automatically comes when new threads are created. This stack is not on the heap; in fact it's at the top of the user address space and it has some special properties, like the operating system setting guard pages for you.
Pthreads allow you to set your own stack for a thread, but it is a feature seldom used; though it used by Go when cgo is employed.