3 ms·
That's actually kind of a myth nowadays. For example the honest answer to the classic C10K question (how do you write a webserver that can serve 10000 requests
by lmm 4y ago
That's actually kind of a myth nowadays. For example the honest answer to the classic C10K question (how do you write a webserver that can serve 10000 requests concurrently) is that you spawn 10k threads and let the OS scheduler handle it and it'll be fine.
- preseinger 4y agoEven a modern Linux kernel on modern hardware will struggle with 10k processes if those processes are doing nontrivial (i.e. syscall-effecting) work. But that benchmark is what, 10 or 15 years old now? Contemporary benchmarks target 100k connections per server (with some constraints).
- int_19h 4y agoThe question, rather, is whether it'll struggle with 10k threads.
- preseinger 4y agoAye, the cost of context switching between OS threads is generally too high for thread-per-request workloads.