Summarized Notes for revision - OS
Summarized Notes for revision - OS
An Operating System (OS) is system software that manages computer hardware and software
resources and provides common services for computer programs. It acts as an intermediary
between users and the computer hardware, ensuring smooth operation and resource allocation.
1. Process Management – Controls the execution of processes, allocates CPU time, and
ensures proper execution.
2. Memory Management – Allocates and deallocates memory space as needed.
3. File System Management – Organizes, stores, retrieves, and manages files on storage
devices.
4. Device Management – Facilitates communication between the OS and hardware
peripherals.
5. User Interface – Provides an interface (GUI or CLI) for users to interact with the system.
6. Security Management – Protects data, prevents unauthorized access, and ensures system
integrity.
7. Error Handling – Detects, reports, and resolves system errors.
8. Networking Management – Enables communication between computers over a
network.
Recap Questions:
Used in applications requiring immediate response (e.g., medical devices, aircraft control
systems).
Two types: Hard RTOS (strict timing constraints) and Soft RTOS (flexible timing
constraints).
Recap Questions:
A process is an executing program, including code, data, and system resources assigned to it.
Process States
Process Scheduling
First Come First Serve (FCFS): Processes are executed in the order of arrival.
Shortest Job Next (SJN): Executes the process with the shortest execution time first.
Round Robin (RR): Allocates fixed time slices to processes in a cyclic order.
Priority Scheduling: Processes with higher priority are executed first.
Recap Questions:
Primary Memory (RAM): Fast but volatile storage used for running processes.
Secondary Memory (HDD/SSD): Slower but non-volatile storage used for permanent
data.
Virtual Memory
Recap Questions:
1. Define primary and secondary memory.
2. How does paging differ from segmentation?
3. What is virtual memory, and how does it benefit an OS?
4. Explain how contiguous allocation works.
Directory Structures
Recap Questions:
Device Drivers
Recap Questions:
Access Control
File permissions (Read, Write, Execute) and user roles (Admin, User, Guest).
Recap Questions: