Practice mode Operating Systems

What is the purpose of the mode bit provided by CPU hardware?

Correct answer B. It indicates whether the CPU is executing in kernel mode or user mode

Explanation

Dual-mode operation uses a hardware mode bit to tell whether the current instruction runs on behalf of the operating system (kernel mode) or a user program (user mode). Privileged instructions are allowed only in kernel mode, which protects the OS from faulty or malicious programs. The sign flag records negative results, and the dirty bit belongs to page-table entries, not the mode bit.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.