Renesas M3T-MR100 Network Card User Manual


 
- 21 -
3.4 Task
This section describes how tasks are managed by MR100.
3.4.1 Task Status
The real-time OS monitors the task status to determine whether or not to execute the tasks.
Figure 3.15 shows the relationship between key input task execution control and task status. When there is a key input, the
key input tas
k must be executed. That is, the key input task is placed in the execution (RUNNING) state. While the system
waits for key input, task execution is not needed. In that situation, the key input task in the WAITING state.
Key input
Task
RUNNIG state WAITING state RUNNING state
Waiting for
key input
Key input
processing
Key input
p
rocessin
g
Figure 3.15 Task Status
The MR100 controls the following six different states including the RUNNING and WAITING states.
1. RUNNING state
2. READY state
3. WAITING state
4. SUSPENDED state
5. WAITING-SUSPENDED state
6. DORMANT state
Every task is in one of the above six different states. Figure 3.16 shows task status transition.