MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ORGANIZATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The CPU has two modes privileged and non-privileged. In order to change the mode from privileged to non-privileged, ____ is needed.
A
a hardware interrupt
B
a software interrupt
C
either hardware or software interrupt
D
a non-privileged instruction
Explanation: 

Detailed explanation-1: -The instructions which are executed and can be made to run only in kernel mode. Then, these types of instructions are known as Privileged Instructions. The instructions which are executed and can be made to run only in User mode. Then, these types of instructions are known as Non-Privileged Instructions.

Detailed explanation-2: -ARM PROCESSOR FUNDAMENTALS Each processor mode is either privileged or nonprivileged: A privileged mode allows full read-write access to the cpsr. Conversely, a nonprivileged mode only allows read access to the control field in the cpsr but still allows read-write access to the condition flags.

Detailed explanation-3: -The instruction set is divided into two categories: Privileged instruction-These instructions must be used wisely as their misuse can harm the system. Non-privileged instruction-These are normal instructions.

Detailed explanation-4: -Supervisor mode or privileged mode is a computer system mode in which all instructions such as privileged instructions can be performed by the processor. Some of these privileged instructions are interrupt instructions, input output management etc.

There is 1 question to complete.