logoalt Hacker News

usrnmyesterday at 9:11 PM1 replyview on HN

How do you control which CPU your task resumes on? If you don't then it's still the same problem described above, no?


Replies

skavitoday at 1:30 AM

on the OS scheduler side, i'd imagine there's some stickiness that keeps tasks from jumping wildly between cores. like i'd expect migration to be modelled as a non zero cost. complete speculation though.

tokio scheduler side, the executor is thread per core and work stealing of in progress tasks shouldn't be happening too much.

for all thread pool threads or threads unaffiliated with the executor, see earlier speculation on OS scheduler behavior.

show 1 reply