Which of the following statements are TRUE about Privileged Instructions? (A)…
2024
Which of the following statements are TRUE about Privileged Instructions?
(A) It can only be executed by the Operating System kernel and not by user applications.
(B) It is designed to perform operations that can directly affect the hardware or system state such as I/O operations or changing memory management setting.
(C) User applications can execute privileged instructions if they have to correct permissions, set by the Operating System.
(D) It usually executed in user mode to ensure the safety and security of the system.
Choose the correct answer from the options given below:
- A.
(A) and (B) Only
- B.
(A), (B) and (C) Only
- C.
(B) and (C) Only
- D.
(B), (C) and (D) Only
Attempted by 394 students.
Show answer & explanation
Correct answer: A
Correct answer: The statements that privileged instructions can only be executed by the operating system kernel and that they are designed to perform operations that directly affect hardware or system state are true. The other statements are false.
Statement about kernel-only execution: Privileged instructions require supervisor (kernel) mode and cannot be executed directly by user applications. This restriction is enforced by the CPU to maintain isolation and security.
Statement about affecting hardware or system state: True. Privileged instructions perform sensitive operations such as I/O control, changing memory management settings, and other actions that affect global system state.
Statement about user applications executing privileged instructions: False. User programs cannot execute privileged instructions even if "permissions" were conceptually granted; they must use system calls or other controlled kernel interfaces so the kernel executes the privileged operations on their behalf.
Statement about privileged instructions executing in user mode: False. Executing privileged instructions in user mode would bypass hardware-enforced protection and compromise safety and security; therefore they run in kernel (supervisor) mode.
Key takeaway: Privileged instructions are reserved for kernel execution and are used for operations that can affect hardware or global system state. User-level code uses system calls to request such operations from the kernel.
A video solution is available for this question — log in and enroll to watch it.