Librenix  
(Show all Unix articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Unix Protothreads

Up
vote
Down

With these 400 lines of C code and a GCC compiler, you can write threaded code on any Unix system...
Protothreads is a programming model invented by Adam Dunkels that combines the advantages of event-driven (sometimes also called state machine) programming and threaded programming. The main advantage of the event-driven model is efficiency, both speed and memory usage. The main advantage of the threaded model is algorithm clarity. Protothreads gives you both. A protothread is an extremely lightweight thread. As with event-driven programming, there is a single stack; but like threaded programming, a function can (at least conceptually) block.
 read more | mail this link | score:5349 | -Ray, January 24, 2009
More Programming articles...

Decorate your home or office with Fine Art

coding headlines

OpenShift Online: a non-developer guide

Tutorial: Install SVN, Configure multi-protocol access (Ubuntu 11.10)

E-book: Perl One-Liners Explained

bash scripting: Looping through a list

Apache2, mod_rewrite tutorial: Redirect requests by device

I wrote my first programming e-book: Awk One-Liners Explained

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin