TheHingineer

  • Operating System


  • OS Part-1

  • OS Part-2

  • OS Part-3

  • OS Part-4

  • OS Part-5

  • Types of Operating System

    Operating Systems (OS) alag-alag types ke hote hain jo kaam karne ke tarike aur system resources manage karne ke base par classify kiye jate hain.

    1. 1. Bare Machine OS

    2. 2. Batch Processing OS

    3. 3. Real-Time OS

    4. 4. Multitasking & Multiprogramming OS

    5. 5. Time-Sharing OS

    Chalo in sabhi ko detail me samajhte hain.


    1. Bare Machine OS

    Bare Machine OS Kya Hota Hai?

    • Yeh ek basic operating system hai jo directly hardware par kaam karta hai bina kisi user-friendly interface ke.

    • Zyada tar embedded systems, firmware, aur boot loaders me use hota hai.

    • Users low-level machine code ya simple command-line se interact karte hain.

    Example:

    • BIOS (Basic Input Output System) jo computer boot hone se pehle chalta hai.

    • Embedded Systems jaise Washing Machine, ATM Machine, Microwave Oven.

    Diagram:

    +----------+
    | Hardware | --> Directly controlled by OS
    +----------+
    • Isme koi graphical interface ya advanced features nahi hote.


    2. Batch Processing OS

    Batch Processing OS Kya Hota Hai?

    • Is type ke OS me jobs ko ek saath (batch) me group karke execute kiya jata hai.

    • Mainframe computers me use hota hai jisme bina manual interaction ke large data process hota hai.

    • Jobs ek queue me store hoti hain aur ek ek karke execute hoti hain.

    Example:

    • Bank transactions processing (Daily end par sare transactions process hote hain).

    • Payroll Processing System (Salaries calculate karna).

    Diagram:

    +-------+     +-------+     +-------+
    | Job 1 | --> | Job 2 | --> | Job 3 | --> Sequential Processing
    +-------+     +-------+     +-------+
     

    Advantages:

    ✅ Automatic processing bina human interaction ke.
    ✅ Efficient agar repetitive tasks hain.

    Disadvantages:

    ❌ No real-time interaction, ek baar job submit hone ke baad wait karna padta hai.
    ❌ Debugging difficult hota hai, kyunki execution ek sequence me hota hai.


    3. Real-Time Operating System (RTOS)

    RTOS Kya Hota Hai?

    • Yeh OS fixed time constraints ke andar tasks execute karta hai.

    • Industrial automation, medical devices, aur aerospace systems me use hota hai jisme timing critical hoti hai.

    Types of RTOS:

    1. 1. Hard Real-Time OS:

      • Strict time limit hota hai.

      • Example: Pacemaker, Missile Control System.

    2. 2. Soft Real-Time OS:

      • Thodi delay allow hoti hai, but minimum honi chahiye.

      • Example: Online Video Streaming, Gaming.

    Example:

    • Autopilot in airplanes – Plane ko instantly inputs ka response dena hota hai.

    • Robotic arms in manufacturing – Timing ka perfect hona zaroori hai.

    Diagram:

    +--------+     +--------+     +--------+
    | Task 1 | --> | Task 2 | --> | Task 3 | --> Fixed Time Limits
    +--------+     +--------+     +--------+
     

    Advantages:

    ✅ Fast response aur high reliability.
    ✅ Best for time-sensitive applications.

    Disadvantages:

    ❌ High processing power required hoti hai.
    ❌ Design aur implementation complex hota hai.


    4. Multitasking & Multiprogramming OS

    Multitasking OS Kya Hota Hai?

    • Is OS me multiple tasks ek saath chal sakte hain aur CPU fast switching karta hai taaki users ko lage ki sab kuch simultaneously ho raha hai.

    • Example: Windows, Linux, macOS – jisme tum ek saath video dekh sakte ho, browser use kar sakte ho aur file download bhi kar sakte ho.

    Diagram (Multitasking):

    | Process 1 (Browsing) | --> | Process 2 (Music) | --> | Process 3 (Download) |
    |      Running         | --> |      Running      | --> |       Running        |
     

    Multiprogramming OS Kya Hota Hai?

    • Multiprogramming OS me multiple programs memory me load hote hain, aur CPU unme se kisi ek ko execute karta hai taaki idle time minimize ho.

    • CPU idle nahi hota, hamesha kisi na kisi task par kaam kar raha hota hai.

    Example:

    • ATM System – Multiple users ek saath transaction kar sakte hain.

    • Web Servers – Multiple clients ek saath request bhej sakte hain.

    Diagram (Multiprogramming):

    +-----------+     +-----------+     +-----------+
    | Process 1 | --> | Process 2 | --> | Process 3 | --> CPU switches between them
    +-----------+     +-----------+     +-----------+
     

    Advantages:

    ✅ CPU ka maximum utilization hota hai.
    ✅ Multiple processes efficiently handle hoti hain.

    Disadvantages:

    ❌ More RAM required hoti hai taaki multiple programs memory me fit ho sakein.
    ❌ Context switching slow kar sakta hai performance.


    5. Time-Sharing Operating System

    Time-Sharing OS Kya Hota Hai?

    • Is OS me multiple users ek saath ek hi system use kar sakte hain, aur sabko fixed time slot (time quantum) milta hai.

    • CPU fast switching karta hai taaki sabko lage ki unka process ek saath chal raha hai.

    Example:

    • Unix servers jo multiple users ko support karte hain.

    • Cloud Computing Systems jo ek hi hardware par multiple users ko service provide karte hain.

    Diagram (Time-Sharing Process):

    | User 1 | --> | User 2 | --> | User 3 | --> | User 1 | --> ...
    |  10ms  |     |  10ms  |     |  10ms  |     |  10ms  |
    • Sabhi users ko equal CPU time milta hai.

    Advantages:

    ✅ Multiple users ek saath kaam kar sakte hain.
    ✅ CPU wastage avoid hoti hai.

    Disadvantages:

    ❌ Zyada users hone par system slow ho sakta hai.
    ❌ Fast CPU switching aur scheduling algorithms chahiye.


    Summary Table

    Type of OSKey FeatureExample Use Case
    Bare Machine OSDirect hardware controlBIOS, Embedded Systems
    Batch Processing OSJobs batch me execute hote hainPayroll, Bank Transactions
    Real-Time OSFixed time constraintsAutopilot, Industrial Robots
    Multitasking OSMultiple tasks ek saathWindows, Linux
    Multiprogramming OSCPU maximum utilize hota haiServers, ATMs
    Time-Sharing OSMultiple users ek saath CPU share karte hainUnix, Cloud Computing
    Scroll to Top