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

Chia sẻ: Dsd Sds | Ngày: | Loại File: PDF | Số trang:14

0
37
lượt xem
4
download

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

Mô tả tài liệu
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

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...

Chủ đề:
Lưu

Nội dung Text: Protothreads: Simplifying Event-Driven Programming of Memory-Constrained Embedded Systems

CÓ THỂ BẠN MUỐN DOWNLOAD

Đồng bộ tài khoản