[cpp-threads] High-level concurrency issues

Doug Lea dl at cs.oswego.edu
Sat Oct 29 00:16:24 BST 2005


Peter A. Buhr wrote:
>   
> If all you have is hammer, everything looks like a nail. ;-) Let me push a
> little longer on coroutines and then I'll sadly let it die if the Gods are
> against me. The killer app for coroutines is device drivers, which are mostly
> finite automata that can be coded directly as coroutines with very few errors.
> Think of it: working device drivers! 

As has been rediscovered recently. See
Adam Dunkels paper "Using Protothreads for Sensor Node Programming"
at http://www.sics.se/~adam/pt/

No way they should be added to C++ though :-)

-Doug



More information about the cpp-threads mailing list