framework,
kernel,
Machine,
multitasking,
preemptive,
qp,
rtos,
State,
uml
Open this program in the mbed Compiler, where you can edit it and compile it for your hardware.
Download this program as .zip file.
Dining Philosophers Problem (DPP) example for the QP state machine framework. Demonstrates: event-driven programming, hierarchical state machines in C++, preemptive multitasking, software tracing, power saving mode, direct event posting, publish-subscribe.
More information available in the Quantum Leaps Notebook pages. See also state-machine.com.
| bsp.cpp [code] | |
| bsp.h [code] | |
| dpp.h [code] | |
| main.cpp [code] | |
| philo.cpp [code] | |
| qp_config.h [code] | |
| table.cpp [code] |