View topic - QNX4 sample projects

QNX4 sample projects

For discussion of realtime and/or embedded programming.

QNX4 sample projects

Postby kumraki » Tue Dec 07, 2010 8:28 am


I am new to QNX RTOS.
I am looking for some sample projects with QNX4.
My project is about reading multiple serial ports, if possible simultaneously. And use a timer to control the reading an writing process to the COM ports. Along with the data acquisition I will be doing some control algorithms like PID control of motors.

Right now I am able to do all these tasks sequential on QNX without using any RTOS features just in C programming.
Should I go with multiprocessing or multithreading, which ever the QNX4 RTOS supports.

Any ideas and suggestions are greatly welcome. Where would be the right place to start.

New Member
Posts: 2
Joined: Sat Oct 11, 2008 11:37 pm

RE: QNX4 sample projects

Postby maschoen » Wed Dec 08, 2010 3:44 pm

It seems pretty strange that you are using QNX 4. A great product, but no longer well supported. Thread support was not very good in QNX 4 either. You can accomplish what you describe either by creating slave processes, one each for each serial line, or using select(). I prefer the former.

If you were using QNX 6, a much better choice in most circumstances, you could do this with threads.
QNX Master
Posts: 2682
Joined: Wed Jun 25, 2003 5:18 pm

Return to Realtime and Embedded

Who is online

Users browsing this forum: Google [Bot] and 5 guests