LWN.net Logo

Coroutines

Coroutines

Posted May 9, 2012 12:37 UTC (Wed) by geertj (subscriber, #4116)
In reply to: Coroutines by jamesh
Parent article: nPth - The new GNU portable threads library

> Things are a bit different if you're talking about cooperative multi-tasking within a single application though: if the application is controlling all the co-routines, then those sort of bugs should be predictable and fixable.

Exactly - this is the key difference. And it's not like the different threads in a multi-threaded program don't need to cooperate. They can just as easy starve each other if e.g. they do not correctly cooperate in locking.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds