News for hackers. Stuff that matters.
Re:Why you can have millions of goroutines but only thousand... by gpderetta on Tuesday October 09, 2018 @05:08AM (#18174357)
Re 5: pthread allows setting the stack size of each individual thread although this is seldom done in practice as on 64 bit address space is not at premium.

GCC also, on some platforms, allows using segmented stacks on any C and C++ programs which means that a thread will only use only as much physical and virtual memory as required. I don't think segmented stacks have seen much use though as they have non zero cost and, for optimal space usage, ideally require recompiling any dependncy, including glibc with them.

Interestingly segmented stacks were implemented to support GCCGO.

There are no comments on this comment yet.