Chapter 1

OS Roles, Kernel Mode, and User Mode

Study the extended-machine role and the privilege model that protects systems.

Estimated time: 20 min

Apps run with limited power (user mode), while the OS kernel has full power (kernel mode).

Most security and stability ideas in OS are built on privilege separation and controlled switching.

OS as Extended Machine

From notes

Clear explanation

OS hides low-level hardware details and presents simpler operations like file copy, print, and save.

What it really means

You ask for outcomes (copy file), not motor-level operations (read sectors, update allocation tables).

Example

Copying from pen drive to disk internally involves USB reads, block writes, metadata updates, and consistency checks.

Key takeaway

Usability comes from abstraction over hardware complexity.

Mode Separation

From notes

Clear explanation

Kernel mode executes privileged operations; user mode runs applications with constrained permissions.

What it really means

Like a hospital: only authorized staff can enter restricted rooms, even if visitors request a service.

Example

A browser cannot directly talk to a disk controller; it requests through OS system calls.

Key takeaway

Privilege separation is a core safety mechanism.

  • - Assuming applications can directly access any hardware
  • - Treating mode switch as normal function call
  • - Ignoring how privilege boundaries prevent crashes
  • - User mode = restricted instructions
  • - Kernel mode = full hardware access
  • - System calls trigger controlled switch to kernel

Exam lens for this topic

What evaluators usually expect in structured exam answers.

Must-use keywords

  • - kernel mode
  • - user mode
  • - privileged
  • - protection
  • - extended machine

Answer flow

  • - Write exact definition in first line
  • - Explain mechanism in ordered bullets
  • - Add one short example or scenario
  • - Close with key takeaway and one exam keyword

Mini quiz

Quick self-check from this topic before moving ahead.

1. Why can user programs not execute privileged instructions directly?

Practice Questions

  • Discuss role of OS as a resource manager.

    Source: Summer 2023 Q1(A)

    Answer focus: Allocation strategy, fairness, protection, synchronization, deadlock handling.

  • Explain Operating System as a resource manager.

    Source: Summer 2025 Q1(A)

    Answer focus: Resource view + concrete examples (CPU, memory, I/O).

Practice from papers (end-of-topic set)

These paper questions map directly to this topic. Solve now, then compare your structure with linked topics.

Question Bank Linked Here

Open all questions

How to answer linked exam questions

Full question bank