For those of you interested in interesting hard-core C programming tricks: Adam Dunkels’ protothreads library implements an unusually lightweight type of threads.
For those of you interested in interesting hard-core C programming tricks: Adam Dunkels’ protothreads library implements an unusually lightweight type of threads.
..extremely cool.
Why did you link to Slashdot when you could have just as easily linked to the location of the protothreads library?
BTW it’s at http://www.sics.se/~adam/pt/ for those who would rather go straight to the meat and potatoes.
Anyway, it looks like a pretty cool library if you’re trying to do threading where there is no operating system support for heavyweight threads, such as embedded systems.
The library was mentioned here before anyway.
http://www.osnews.com/story.php?news_id=9822
http://www.osnews.com/story.php?news_id=10174
Wow, OS News going the Slashdot way: having duplicate articles. Not only that, dupes of Slashdot articles no less!
Behold a 1970s Knuth concept dressed up into a fancy library… aah, C coroutines
Behold a 1970s Knuth concept dressed up into a fancy library… aah, C coroutines
In that case, we’ll be seeing a patent application on it from MS any day now.
Its been said before, but I call this type of article:
Law & Order: Slashdot
Since its been ripped from the headlines!
(Not that Slashdot is any better).