Interrupts and Modes of Operating System in Hindi | OS Notes for Students

Interrupts and Modes of Operating System in Hindi | OS Notes for Students - notesMind

📌 Introduction

Operating System (OS) कंप्यूटर का सबसे महत्वपूर्ण हिस्सा होता है, जो CPU, Memory और सभी hardware resources को manage करता है।
इस ब्लॉग में हम दो बहुत जरूरी concepts को समझेंगे:

  • Interrupt क्या होता है?
  • User Mode और Kernel Mode क्या होते हैं?

ये दोनों topics हर BCA, MCA, B.Tech, Polytechnic और competitive exams के लिए बहुत important हैं।


⚡ Interrupt क्या होता है?

👉 Definition (सरल भाषा में)

Interrupt एक signal होता है जो CPU को बताता है कि अभी एक important काम करना है।

जब कोई hardware या software CPU को signal देता है, तो CPU अपना current काम रोककर उस नए काम को execute करता है।


🔍 Real-life Example

मान लो आप पढ़ाई कर रहे हो 📖
अचानक आपका phone बजता है 📞
👉 आप पढ़ाई रोककर कॉल उठाते हो
👉 यही interrupt है!


🧩 Interrupt कैसे काम करता है?

  1. CPU कोई program execute कर रहा होता है
  2. अचानक interrupt signal आता है
  3. CPU current task को pause करता है
  4. फिर ISR (Interrupt Service Routine) execute करता है
  5. बाद में वापस पहले वाले काम पर आ जाता है

📌 ISR क्या है?

ISR (Interrupt Service Routine) एक predefined function होता है जो interrupt को handle करता है।

👉 हर interrupt के लिए अलग ISR होता है


🔥 Interrupt के प्रकार (Types of Interrupts)

1️⃣ Hardware Interrupt

👉 Definition

जब hardware devices CPU को signal भेजते हैं, उसे Hardware Interrupt कहते हैं।

📌 Examples

  • Keyboard key press
  • Mouse click
  • Printer में page jam
  • Hard disk read error

2️⃣ Software Interrupt

👉 Definition

जब कोई program या application CPU को signal देता है, उसे Software Interrupt कहते हैं।

📌 Important Point

👉 Software interrupt अक्सर System Call के माध्यम से होता है

📌 Example

  • File save करना
  • Memory request करना
  • Input/Output operations

⚠️ Important Note

जब CPU को interrupt मिलता है:

✔ CPU current execution को suspend करता है
✔ ISR को execute करता है
✔ फिर वापस previous task पर आ जाता है


💻 Modes of Execution (Operating System)

Operating System में दो modes होते हैं:

1️⃣ User Mode

👉 Definition

जब user application (जैसे Chrome, MS Word) run करता है, तो वह User Mode में चलता है।

📌 Features

  • Limited permissions
  • Direct hardware access नहीं
  • Safe environment

📌 Example

  • MS Word
  • Browser
  • Games

2️⃣ Kernel Mode (Privileged Mode)

👉 Definition

जब OS खुद काम करता है, तो वह Kernel Mode में होता है।

📌 Features

  • Full access to hardware
  • Memory control
  • Resource management

🔄 User Mode और Kernel Mode के बीच Switching

👉 Process Flow

  1. User program चलता है (User Mode)
  2. System call आता है
  3. Control Kernel Mode में जाता है
  4. OS task execute करता है
  5. वापस User Mode में लौटता है

🎯 Important Points (Exam के लिए)

✔ Interrupt CPU को signal देता है
✔ ISR interrupt को handle करता है
✔ Hardware और Software दो types होते हैं
✔ User Mode → limited access
✔ Kernel Mode → full control
✔ System Call switching का main तरीका है


📊 Conclusion

Interrupt और Modes of Operation OS के core concepts हैं।
अगर आप इनको अच्छे से समझ लेते हैं, तो OS के कई topics आसान हो जाते हैं जैसे:

  • Process Management
  • Scheduling
  • Memory Management

💬 Leave a Comment & Rating