Re:Coroutines are now in Clang trunk, libc++
by maxpolun on Friday May 26, 2017 @11:13AM
(#14424599)
You can have multiple threads with coroutines. However you generally only have one thread per CPU/hardware thread, and use async io within that thread.
This is the general architecture of nginx for example (though it doesn't use coroutines, just callback based async io).
This is the general architecture of nginx for example (though it doesn't use coroutines, just callback based async io).