<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/linux-posix-for-active-objects-rdyfrw8oe" -->

---
title: Linux (POSIX) for Active Objects | daily.dev
description: A lesson in an embedded systems programming course walks through running the QP active object framework's event-driven, hierarchical state machine model on...
canonical: https://daily.dev/posts/linux-posix-for-active-objects-rdyfrw8oe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Linux (POSIX) for Active Objects | daily.dev
og:description: A lesson in an embedded systems programming course walks through running the QP active object framework's event-driven, hierarchical state machine model on...
og:url: https://daily.dev/posts/linux-posix-for-active-objects-rdyfrw8oe
og:image: https://api.daily.dev/og/posts/rdyFrW8Oe.png
og:image:alt: Linux (POSIX) for Active Objects
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Linux (POSIX) for Active Objects

**[Quantum Leaps](https://daily.dev/sources/quantum-leaps)** · 23 min read · 0 upvotes · 0 comments

## Summary

A lesson in an embedded systems programming course walks through running the QP active object framework's event-driven, hierarchical state machine model on Linux and other POSIX-compliant systems (including QNX, Integrity, and macOS). It covers building and running the dining philosophers example on desktop Linux and a Raspberry Pi Zero Wireless, using the QSpy software tracing tool, and examines internals of the multi-threaded POSIX port versus the single-threaded POSIX-QV port. It also notes that the open-source QP bundle no longer ships software tracing components due to GPL non-compliance issues, requiring a separate QP Extras evaluation license.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=wcgSJb9gKK4>

## Questions this post answers

### Why does building the spy trace configuration fail in the open-source QP framework distribution?

The build fails because software tracing support has been removed from the open-source QP bundle distribution, reportedly due to widespread GPL non-compliance accelerated by AI training practices. The removed components are now provided separately as QP extras, which require requesting an evaluation license; requests are said to be granted liberally, and the extras package is unzipped into the existing QP C++ directory using a password based on the license number.

_Developers relying on QP's tracing tools can follow license and packaging changes like this on daily.dev._

### What is the difference between the POSIX port and the POSIX-QV port in the QP active object framework?

The standard POSIX port runs every active object in its own separate POSIX thread, which is useful for taking advantage of multicore processing, while the POSIX-QV port runs all active objects cooperatively in a single main thread, similar to the non-preemptive QV kernel, economizing thread usage and simplifying safe resource sharing. Both use a pthread mutex for critical sections that must not nest.

_Engineers choosing a concurrency model for embedded Linux can compare trade-offs like these on daily.dev._

### How do you run the dining philosophers example from the QP framework on a Raspberry Pi Zero Wireless running embedded Linux?

Copy the QPC++ directory to the Pi over SSH, unzip it, navigate to the qpcpp/examples/posix32/dpp directory, clean any previous desktop build artifacts, and run make to build the executable in the DBG directory, then execute it with DBG/dpp. Running with superuser privileges additionally allows the app to apply the SCHED_FIFO real-time scheduling policy for POSIX threads.

_Developers targeting Raspberry Pi for embedded builds can track practical setup guides like this on daily.dev._

## Similar posts on daily.dev

- [a small statically-linked linux system](https://daily.dev/posts/a-small-statically-linked-linux-system-imd4cp2ds) · Lobsters · 2 upvotes · 0 comments
- [One man, two kernels, and a lot of RISC-V](https://daily.dev/posts/one-man-two-kernels-and-a-lot-of-risc-v-xcqxvjiwq) · The Register · 1 upvotes · 0 comments
- [QSOE v0.1 Released As A QNX-Inspired RISC-V OS](https://daily.dev/posts/qsoe-v0-1-released-as-a-qnx-inspired-risc-v-os-etfl2rwyi) · Phoronix · 0 upvotes · 0 comments
- [openEuler Wants Linux to Treat an Entire AI Cluster Like One Single Machine](https://daily.dev/posts/openeuler-wants-linux-to-treat-an-entire-ai-cluster-like-one-single-machine-owaiyebyd) · It's Foss · 0 upvotes · 0 comments

---

Tags: [#linux](https://daily.dev/tags/linux), [#embedded](https://daily.dev/tags/embedded), [#c++](https://daily.dev/tags/c++)

[View this post on daily.dev](https://daily.dev/posts/linux-posix-for-active-objects-rdyfrw8oe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Linux (POSIX) for Active Objects","url":"https://daily.dev/posts/linux-posix-for-active-objects-rdyfrw8oe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/linux-posix-for-active-objects-rdyfrw8oe"},"datePublished":"2026-09-04T14:44:49.842Z","dateModified":"2026-09-13T20:24:24.319Z","description":"A lesson in an embedded systems programming course walks through running the QP active object framework's event-driven, hierarchical state machine model on...","image":"https://i.ytimg.com/vi/wcgSJb9gKK4/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/wcgSJb9gKK4/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Quantum Leaps","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Quantum Leaps","logo":"https://media.daily.dev/image/upload/s--m6w7j8ut--/f_auto,q_auto/v1780213517/logos/quantum-leaps?_a=BAMAMiWQ0","url":"https://daily.dev/sources/quantum-leaps"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/linux-posix-for-active-objects-rdyfrw8oe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux,embedded,c++","timeRequired":"PT23M","video":{"@type":"VideoObject","name":"Linux (POSIX) for Active Objects","description":"A lesson in an embedded systems programming course walks through running the QP active object framework's event-driven, hierarchical state machine model on...","thumbnailUrl":"https://i.ytimg.com/vi/wcgSJb9gKK4/sddefault.jpg","uploadDate":"2026-09-04T14:44:49.842Z","duration":"PT23M","url":"https://api.daily.dev/r/rdyFrW8Oe","embedUrl":"https://www.youtube.com/embed/wcgSJb9gKK4"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Quantum Leaps","item":"https://daily.dev/sources/quantum-leaps"},{"@type":"ListItem","position":3,"name":"Linux (POSIX) for Active Objects"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/linux-posix-for-active-objects-rdyfrw8oe#faq","mainEntity":[{"@type":"Question","name":"Why does building the spy trace configuration fail in the open-source QP framework distribution?","acceptedAnswer":{"@type":"Answer","text":"The build fails because software tracing support has been removed from the open-source QP bundle distribution, reportedly due to widespread GPL non-compliance accelerated by AI training practices. The removed components are now provided separately as QP extras, which require requesting an evaluation license; requests are said to be granted liberally, and the extras package is unzipped into the existing QP C++ directory using a password based on the license number. Developers relying on QP's tracing tools can follow license and packaging changes like this on daily.dev."}},{"@type":"Question","name":"What is the difference between the POSIX port and the POSIX-QV port in the QP active object framework?","acceptedAnswer":{"@type":"Answer","text":"The standard POSIX port runs every active object in its own separate POSIX thread, which is useful for taking advantage of multicore processing, while the POSIX-QV port runs all active objects cooperatively in a single main thread, similar to the non-preemptive QV kernel, economizing thread usage and simplifying safe resource sharing. Both use a pthread mutex for critical sections that must not nest. Engineers choosing a concurrency model for embedded Linux can compare trade-offs like these on daily.dev."}},{"@type":"Question","name":"How do you run the dining philosophers example from the QP framework on a Raspberry Pi Zero Wireless running embedded Linux?","acceptedAnswer":{"@type":"Answer","text":"Copy the QPC++ directory to the Pi over SSH, unzip it, navigate to the qpcpp/examples/posix32/dpp directory, clean any previous desktop build artifacts, and run make to build the executable in the DBG directory, then execute it with DBG/dpp. Running with superuser privileges additionally allows the app to apply the SCHED_FIFO real-time scheduling policy for POSIX threads. Developers targeting Raspberry Pi for embedded builds can track practical setup guides like this on daily.dev."}}]}
```

