OPERATING SYSTEM
1️⃣ What is an Operating System?
🔹 Definition (Exam Ready)
An Operating System is system software that acts as an interface between the user and computer hardware.
🔹 Simple Line to Remember
👉 User → OS → Hardware
🔹 Examples
-
Windows
-
Linux
-
macOS
-
Android
-
iOS
🔹 Main Functions (Mnemonic: PM-FD-SH-UI)
| Function | Meaning |
|---|---|
| Process Management | CPU allocation, multitasking |
| Memory Management | RAM usage, allocation |
| File Management | Create, delete, store files |
| Device Management | Printer, keyboard, mouse |
| Security | Password, protection |
| User Interface | GUI / CLI |
📌 Exam Fact:
Kernel performs process + memory management
3️⃣ Types of Operating System
🔹 1. Batch Operating System
-
Jobs executed in batches
-
No user interaction
📌 Example: Old IBM systems
🔹 2. Time Sharing Operating System
-
Multiple users share CPU
-
Fast response time
📌 Example: UNIX, Linux
🔹 3. Multiprogramming OS
-
Multiple programs in memory
-
CPU always busy
📌 MCQ: Improves CPU utilization ✔️
🔹 4. Multiprocessing OS
-
Uses multiple CPUs
📌 Example: Modern servers
🔹 5. Real-Time Operating System (RTOS)
-
Time critical
-
Used in missiles, robots
📌 Example: VxWorks
🔹 6. Distributed OS
-
Multiple computers connected
-
Work as one system
📌 Example: Network OS
4️⃣ Process & Thread
🔹 Process
-
Program in execution
-
Has its own memory
🔹 Thread
-
Lightweight process
-
Shares memory
📌 MCQ Favorite:
Thread is faster than process ✔️
5️⃣ Process States
New🔹 Five States (Mnemonic: N-R-R-W-T)
Ready
Running
Waiting
Terminated📌 UP Exam Repeated Question
6️⃣ CPU Scheduling Algorithms
🔹 Algorithms
| Algorithm | Key Point |
|---|---|
| FCFS | First Come First Serve |
| SJF | Shortest Job First |
| Priority | High priority first |
| Round Robin | Time quantum based |
📌 MCQ:
Round Robin is used in Time Sharing OS
7️⃣ Deadlock
🔹 Definition
Deadlock is a situation where processes wait forever for resources.
🔹 Four Conditions (Mnemonic: M-H-N-C)
-
Mutual Exclusion
-
Hold and Wait
-
No Preemption
-
Circular Wait
📌 Important:
All four must occur for deadlock.
8️⃣ Memory Management
🔹 Techniques
-
Paging
-
Segmentation
-
Virtual Memory
📌 MCQ:
Paging removes external fragmentation
9️⃣ File System
🔹 File Operations
-
Create
-
Delete
-
Read
-
Write
🔹 File Access Methods
-
Sequential
-
Direct
-
Indexed
📌 Exam Fact:
NTFS → Windows file system
🔟 Kernel
🔹 Kernel Types
-
Monolithic Kernel
-
Micro Kernel
📌 MCQ:
Kernel is heart of OS
🔁 1-Minute Revision Chart
| Topic | Keyword |
|---|---|
| OS | Interface |
| Kernel | Core |
| Process | Execution |
| Thread | Lightweight |
| Deadlock | Infinite wait |
| Paging | No external fragmentation |
| Round Robin | Time quantum |
Comments
Post a Comment