Protothreads

A protothread is a low-overhead mechanism for concurrent programming.

Protothreads function as stackless, lightweight threads providing a blocking context cheaply using minimal memory per protothread (on the order of single bytes).

Protothreads are non-preemptable. Therefore, a context switch can only take place on blocking operations. Protothreads are also stackless, which means global variables are needed for preserving variables across context switches.[1]

The protothread concept was developed by Adam Dunkels and Oliver Schmidt.[2]

More true name - Auto-State pseudo-Threads.

See also

References

External links


This article is issued from Wikipedia - version of the Thursday, August 06, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.