summaryrefslogtreecommitdiff
path: root/schedsim/shell/schedsim_smpsimple/scenarios/cpus4_pick_older.scen
blob: d8385163eaed7466e75e5a08b4fb5c34ccda78b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
#  Verify we select the oldest task at a priority
#
rtems_init 4
task_create smp1 3
task_create smp2 6
task_create smp3 7
task_create smp4 8
# GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
# GOAL:    on CPUs 3 - 0 respectively
cpus

task_create smp5 5
clock_tick 1
# GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010003, and 0x0a010005 are
# GOAL:    heir and executing on CPUs 3 - 0 respectively
cpus

task_create smp6 5
clock_tick 1
# GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010006, and 0x0a010005 are
# GOAL:    heir and executing on CPUs 3 - 0 respectively
cpus

task_create smp7 5
clock_tick 1
# GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010005 are
# GOAL:    heir and executing on CPUs 3 - 0 respectively
cpus

# We should pick task smp5 (0x0a010005) on CPU 0
task_create smp8 4
# GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010008 are
# GOAL:    heir and executing on CPUs 3 - 0 respectively
cpus