logoalt Hacker News

groundzeros2015today at 8:53 AM2 repliesview on HN

Why can’t you do the same optimization? Are you maxing out you OS system resources on thread overhead?


Replies

vlovich123today at 2:33 PM

That’s part of it. Then you add a thread pool to dispatch your tasks into to mitigate the cost of a thread start. Then you run into blocking problems and are like “I wish I had some keyword to express when a function needed to be run on the thread pool”. Then you’ve done a speed run of the past 40 years of research.

show 1 reply
pjc50today at 1:21 PM

OS thread overhead can be pretty substantial. Starting new threads on Windows is especially expensive.