Hacker News new | ask | show | jobs
by wmf 4938 days ago
Linux can create over 250,000 threads, but that may have been on a 32-bit system. On 64-bit it should be limited only by RAM.
1 comments

The overhead of context switching becomes pretty high. Some say that context switching has become cheap, but you still at the very least need to update the tlb, and schedule the next pthread.
At least the performance of context switching should scale with the number of cores, which seems to be the main direction of increased performance in hardware looking into the future.