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

Last change on this file since f40778b was f40778b, checked in by Joel Sherrill <joel.sherrill@…>, on 05/17/11 at 19:31:12

2011-05-17 Joel Sherrill <joel.sherrill@…>

  • .cvsignore, ChangeLog?, Makefile.am, README, TODO, add_commands.c, config.c, main_current_cpu.c, main_dispatch.c, main_dump_all_cpus.c, main_dump_ready_tasks.c, printheir_executing.c, schedsim.cc, smp_stub.c, wrap_thread_dispatch.c, scenarios/.cvsignore, scenarios/cpus1_mode.expected, scenarios/cpus1_mode.scen, scenarios/cpus1_priority.expected, scenarios/cpus1_priority.scen, scenarios/cpus1_resume_on_primary.expected, scenarios/cpus1_resume_on_primary.scen, scenarios/cpus1_suspend_on_primary.expected, scenarios/cpus1_suspend_on_primary.scen, scenarios/cpus4_mode_case1.expected, scenarios/cpus4_mode_case1.scen, scenarios/cpus4_mode_case2.expected, scenarios/cpus4_mode_case2.scen, scenarios/cpus4_nonpreempt_case1.expected, scenarios/cpus4_nonpreempt_case1.scen, scenarios/cpus4_pick_older.expected, scenarios/cpus4_pick_older.scen, scenarios/cpus4_priority.expected, scenarios/cpus4_priority.scen, scenarios/cpus4_simple_nopreempt.expected, scenarios/cpus4_simple_nopreempt.scen, scenarios/cpus4_simple_preemption.expected, scenarios/cpus4_simple_preemption.scen, scenarios/cpus4_suspend_on_all.expected, scenarios/cpus4_suspend_on_all.scen, scenarios/cpus4_suspend_on_primary.expected, scenarios/cpus4_suspend_on_primary.scen, scenarios/cpus4_suspend_on_secondary.expected, scenarios/cpus4_suspend_on_secondary.scen: New files.
  • Property mode set to 100644
File size: 595 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
17dispatch
18# GOAL: 0x0a010001, 0x0a010005, 0x0a010003, and 0x0a010004 are heir
19# GOAL:   and executing on CPUs 0 - 3
20cpus
21
22task_mode -P
23# GOAL: 0x0a010001, 0x0a010005, 0x0a010003, and 0x0a010004 are heir
24# GOAL:   and executing on CPUs 0 - 3
25cpus
Note: See TracBrowser for help on using the repository browser.