A very interesting slide deck comparing sync and async IO
Ali Çehreli via Digitalmars-d
digitalmars-d at puremagic.com
Thu Mar 3 19:14:01 PST 2016
On 03/03/2016 06:01 PM, deadalnix wrote:
> 2x64kb L1 cache, which probably reduce the cache trashing due
> to context switches
(I am speaking without measuring anything.)
I imagine that lost cache is one of the biggest costs in thread
switching. It would be great if a thread could select a thread with
something like "I'm done, now please switch to my reader". And that's
exactly one of the benefits of fibers: two workers ping pong back and
forth, without much risk of losing their cached data.
Is my assumption correct?
Ali
More information about the Digitalmars-d
mailing list