Linked by Thom Holwerda on Sun 18th Jan 2009 11:16 UTC, submitted by anonymous
General Unix Protothreads are a type of extremely lightweight threads - each protothread requires only two bytes of memory - that are usually used for embedded firmware programming, where memory is at a premium. Protothreads combine the low overhead with event-driven programming with the algorithmic clarity of threaded programming.
Thread beginning with comment 344352
To view parent comment, click here.
To read all comments associated with this story, please click here.
Member since:

Threads which are blocked should not consume any computational reasources...

But consider the situations where the threads are NOT blocked. If you have 5000 threads that are unblocked, you have 5000 context switches to do (and context switches are not free).

Reply Parent Score: 1