Some links, explaining how to use protothreads.
The Google Code Archive requires JavaScript to be enabled in your browser.