RTEMS Logo

RTEMS 4.6.1 On-Line Library


Sample Applications Base Multiple Processor Application

PREV UP NEXT Bookshelf RTEMS Development Environment Guide

3.5: Base Multiple Processor Application

This sample application is in the following directory:

${RTEMS_ROOT}/tests/samples/base_mp/

It provides a framework from which a multiprocessor RTEMS application can be developed. This directory has a subdirectory for each node in the multiprocessor system. The task argument is used to distinguish the node on which the application task is executed. The first node will print the following messages:

*** SAMPLE MULTIPROCESSOR APPLICATION ***
Creating and starting an application task
This task was invoked with the node argument (1)
This task has the id of 0x10002
*** END OF SAMPLE MULTIPROCESSOR APPLICATION ***

The second node will print the following messages:

*** SAMPLE MULTIPROCESSOR APPLICATION ***
Creating and starting an application task
This task was invoked with the node argument (2)
This task has the id of 0x20002
*** END OF SAMPLE MULTIPROCESSOR APPLICATION ***

The herald is printed from the application's single initialization task on each node. The final messages are printed from the single application task on each node.

In this sample application, all source code is shared between the nodes except for the node dependent configuration files. These files contains the definition of the node number used in the initialization of the RTEMS Multiprocessor Configuration Table. This file is not shared because the node number field in the RTEMS Multiprocessor Configuration Table must be unique on each node.


PREV UP NEXT Bookshelf RTEMS Development Environment Guide

Copyright © 1988-2004 OAR Corporation