Practical Statecharts in C/C++:
Quantum Programming for Embedded Systems

PSiCC on

The first practical book about UML statecharts and event-driven programming for embedded systems by Quantum Leaps' Miro Samek. This book introduced the concepts of event-driven active objects (actors) and hierarchical state machines for real-time and embedded systems. This book covers QP version 2.6.

Publication Date July, 2002
Publisher CMP Books, imprint of CMP Media LLC
ISBN-10 1-57820-110-1
ISBN-13 978-1578201105
Available Formats Paperback, PDF (see below)
Complete PDF download Download complete book in PDF from SourceForge
Available from Most online book sellers, such as,,,,
and many others
Update This book has a newer second edition

Korean Translation

Korean Translation

Publication Date 2004
Publisher Acorn Publishing Company
ISBN-10 898997549-2

Chinese Translation

Chinese Translation

Publication Date 2004
Publisher Buaapress
ISBN-10 7-81077-415-8

Resources and Tools for the Book

The following sections provide the links for downloading all the software and tools used in the book as well as other resources.

LICENSING: The licensing policy for distributing any software published in the book Practical Statecharts in C/C++, CMP Books 2002, ISBN 1-57820-110-1 has changed. Effective December 1, 2004 all this software has been released under dual licensing model. Specifically, if you distribute the QP framework after the effective date, you must either abide by the terms of the GNU General Public License (GPL), or you can purchase a commercial license in case you want to retain the proprietary status of your code.


QP Frameworks

Code Updates

The following maintenance releases contain all bug fixes mentioned in the Errata, regardless of the book printing.

QM Tool

CD-ROM Download

The complete CD-ROM image (55.1MB) is available for download to the owners of the book Practical Statecharts in C/C++. The CD-ROM is designed for maximum usefulness, even without installing any of it on your hard drive. In particular, you can browse the source code, execute examples, and read PDF documents directly from the CD.

The CD-ROM contains:

  • Complete source code, executable images, and Visual C++ projects mentioned in the book
  • Answers to all exercises scattered throughout the book
  • The Evaluation Version of On Time RTOS-32 v4.0
  • Visio stencils used to create the diagrams in this book
  • Information about the book and promotion of other related CMP publications
  • Several references in PDF