World Library  
Flag as Inappropriate
Email this Article

Protothreads

Article Id: WHEBN0002853187
Reproduction Date:

Title: Protothreads  
Author: World Heritage Encyclopedia
Language: English
Subject: Contiki, Microthread, Swedish Institute of Computer Science, Thread (computing), List of programmers
Collection: Threads (Computing)
Publisher: World Heritage Encyclopedia
Publication
Date:
 

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

  1. ^ A. Dunkels, O. Schmidt, T. Voigt, and M. Ali, Protothreads: Simplifying Event-Driven Programming of Memory-Constrained Embedded Systems, Proc. ACM SenSys, Boulder, CO, USA, Nov 2006. (PDF, Presentation slides)
  2. ^ Adam Dunkels' website

External links

  • Protothread library in C used by Contiki
  • Using Protothreads for Sensor Node Programming A PDF with some in-depth discussion about the use of Protothreads
  • Protothread library requiring GCC, includes a thread scheduler modeled on the UNIX kernel (a simplified form of POSIX condition variables). This source base also includes a version that supports multiple CPU cores (processors).
  • eigenclass.org performed a comparison of protothreads against POSIX threads, and found a 400x improvement in speed [1] Retrieved from Archive.org Oct 2014
  • C++ Protothread
  • Symbian C++ Protothread Implementation


This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 



Copyright © World Library Foundation. All rights reserved. eBooks from World Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.