TheHingineer

  • Operating System


  • OS Part-1

  • OS Part-2

  • OS Part-3

  • OS Part-4

  • OS Part-5

  • MFT & MVT in Operating System

    MFT (Multiprogramming with Fixed number of Tasks) aur MVT (Multiprogramming with Variable number of Tasks) do important memory management techniques hain jo multiprogramming environment me memory allocation aur utilization ko optimize karne ke liye use hoti hain.


    🔹 What is MFT (Multiprogramming with Fixed number of Tasks)?

    MFT ek static memory allocation technique hai jisme main memory ko fixed-size partitions me divide kiya jata hai.

    👉 Key Features:

    ✔ Memory fixed-size partitions me divide hoti hai.
    ✔ Har process ko ek fixed partition assign hota hai.
    ✔ Agar kisi process ko kam memory chahiye, toh bhi usko pura partition milega (internal fragmentation issue).
    Simple aur easy to implement hai, lekin memory wastage ho sakti hai.


    💡 Example of MFT:

    Agar ek OS ke paas 512MB RAM hai aur usko 4 fixed partitions (128MB each) me divide kiya gaya hai, toh:

    PartitionSize (MB)Process
    1128Process A (80MB)
    2128Process B (90MB)
    3128Process C (110MB)
    4128Process D (50MB)

    👉 Process D sirf 50MB use kar raha hai, lekin usko poore 128MB ka partition mila haiInternal Fragmentation problem.


    🔹 What is MVT (Multiprogramming with Variable number of Tasks)?

    MVT ek dynamic memory allocation technique hai jisme memory ko variable-size partitions me allocate kiya jata hai based on process requirements.

    👉 Key Features:

    Memory ko dynamically allocate kiya jata hai jise external fragmentation reduce hoti hai.
    ✔ Process jitni memory demand karta hai, utni hi memory allocate hoti hai.
    No fixed partitions, better memory utilization.
    ✔ Complex implementation compared to MFT.


    💡 Example of MVT:

    Agar ek OS ke paas 512MB RAM hai aur processes ki memory demand different sizes ki hai:

    ProcessRequired Memory (MB)
    A100
    B120
    C90
    D50

    👉 Memory allocation dynamically hoti hai, toh yaha koi fixed-size partitions nahi hainBetter memory utilization.


    🔹 Differences Between MFT & MVT

    FeatureMFT (Multiprogramming with Fixed Tasks)MVT (Multiprogramming with Variable Tasks)
    Memory PartitioningFixed-size partitionsVariable-size partitions
    Memory AllocationProcesses ko fixed partitions assign hoti hainProcesses jitni memory demand karein, utni hi allocate hoti hai
    FragmentationInternal fragmentation hoti haiExternal fragmentation ho sakti hai
    Memory UtilizationLow (kyunki unused space waste hoti hai)High (kyunki memory dynamically allocate hoti hai)
    FlexibilityLess flexible (Fixed partitions)More flexible (No fixed partitions)

    🔹 Fragmentation Issues in MFT & MVT

    1️⃣ MFT me Internal Fragmentation:
    Agar ek process chhoti size ki hai, toh bhi usko poora partition allocate hoga, jo memory waste karega.

    Solution: Use MVT or Paging

    2️⃣ MVT me External Fragmentation:
    Jab process terminate hota hai, toh chhoti-chhoti empty memory spaces bach jati hain jo naye processes ko allocate nahi ho sakti.

    Solution: Use Compaction or Paging


    🔹 Conclusion

    MFT easy to implement hai but memory wastage zyada hoti hai.
    MVT better memory utilization karta hai but external fragmentation ka issue hota hai.
    Modern OS mostly Paging aur Segmentation jese techniques use karte hain jo MVT ke problems solve karti hain.

    Scroll to Top