source: rtems-schedsim/schedsim/shell/schedsim_smpsimple/scenarios/cpus4_mode_case1.scen @ 3ad6235

Last change on this file since 3ad6235 was 3ad6235, checked in by Jennifer Averett <jennifer.averett@…>, on 05/13/14 at 14:30:12

schedsim_smpsimple: Clean up scenarios to match changes.

Dispatch commands were removed since a dispatch of all cpu's was
added to the dispatch wrapper. Scenarios wich only use preemptable
tasks were modified to account for changes in scheduling and
changes in expected output format.

  • Property mode set to 100644
File size: 586 bytes
Line 
1#
2#  Show how having a non-preemptive task can create a
3#  priority inversion and changing the mode to preemptive
4#  resolves it.
5#
6rtems_init 4
7task_create -p smp1 5
8task_create smp2 5
9task_create smp3 5
10task_create smp4 5
11dispatch
12# GOAL: 0x0a010001 - 0x0a010004 are heir and executing
13# GOAL:   on CPUs 0 - 3 respectively
14cpus
15
16task_create smp5 3
17# GOAL: 0x0a010001, 0x0a010005, 0x0a010003, and 0x0a010004 are heir
18# GOAL:   and executing on CPUs 0 - 3
19cpus
20
21task_mode -P
22# GOAL: 0x0a010001, 0x0a010005, 0x0a010003, and 0x0a010004 are heir
23# GOAL:   and executing on CPUs 0 - 3
24cpus
Note: See TracBrowser for help on using the repository browser.