Protection in oS

Protection क्या है?

Protection का मतलब है system resources (जैसे memory, files, CPU) को unauthorized access से बचाना और यह ensure करना कि हर user या process सिर्फ अपनी allowed limits में ही काम करे।

मतलब:
हर process को सिर्फ वही access मिले जो उसे दिया गया है।


Basic Concept

  • System में multiple users और processes होते हैं
  • हर user/process को अलग-अलग permissions दी जाती हैं
  • OS control करता है कि कौन क्या access कर सकता है
  • Unauthorized access को रोका जाता है

Goals of Protection

  • Data को सुरक्षित रखना
  • Unauthorized access को रोकना
  • System resources का सही उपयोग सुनिश्चित करना
  • Users के बीच isolation maintain करना

Types of Protection

1. Memory Protection

  • एक process दूसरे process की memory access नहीं कर सकता
  • हर process को अलग memory space मिलता है

2. File Protection

  • Files पर read, write, execute permissions होती हैं
  • केवल authorized user ही access कर सकता है

3. CPU Protection

  • Process को limited CPU time दिया जाता है
  • Infinite loop या misuse से बचाव होता है

4. I/O Protection

  • Direct access devices (disk, printer) पर control रहता है
  • OS के through ही access मिलता है

Protection Mechanism

1. Access Control

  • Define करता है कि कौन-सा user क्या access कर सकता है

2. Access Matrix

यह एक table होता है जो बताता है:

  • कौन-सा subject (user/process)
  • किस object (file/resource) पर
  • कौन-सा operation कर सकता है

Domains of Protection

  • Domain = access rights का set
  • हर user/process एक domain में काम करता है
  • Domain switch होने पर access rights बदल जाते हैं

Example (Conceptual)

मान लो:

User A के पास file read permission है
User B के पास read + write permission है

तो:

  • A सिर्फ पढ़ सकता है
  • B पढ़ और लिख दोनों सकता है

Advantages of Protection

  • System secure रहता है
  • Unauthorized access रुकता है
  • Data safe रहता है
  • Multi-user system efficient बनता है

Disadvantages of Protection

  • System थोड़ा complex हो जाता है
  • Performance पर थोड़ा impact पड़ सकता है
  • Management overhead बढ़ता है

Short Conclusion (Exam Ready)

Protection एक mechanism है जो system resources को unauthorized access से बचाता है और ensure करता है कि हर user और process को केवल allowed permissions ही मिलें। यह system security और stability के लिए जरूरी होता है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top