Search Code
About qp_dpp

First published 12 Feb 2011, with 4 revisions since.
Last update: 26 Sep 2011.
View history

Last change message: Updated for QP 4.2.04

Import this program

qp_dpp

Published 26 Sep 2011, by   user Quantum Leaps   tag framework, kernel, Machine, multitasking, preemptive, qp, rtos, State, uml

Summary of qp_dpp

How to get this program

Import this program

Open this program in the mbed Compiler, where you can edit it and compile it for your hardware.

Download as .zip

Download this program as .zip file.

Libraries included as part of qp_dpp

qp
The goal of this milestone release is to extend the number of event pools (theoretically up to 255 pools) instead of just three event pools available up til now. This ...
tag framework, QM, qp, rtos, state machines

Description

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.

Code

bsp.cpp [code]
bsp.h [code]
dpp.h [code]
main.cpp [code]
philo.cpp [code]
qp_config.h [code]
table.cpp [code]