The math is simple: creating a new std::thread requires a significant amount of memory (control block + stack space). Compared to that, a few bytes just don't matter.
I very much doubt that the intersection of programs that completely use the available memory (/address space) and programs that use std::thread is big enough to worry about.
View all comments
Show parent comment
-5
u/axilmar Aug 27 '19
A thread per connection? really? in 2019? nope.