4 ms·
I comment on the advice given on that page here: https://news.ycombinator.com/item?id=11867375 https://news.ycombinator.com/item?id=11867375 I've never had a s
by trentnelson 10y ago
I comment on the advice given on that page here: https://news.ycombinator.com/item?id=11867375 https://news.ycombinator.com/item?id=11867375
I've never had a single issue with "async things suddenly becoming synchronous which blocks the main thread" -- if you architect things properly that just never happens, blocking operations are off the hot path, and when you absolutely must block, IOCP's concurrency self-awareness kicks in and another thread is scheduled to run on the core, ensuring that each core has one (and only one) runnable thread.