beautypg.com

Figure 3.21 alteration of task priority, Figure 3.22 task rearrangement in a waiting queue, Ated. (see figure 3.21 – Renesas 70 User Manual

Page 43: See figure 3.22

background image

Chapter 3 Introduction to MR308

- 33 -

1

Task A

Priority

2

Task C

Task F

Task E

Task D

3

n

Task B

Task B

When the priority of task B has been changed from 3 to 1

Figure 3.21 Alteration of task priority

Priority 1

Priority 2

Priority 3

Priority 4

When the priority of Task B is changed into 4

ID Number

taskA

taskB

taskC

taskB

Figure 3.22 Task rearrangement in a waiting queue

Reference task priority (get_pri, iget_pri)

Gets the priority of a task.

Reference task status (simple version) (ref_tst, iref_tst)

Refers to the state of the target task.

Reference task status (ref_tsk, iref_tsk)

Refers to the state of the target task and its priority, etc.