PowerThread

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:248KB
下载次数:5
上传日期:2009-04-18 19:03:03
上 传 者katamana
说明:  Embedded Thread Library

文件列表:
PowerThread\doc\Doxyfile (8633, 2006-10-02)
PowerThread\doc\header.tex (1145, 2006-06-03)
PowerThread\doc\html\a00005.html (2100, 2006-10-02)
PowerThread\doc\html\a00006.html (2074, 2006-10-02)
PowerThread\doc\html\a00009.html (4964, 2006-10-02)
PowerThread\doc\html\a00010.html (4402, 2006-10-02)
PowerThread\doc\html\a00011.html (3258, 2006-10-02)
PowerThread\doc\html\a00012.html (3206, 2006-10-02)
PowerThread\doc\html\a00013.html (9536, 2006-10-02)
PowerThread\doc\html\a00014.html (31146, 2006-10-02)
PowerThread\doc\html\a00015.html (41277, 2006-10-02)
PowerThread\doc\html\a00016.html (14134, 2006-10-02)
PowerThread\doc\html\a00017.html (13819, 2006-10-02)
PowerThread\doc\html\a00018.html (9928, 2006-10-02)
PowerThread\doc\html\a00019.html (8922, 2006-10-02)
PowerThread\doc\html\a00020.html (13293, 2006-10-02)
PowerThread\doc\html\a00021.html (21642, 2006-10-02)
PowerThread\doc\html\a00022.html (30340, 2006-10-02)
PowerThread\doc\html\annotated.html (1584, 2006-10-02)
PowerThread\doc\html\doxygen.css (7206, 2006-10-02)
PowerThread\doc\html\doxygen.png (1281, 2006-10-02)
PowerThread\doc\html\files.html (2239, 2006-10-02)
PowerThread\doc\html\ftv2blank.png (174, 2006-10-02)
PowerThread\doc\html\ftv2doc.png (255, 2006-10-02)
PowerThread\doc\html\ftv2folderclosed.png (259, 2006-10-02)
PowerThread\doc\html\ftv2folderopen.png (261, 2006-10-02)
PowerThread\doc\html\ftv2lastnode.png (233, 2006-10-02)
PowerThread\doc\html\ftv2link.png (358, 2006-10-02)
PowerThread\doc\html\ftv2mlastnode.png (160, 2006-10-02)
PowerThread\doc\html\ftv2mnode.png (194, 2006-10-02)
PowerThread\doc\html\ftv2node.png (235, 2006-10-02)
PowerThread\doc\html\ftv2plastnode.png (165, 2006-10-02)
PowerThread\doc\html\ftv2pnode.png (200, 2006-10-02)
PowerThread\doc\html\ftv2vertline.png (229, 2006-10-02)
PowerThread\doc\html\functions.html (1728, 2006-10-02)
PowerThread\doc\html\functions_vars.html (1629, 2006-10-02)
PowerThread\doc\html\globals.html (4804, 2006-10-02)
PowerThread\doc\html\globals_defs.html (4513, 2006-10-02)
PowerThread\doc\html\globals_type.html (1593, 2006-10-02)
PowerThread\doc\html\hierarchy.html (1482, 2006-10-02)
... ...

Protothreads are extremely lightweight stackless threads designed for severely memory constrained systems such as small embedded systems or sensor network nodes. Protothreads can be used with or without an underlying operating system. Protothreads provides a blocking context on top of an event-driven system, without the overhead of per-thread stacks. The purpose of protothreads is to implement sequential flow of control without complex state machines or full multi-threading. Main features: * No machine specific code - the protothreads library is pure C * Does not use error-prone functions such as longjmp() * Very small RAM overhead - only two bytes per protothread * Can be used with or without an OS * Provides blocking wait without full multi-threading or stack-switching * Freely available under a BSD-like open source license Example applications: * Memory constrained systems * Event-driven protocol stacks * Small embedded systems * Sensor network nodes The protothreads library is released under an open source BSD-style license that allows for both non-commercial and commercial usage. The only requirement is that credit is given. The protothreads library was written by Adam Dunkels with support from Oliver Schmidt . More information and new versions can be found at the protothreads homepage: http://www.sics.se/~adam/pt/ Documentation can be found in the doc/ subdirectory. Two example programs illustrating the use of protothreads can be found in this directory: example-small.c A small example showing how to use protothreads example-buffer.c The bounded buffer problem with protothreads example-codelock.c A code lock with simulated key input To compile the examples, simply run "make". Adam Dunkels, 3 June 2006

近期下载者

相关文件


收藏者