On 05/24/2011 11:21 PM, Anthony Liguori wrote:
Why not use threads as a coroutine fallback?  That's essentially what we
would do to be "fully threaded".

Not exactly, there would be much less synchronization going on. Using threads to implement coroutines means you go through the slow path of the synchronization primitives (either mutexes/condvars or barriers) twice or more per coroutine switch. It is really slow, a 100 times difference perhaps.

Paolo

Reply via email to