µITRON4.0 specification is an open source real-time kernel specification designed by TRON Forum.
The µITRON4.0 specification can be obtained from the TRON Forum website (https://www.tron.org/).
- TRON stands for "The Real-time Operating system Nucleus."
- ITRON stands for "Industrial TRON."
- μITRON stands for "Micro Industrial TRON."
- TRON, ITRON, and µITRON are not the names of specific products or product groups.
- The copyright of this document shall belong to TRON Forum.
- No part of this document may be reproduced, copied, and duplicated without permission.
- The content of this document is subject to change without notice.
Q1: Scheduling
The following is an explanation of ITRON specification scheduling. Choose the appropriate word to fill in the blank.
ITRON specification adopts a preemptive priority-based scheduling method based on the priority levels assigned to each task.
If there are multiple tasks that can be run, the one with the highest precedence goes to RUNNING state. When there are multiple tasks of the same priority, priority is given to the task that becomes _____ first. This method of determining the priority between tasks with the same priority is called the First Come First Served (FCFS).
a) READY
b) WAITING
c) WAITING-SUSPENDED
d) SUSPENDED
e) DORMANT
Q2: Mutual exclusion control
The following is an explanation of mutual exclusion control. Choose the appropriate word to fill in the blank.
ITRON Specification OS is a thread model OS, and global variables, etc., exist in the same memory space.
Therefore, when global variables are accessed from _____, they need mutual exclusion control to prevent simultaneous accesses.
a) Registered task
b) Task in RUNNING state
c) Some tasks
d) Multiple tasks
e) Deleted task
Q3: Task context [ITRON Specification OS]
The following is an explanation of task context. Choose the appropriate word to fill in the blank.
The generic term for contexts that are considered part of task processing is “task context,” and for the ones that are not is “non-task context." The context in which time event handlers such as cyclic handlers are executed is classified as a non-task context.
Service calls that can be called from a non-task context are _____. They are distinguished from service calls that can be called from a task context. However, as implementation-specific extension, some can be called from either context.
a) the ones that have “v” at the beginning of the name
b) the ones that have “v” at the end of the name
c) the ones that have “i” at the beginning of the name
d) the ones that have “i” at the end of the name
e) the ones that have “x” at the beginning of the name
Q4: Mutual exclusion control (Semaphore [ITRON Specification OS])
The following is a piece of code that shows the basic structure of mutual exclusion control using a semaphore. Select the service call to use in (1).
1 2 3 4 5 6 7 8 9 10 11 |
void task1(VP_INT exinf) { ER ercd; while(1) { ercd = wai_sem(ID_SEM1); /* Obtain semaphore */ /* Describe the processing that requires mutual exclusion control here. */ ercd = 【(1)】 (ID_SEM1); /* releases semaphore */ /* The processing described here is not exclusively controlled. */ } } |
a) pol_sem
b) ref_sem
c) ref_sem
d) del_sem
e) sig_sem
Q5: (SUSPENDED [ITRON Specification OS])
The following is a piece of code that shows the basic coding structure when the SUSPENDED function is used. Select the service call that will resume this task in SUSPENDED state.
1 2 3 4 5 6 7 8 9 10 |
void task1(VP_INT exinf) { ER ercd; while(1) { ercd = sus_tsk(TSK_SELF); /* SUSPENDED invoking task */ /* Describe the processing that is performed when the task is resumed from a SUSPENDED state. */ } } |
a) dly_tsk
b) sus_tsk
c) wup_tsk
d) can_wup
e) rsm_tsk
Q6: Embedded systems
Enter "True" or "False" in the space provided below for each of the following questions about embedded systems.
- The kernel used in embedded systems is often a different type to the one used in personal computers and servers. 【 】
- The number of embedded computers shipped is almost the same as the total number of personal computers and PDAs shipped. 【 】
- Personal computers are a typical example of embedded computers. 【 】
- Most embedded systems today use 32-bit processors. 【 】
- Compared to personal computers, embedded systems often have higher repair costs when software malfunctions occur. 【 】
Q7: Real-time systems
Enter "True" or "False" in the space provided below for each of the following questions about real-time system technology.
- In a real-time system, the processing switch is designed to be achieved with a light load. 【 】
- For real-time performance, it is important to finish processing within the requested time. 【 】
- In order to achieve real-time performance, it is essential to be able to predict processing time. 【 】
- Real-time performance is achieved by using a processor with high processing performance. 【 】
- In real-time systems, large amounts of RAM are installed to improve responsiveness. 【 】
Q8: Scheduling
Choose A, B, or C to describe the following scheduling methods and enter in the 【 】.
- Round robin scheduling ==> 【 】
- Priority scheduling ==> 【 】
- Preemptive scheduling ==> 【 】
(A) A method that stops a low priority task even if the low priority task is in progress when a task with higher priority starts.
(B) A scheduling method that prioritizes the execution of tasks with higher priority.
(C) A scheduling method that executes tasks in order for the same amount of processing time each time.
Q9: Communication between tasks
Enter "True" or "False" in the space provided below for each of the following questions about cooperative behavior between tasks.
- In real-time systems, various types of synchronization and communication functions are often required, depending on the pattern of cooperative processing between tasks. 【 】
- In real-time systems, all inter-task communication uses the Internet. 【 】
- In real-time systems, if tasks are working together, it will not be possible to achieve a high level of responsiveness, so it is best to avoid cooperative behavior of tasks as much as possible. 【 】
- In real-time systems, shared memory communication is appropriate because it is easy to program. 【 】
Q10: Embedded real-time system development
Enter "True" or "False" in the space provided below for each of the following questions about the development advantages of using embedded real-time OSs.
- The processing load will increase, so the response performance of the device will decrease. 【 】
- You can use various development tools such as debuggers on many different computer boards. 【 】
- Application software becomes more reusable. 【 】
- You do not have to implement common functions for embedded real-time systems, so it is easier. 【 】
- Standardized operation makes the device easier to use. 【 】
OnWeb seminar
Quiz to deepen understanding
© TRON Forum