L12 - Task Scheduling Basics
L12 - Task Scheduling Basics
L12 - Task Scheduling Basics
Task1 Task2
R1 R2 D1 R3 D3 D2
T1 T2 T1 T3 T1 T1
R1 D1
Phase = 1.0
T1
resume Suspend
called called
Ready Running
Scheduled
Suspend
called Event e.g.,
Delay runs out
Blocking
Blocked API Called
e.g., delay()
D1 D2 D3 T3
T
2
Infeasible
feasible
T
T1 T3
2
T1 T4 T5
T2
T3
Scheduled
Scheduled
PSR
PC 0x00041
SP 0x0085D
Timer
Task 1
Task 2
J2 J3 J4
J5 J6
J7 J8
J1 J4 J7 J6
J2 J3 J7 J5 J8
J2 J3 J4
J5 J6
J7 J8
J1 J4 J5 J6
J2 J3 J7 J8
Timer
Task Memory Task Memory