# # $Id$ # # COPYRIGHT (c) 1989-2011. # On-Line Applications Research Corporation (OAR). # # The license and distribution terms for this file may be # found in the file LICENSE in this distribution or at # http://www.rtems.com/license/LICENSE. # This test startst Init task with priority 5 and preemption on which runs on CPU 0. The init task alternates preemption off and preemtion on as it creates tasks for every other cpu in the system. The priority of task N will be 5 + 2; task N-1 will be 5 + 4 ..... Another task will be created after tasks are running on all cpus. This task will be of a priority 3. For a 4 cpu system this task should run on cpu 2. For a 2 cpu system the task should preempt the Init task.