6 ms·
maybe, musl by design, is for resource limited embedded boxes. multiple threads with large stack size will eat up RAM. If you need larger thread stack I believe
by synergy20 5y ago
maybe, musl by design, is for resource limited embedded boxes. multiple threads with large stack size will eat up RAM. If you need larger thread stack I believe you can set it in the code.
"Since 1.1.21, musl supports increasing the default thread stack size via the PT_GNU_STACK program header, which can be set at link time via -Wl,-z,stack-size=N." Of course you can always use pthread_attr_setstacksize
- masklinn 5y ago> maybe, musl by design, is for resource limited embedded boxes. multiple threads with large stack size will eat up RAM. It won’t really: that’s vmem, it’ll only need a bit of memory for the accounting of the mappings in the kernel.
- glb100 5y ago> Of course you can always use pthread_attr_setstacksize. No you can't, not with std::thread, which makes std::thread nearly unusable with musl.