Re:How the Windows Subsystem for Linux Redirects Syscalls
by trentnelson on Thursday June 09, 2016 @09:36AM
(#11869259)
I comment on the advice given on that page here: 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.
Re:How the Windows Subsystem for Linux Redirects Syscalls
by trentnelson on Thursday June 09, 2016 @09:46AM
(#11869316)
> (Also, curiously when the data's in the cache that page shows a performance penalty for async reads that complete synchronously from the cache compared to sync reads. Wonder why.)
Because a synchronous operation is always faster than an overlapped operation if it can be completed synchronously.
Lots of stuff happens behind the scenes when an overlapped operation occurs.
(Also, curiously when the data's in the cache that page shows a performance penalty for async reads that complete synchronously from the cache compared to sync reads. Wonder why.)