Time Sharing System in Operating System

Introduction (परिचय)

Multiprogramming में CPU को busy रखा जाता है, लेकिन उसमें user interaction कम होता है।

इस limitation को दूर करने के लिए Time-Sharing System विकसित किया गया, जहाँ कई users एक ही system को एक साथ use कर सकते हैं।

Time-Sharing System क्या होता है

Time-Sharing System एक technique है जिसमें CPU का time छोटे-छोटे हिस्सों (time slices) में divide किया जाता है और हर user या process को बारी-बारी से CPU दिया जाता है।

Simple Definition

Time-Sharing System वह system है जिसमें multiple users एक ही computer को simultaneously use कर सकते हैं, क्योंकि CPU हर user को थोड़े-थोड़े समय के लिए allocate किया जाता है।

Working (कैसे काम करता है)

  • CPU time को छोटे हिस्सों (time slices) में divide किया जाता है
  • हर process को एक fixed time दिया जाता है
  • Time पूरा होते ही CPU next process को दे दिया जाता है
  • यह cycle लगातार चलती रहती है

इससे user को लगता है कि system सिर्फ उसी के लिए काम कर रहा है।

Example (समझने के लिए)

मान लीजिए 3 users एक ही system use कर रहे हैं:

  • User A
  • User B
  • User C

Process:

  • CPU A को कुछ milliseconds देता है
  • फिर B को
  • फिर C को
  • फिर वापस A को

यह process इतनी तेजी से होता है कि सभी users को real-time response मिलता है।

Key Features

  • Multiple users support
  • Fast response time
  • CPU time slicing
  • Interactive system

Time-Sharing vs Multiprogramming

FeatureMultiprogrammingTime-Sharing
FocusCPU utilizationUser interaction
UsersSingle user focusMultiple users
Response timeSlowFast
Interactionकमज्यादा

Advantages (फायदे)

  • Multiple users एक साथ system use कर सकते हैं
  • Quick response मिलता है
  • Resource sharing बेहतर होता है

Disadvantages (कमियाँ)

  • System overhead बढ़ जाता है
  • Security issues हो सकते हैं
  • High memory और CPU requirement

Real Life Example

  • UNIX multi-user system
  • Server systems जहाँ कई users एक साथ login करते हैं

Conclusion

Time-Sharing System एक advanced technique है जो multiple users को एक ही system पर efficiently काम करने की सुविधा देता है।

यह CPU time को smart तरीके से divide करके fast और interactive experience प्रदान करता है।

Leave a Comment

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

Scroll to Top