File: README

package info (click to toggle)
rtlinux 3.1pre3-3
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 4,896 kB
  • ctags: 4,228
  • sloc: ansic: 26,204; sh: 2,069; makefile: 1,414; perl: 855; tcl: 489; asm: 380; cpp: 42
file content (21 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "../README"

This example features two real-time tasks that can potentially perform some
real work, e.g. data collection. Here they simply write strings into FIFOs.

The real-time part creates three RT-FIFOs: two for data passing, and one for
control. Then it creates two real-time tasks and registers a handler with the
control FIFO.

Real-time and non-real-time parts both agree on the format of control messages
(see file control.h). Whenever Linux tasks writes to the control FIFO, the
handler is invoked. In the handler the RT-tasks are started and stopped.

The real-time tasks are almost identical. They keep writing strings into FIFOs.
In the end of each loop each of them makes a request to deschedule itself
until the beginning of the next period.

The Linux program (app) opens RT-FIFO devices, starts RT-tasks and enters the
loop in which it reads and prints the data produced by RT-tasks.

To run type `make; make test'