Week 6 Operating System Structures and Functional Modules
Week 6 Operating System Structures and Functional Modules
• Monolithic Kernel:
o Definition: A single large process that runs in supervisor mode, handling all OS
functions. Includes device drivers, file systems, and system calls.
o Advantages: Efficient communication between components, fewer context
switches.
o Disadvantages: Less modular, harder to maintain and extend.
• Microkernel:
o Definition: Only the most essential functions (e.g., communication, basic
hardware management) run in kernel mode. Other services (e.g., file systems,
device drivers) run in user mode.
o Advantages: More modular and easier to maintain; faults in one component do
not necessarily crash the entire system.
o Disadvantages: Potentially slower due to more context switches and inter-
process communication.
2. Functional Modules of an OS
• Modules:
o File System: Manages file operations such as creation, deletion, reading, and
writing. Provides abstraction for file storage.
o Memory Management: Handles allocation and deallocation of memory, paging,
and segmentation.
o Process Management: Manages process creation, scheduling, and termination.
Ensures fair CPU allocation and efficient multitasking.
o Device Drivers: Provide an interface for the OS to communicate with hardware
devices.
3. Levels of Abstraction in OS
• Control Flow: Manages how processes and threads are scheduled and executed.
Includes handling interrupts and system calls.
• Interrupts: Mechanism to handle asynchronous events and ensure timely responses to
hardware signals.
• System Calls: Interface through which user applications request services from the OS.
Examples include file operations (open(), read(), write()) and process control
(fork(), exec()).