1.3-OS Operations
1.3-OS Operations
Need of Multiprogramming
A single program cannot, in general, keep either the CPU or the I/O
devices busy at all times. Single users frequently have multiple programs
running.
Multitasking (Timesharing)
EXAMPLES:
o VMS
o Solaris
o Mac OS X
o VAXELN (DEC)
o Windows Server 2003
o Windows Server 2008
o RSX-11 (DEC)
Dual-Mode Operation
a) User Mode
The OS runs in privileged mode, with full access to all system resources.
It can execute critical operations such as process scheduling, memory management, and
hardware control.
The OS switches from user mode to kernel mode when handling system calls, interrupts,
or exceptions.
Mode Switching
The transition from user mode to kernel mode (or vice versa) occurs when:
Multimode Operation
Modern CPUs support more than two modes to enhance security and virtualization. Multimode
operation extends the dual-mode concept by adding multiple privilege levels.
2. Virtualization Mode
o CPUs like Intel VT-x and AMD-V introduce virtual machine mode
(VMM).
o Allows guest operating systems to run efficiently under a hypervisor.
3. Hypervisor Mode
o Some architectures introduce a hypervisor mode for virtualization.
o The hypervisor controls multiple OS instances while ensuring isolation.
3. TIMER OPERATION
A timer in an operating system (OS) is a crucial hardware component that helps
manage time-dependent tasks, ensuring proper execution of processes, resource
allocation, and system stability.
Purpose of a Timer in OS