Re:Co-routines as an alternative to state machines
by enqk on Saturday August 29, 2009 @12:31PM
(#793337)
My favorite example of that are "protothreads", stackless "threads" in C introduced by Adam Dunkel, and related with the contiki project.
An implementation of the paper can be done in a 130 lines big header, and they conveniently replace state machines with straightforward sequential code.
An implementation of the paper can be done in a 130 lines big header, and they conveniently replace state machines with straightforward sequential code.
http://www.sics.se/~adam/pt/