Renesas 70 Manuel D’Utilisation

Page de 162
Chapter 3 Introduction to MR308 
   
- 33 - 
 
Task A
Priority 
Task C
Task F
Task E
Task D 
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.