3 ms·
So it still consumes 8 MB of address space though? On a 32 bit system that would severely limit the number of threads you could allocate in each process wouldn'
by chrisseaton 9y ago
So it still consumes 8 MB of address space though? On a 32 bit system that would severely limit the number of threads you could allocate in each process wouldn't it? How do you allocate 8 MB of stack times a hundred thousand, in a 32 bit address space?
- RX14 9y agoYes, it breaks on 32bit but that's an acceptable tradeoff in most places because the vast majority of places where a modern language like swift would actually be used are 64bit.
- chrisseaton 9y agoThe person I was replying to asked where the 'myth' came from. It came from 32 bit systems, where it isn't a myth. Even if it doesn't apply today (and administrating thousands of pages per thread still isn't free even if you have the address space, so I'm not sure it doesn't still apply really), that's where the 'myth' came from - that's the answer to their question.
- kllrnohj 9y agoWhat 32-bit systems even exist anymore? Much less 32-bit systems where you want to run thousands of threads in a single process?
- chrisseaton 9y agoThe question was 'where did the myth come from' not 'does it still apply today'.