Danh mục

Protothreads: Simplifying Event-Driven Programming of Memory-Constrained Embedded Systems

Số trang: 14      Loại file: pdf      Dung lượng: 255.45 KB      Lượt xem: 21      Lượt tải: 0    
tailieu_vip

Phí tải xuống: 1,000 VND Tải xuống file đầy đủ (14 trang) 0
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Event-driven programming is a popular model for writing programs for tiny embedded systems and sensor network nodes. While event-driven programming can keep the memory overhead down, it enforces a state machine programming style which makes many programs difcult to write, maintain, and debug. We present a novel programming abstraction called protothreads that makes it possible to write eventdriven programs in a thread-like style, with a memory overhead of only two bytes per protothread. We show that protothreads signicantly reduce the complexity of a number of widely used programs previously written with event-driven state machines. For the examined programs the majority of the state machines could be entirely removed. In the other cases the...
Nội dung trích xuất từ tài liệu:
Protothreads: Simplifying Event-Driven Programming of Memory-Constrained Embedded Systems

Tài liệu được xem nhiều: