source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_block_case1.scen @ a358713

Last change on this file since a358713 was a358713, checked in by Jennifer Averett <jennifer.averett@…>, on May 23, 2014 at 6:46:31 PM

schedsim_smppriority_affinity: Fix typo in name.

  • Property mode set to 100644
File size: 872 bytes
Line 
1#
2#  Block a thread in an application with thread affinity and
3#  priorities such that finding an heir requires scanning the
4#  ready set of threads.
5#
6#  Basic premise:
7#    - Two threads at low priority, affinity for core 0
8#    - More threads than core at high priority, affinity for all but core 0
9#
10rtems_init 4
11task_create smp1 -a 0xe 10
12task_create smp2 -a 0xe 10
13task_create smp3 -a 0xe 10
14task_create smp4 -a 0xe 10
15# GOAL: Core 0 should be idle
16# GOAL: Cores 1-3 should be 0x0a01000[321] respectively
17cpus IDLE smp3 smp2 smp1
18
19# check_tasks IDLE smp3 smp2 smp1
20# GOAL: Core 0 should have aff1 0x0a010005
21# GOAL: Cores 1-3 should be 0x0a01000[321] respectively
22task_create aff1 -a 0x1 11
23cpus aff1 smp3 smp2 smp1
24
25# Create a low priority task with affinity to core 0
26task_create aff2 -a 0x1 11
27cpus aff1 smp3 smp2 smp1
28task_suspend aff1
29cpus aff2 smp3 smp2 smp1
Note: See TracBrowser for help on using the repository browser.