Renesas 70 Manuale Utente
![Renesas](https://files.manualsbrain.com/attachments/59153266feca598c11e08bf1f143ccfcf45441a4/common/fit/150/50/d3d06de51d338eb4f916b44a9629f9d48697a59cd7344be40cf24bae01c5/brand_logo.gif)
Chapter 3 Introduction to MR308
- 24 -
3.3.3
Task Priority and Waiting Queue
In The standard profiles in µITRON 4.0 Specification support two waiting methods for each object. In one
method, tasks are placed in a waiting queue in order of priority (TA_TPRI attribute); in another, tasks are placed
in a waiting queue in order of FIFO (TA_TFIFO).
Figure 3.15 and Figure 3.16 depict the manner in which tasks are placed in a waiting queue in order of
"taskD," "taskC," "taskA," and "taskB."
method, tasks are placed in a waiting queue in order of priority (TA_TPRI attribute); in another, tasks are placed
in a waiting queue in order of FIFO (TA_TFIFO).
Figure 3.15 and Figure 3.16 depict the manner in which tasks are placed in a waiting queue in order of
"taskD," "taskC," "taskA," and "taskB."
n
Priority
1 Priority
5 Priority
6
taskB
1
ID No.
2
taskA
taskC
taskD
Priority 9
Figure 3.15 Waiting queue of the TA_TPRI attribute
n
Priority
9 Priority
6 Priority
1
taskC
1
ID No.
2
taskD
taskA
taskB
Priority 5
Figure 3.16 Waiting queue of the TA_TFIFO attribute