H12-111_V2-5 practice question 13 of 25
When a task is suspended. If the current task is locked, it cannot be suspended.
Full set: 176 questionsIn a real-time operating system (RTOS) like Huawei LiteOS, task locking (e.g., via LOSTaskLock()) is a mechanism that disables the task scheduler. The primary purpose of this is to allow a task to execute a critical section of code without being preempted by other tasks. Since suspending the currently running task would require the scheduler to perform a context switch to another ready task, and the scheduler is explicitly locked to prevent this, the current task cannot be suspended while it holds the lock.
B. This is incorrect. The fundamental principle of a scheduler lock is to prevent context switches, and suspending the current task necessitates a context switch.
1. Huawei. LiteOS Kernel Developer Guide. Section "Task Management," subsection "Locking Task Scheduling." The documentation explains that LOSTaskLock disables task scheduling to ensure the current task is not preempted. Any operation that would yield the CPU, such as suspension, is incompatible with this state.
2. Wang, K., & Xiong, W. (2019). Huawei LiteOS Kernel Architecture and Implementation. Chapter 4 "Task Management," describes the task scheduling lock mechanism, stating it prevents the scheduler from dispatching tasks, thus making the current task unable to be suspended or blocked.
Keep practicing
Take the free H12-111_V2-5 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other H12-111_V2-5 practice questions
- Question 1Data communication management between gateway and OceanConnect is based on the following …
- Question 2Among the following options, what are the ones that Huawei Lighting IoT Solution provides…
- Question 3Are the following application layers of the Internet of Vehicles ()? (Multiple choice).
- Question 4Huawei IoT Gateway Zigbee physical layer technology adopts the following () standards?
- Question 5NB-loT sub-channel broadband includes ()? (Multiple choice).
- Question 6The naming format of the device Profile's zip package is the following ()?
