- 2068 Bhadra · 3+5 marks
Functions of OS and microkernel
Short answer
OS functions include process, memory, file, and I/O management, protection, and user interface. A microkernel keeps only essential services (IPC, scheduling, basic memory) in kernel mode; other services like file systems and drivers run as user-mode servers communicating via message passing.
What are the functions of an operating system? Explain about microkernel.
Functions of an operating system
- Process management: creation, scheduling, synchronization, communication and termination of processes.
- Memory management: allocation, protection, swapping, paging and virtual memory.
- File-system management: files and directories, access control, storage allocation.
- I/O (device) management: device drivers, buffering, spooling and disk scheduling.
- Protection and security: authentication and access control for resources.
- User interface: shell or GUI, error handling and resource accounting.
Microkernel
A microkernel is an OS design in which only the minimum essential services run in kernel mode, and everything else runs as ordinary user-mode server processes.
The microkernel keeps only:
- low-level address-space management (basic memory handling),
- process/thread management and scheduling, and
- inter-process communication (IPC) by message passing.
The file system, device drivers, networking and memory pagers run as separate servers in user space. A client requests a service by sending a message to the microkernel, which passes it to the right server and returns the reply.
User mode:
+------+ +--------+ +---------+ +-----+
| File | | Device | | Network | | App |
| srv | | driver | | server | | |
+--+---+ +---+----+ +----+----+ +--+--+
| | | |
---+---------+-----------+---------+---
Kernel mode:
+------------------------------------+
| Microkernel: IPC, scheduling, |
| basic memory management |
+------------------------------------+
| Hardware |
+------------------------------------+
Advantages: small, easy to port and extend; more reliable and secure because a failing server does not crash the kernel; servers can be added or replaced without recompiling the kernel.
Disadvantage: slower than a monolithic kernel because of repeated message passing and mode switches. Examples: Mach, QNX, MINIX 3.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- What is an OS; its functions · Operating System, chapter 1 · asked 2×
- OS abstraction, extended machine, system call · Operating System, chapter 1
- OS as virtual machine; functions · Operating System, chapter 1
- OS definition and types of OS · Operating System, chapter 1
- Layered vs monolithic OS structure · Operating System, chapter 1
- Pipe, shell; OS as resource manager · Operating System, chapter 1
- Short note: Monolithic and microkernel · Distributed System, chapter 3 · asked 4×
- DOS; monolithic and microkernel · Distributed System, chapter 3
- Features of a typical operating system · Microprocessor, chapter 6 · asked 3×
- Operating system layers · Distributed System, chapter 3