Need of an Operating System

એક operating system કાચા, અંધાધૂંધ computer hardware ને એક વ્યવસ્થિત, સુરક્ષિત, અને વાપરવામાં સહેલા resource manager માં બદલી નાખે છે.

8 min read · 10 cards · 3 checks

Read in: English · हिन्दी · ગુજરાતી


Theory

Bare Machine નું દુઃસ્વપ્ન

કલ્પના કરો કે તમે તમારા college computer lab માં બેઠા છો, એવા એક computer ને તાકતાં જેમાં બિલકુલ કોઈ software installed નથી: બસ silicon chips, circuits, અને wires. તમે 'Hello World' print કરવા એક સરળ program લખવા માંગો છો. એક operating system વગર, તમે બસ code type કરીને run કરી શકતા નથી. તમારે keyboard circuits control કરવા binary instructions જાતે લખવી પડશે, એમને toggle switches થી ખાસ RAM addresses માં load કરવી પડશે, અને printer pin માટે બિલકુલ સાચી motor movements code કરવી પડશે. જો એક બીજો student એ જ સમયે print કરવા માંગે, તમારો data અથડાય અને ભ્રષ્ટ થઈ જાય છે.

Theory

એક અપ્રબંધિત Lab ની અંધાધૂંધી

LabOne, આપણા વહેંચેલા college server, ને 30 students પર માત્ર એક premium textbook અને એક printer વાળી એક વ્યસ્ત library ની જેમ વિચારો. જો કોઈ librarian (OS) ન હોય, students પુસ્તક માટે લડશે, પોતાનું કામ બચાવવા pages ફાડશે, અને printer વાપરવા એકબીજા પર બૂમો પાડશે. librarian તમારા માટે પુસ્તક વાંચતો નથી, પણ એ queue manage કરે છે, study desks allot કરે છે, અને files સુરક્ષિત રાખે છે. OS તમારા computer hardware માટે એ જરૂરી manager છે.

Theory

આપણને એક OS ની બિલકુલ જરૂર કેમ છે

એક computer ને બે પાયાના કારણોસર એક Operating System જોઈએ: એ એક Extended Machine (કે abstraction layer) અને એક Resource Manager તરીકે કામ કરે છે.

એક extended machine તરીકે, એ hardware circuits ના કદરૂપા, જટિલ વિગતો છુપાવે છે અને એક સાફ, user friendly interface આપે છે. એક resource manager તરીકે, એ નિયંત્રિત કરે છે કે CPU, memory, files, અને input output devices ને અનેક users અને programs વચ્ચે અથડામણ વગર કેવી રીતે વહેંચવા.

At a glance

એક operating system કેવી રીતે થકવનારા hardware manipulation ને સરળ, સુરક્ષિત tasks માં બદલી નાખે છે.

Operationએક Bare Machine પર (કોઈ OS નહીં)એક Operating System સાથે
એક File Save કરવીraw bits overwrite કરવા disk tracks અને sectors જાતે calculate કરવા.બસ save click કરો: OS directory structure આપોઆપ સંભાળે છે.
2 Apps ચલાવવીઅશક્ય: એક program CPU નું પૂરું નિયંત્રણ લઈ લે છે.OS બંનેને microsecond time slots થી સરળતાથી schedule કરે છે.
એક Sheet Print કરવીખાસ printer port માટે low level hardware assembly code લખવો.print queue માં data મોકલો: OS driver communication સંભાળે છે.

Think first

Exam Question વ્યૂહરચના

એક classic 5 mark university પ્રશ્ન પૂછે છે: 'એક multi-user system ના સંદર્ભમાં એક operating system ની બેવડી ભૂમિકા સમજાવો.' સંરચિત જવાબ જોવા tap કરતાં પહેલાં વિચારો કે તમે એને LabOne માટે કેવી રીતે તોડશો.

Show the answer

Step 1: પહેલી ભૂમિકા સંબોધો: Resource Manager. સમજાવો કે LabOne પર 30 students સાથે, OS RAM space allocate કરે છે, printing requests queue કરે છે, અને અથડામણ અટકાવવા CPU time નિષ્પક્ષ રીતે વહેંચે છે.

Step 2: બીજી ભૂમિકા સંબોધો: Extended Machine. સમજાવો કે students folders બનાવવા કે programs ચલાવવા high level commands વાપરે છે એ જાણ્યા વગર કે disk platters કેવી રીતે ફરે છે કે registers કેવી રીતે ચાલે છે.

Step 3: મૂળ ફાયદા સાથે નિષ્કર્ષ કાઢો: સુવિધા અને efficiency. એ computer ને students માટે સુવિધાજનક બનાવે છે અને પાકું કરે છે કે મોંઘું hardware નકામું ન પડ્યું રહે.

Quiz

જો બે students LabOne પર બિલકુલ એ જ millisecond પર એ જ hard disk માં files લખવાનો પ્રયાસ કરે, OS ની કઈ ખાસ ભૂમિકા એમને એકબીજાનો data overwrite કરવાથી અટકાવે છે?

  1. Extended Machine
  2. Resource Manager
  3. Command Line Interface
  4. Boot Loader
Show the answer

Resource Manager

Resource Manager ભૂમિકા hardware components (જેમ disk blocks) ને અલગ users ને વ્યવસ્થિત રીતે allocate કરીને અથડામણ સંભાળે છે, data collision અટકાવતાં. Extended Machine ભૂમિકા hardware જટિલતા છુપાવવા પર કેન્દ્રિત છે, સક્રિય resource અથડામણ manage કરવા પર નહીં.

Watch out

પહેલા Semester નો ફાંદો

BCA103 માં, તમે શીખ્યા કે એક OS system software છે. આ advanced course માં, બસ 'એક OS એ software છે જે user અને hardware વચ્ચે બેસે છે' લખવું તમારા marks લઈ લેશે. Examiners તમારી પાસેથી hardware abstraction, resource allocation, અને concurrency control જેવા શબ્દો વાપરવાની અપેક્ષા રાખે છે. એને એક school textbook ની જેમ વ્યાખ્યાયિત ન કરો: efficiency અને safety ની engineering જરૂરિયાત પર ભાર મૂકો.

Think first

Hardware Abstraction ની સૂઝ

ધારો કે તમારું college LabOne પર જૂની hard disk ને એક બિલકુલ નવી, અતિ ઝડપી solid state drive થી બદલી નાખે છે. શું તમારે આ નવી storage technology સાથે કામ કરવા તમારી student applications ફરી લખવી પડશે? tap કરતાં પહેલાં તમારો જવાબ મનમાં બનાવો.

Show the answer

ના, તમારે કંઈ પણ ફરી લખવાની જરૂર નથી. આ OS દ્વારા અપાયેલા hardware abstraction ના કારણે છે. OS તમારી applications ને એક સમાન API (જેમ open, read, write commands) ઉજાગર કરે છે. એ પોતાના device drivers દ્વારા ભીતરી બદલાવ સંભાળે છે, તમારા code ને અંતર્ગત hardware બદલાવોથી બચાવતાં.

Formula

મૂળ Exam Formula

જ્યારે પણ તમને એક OS ના 'need' કે 'functions' વિશે પૂછાય, તમારા જવાબને 4M framework થી સંરચિત કરો: Memory management (RAM allocate કરવી), Machine hiding (abstraction), Multiprogramming control (CPU scheduling), અને Media access (file અને device control). આ ચાર સ્તંભોને ઉજાગર કરવું મહત્તમ marks ની guarantee આપે છે.

Summary

Key takeaways

  • એક OS વગર, એક bare machine ને દરેક એક hardware operation માટે મેન્યુઅલ, low level binary coding જોઈએ.
  • OS એક extended machine તરીકે કામ કરે છે, જટિલ hardware નિયંત્રણોને સરળ system calls માં abstract કરતાં.
  • એ એક resource manager તરીકે કામ કરે છે જેથી CPU time, memory space, અને peripheral devices ને સ્પર્ધક users વચ્ચે સુરક્ષિત રીતે allocate કરે.
  • આપણો LabOne server student data અલગ રાખવા અને resource collisions અટકાવવા OS પર આધાર રાખે છે.
  • Memory hook: કોઈ OS નહીં એટલે મેન્યુઅલ અંધાધૂંધી: OS વ્યવસ્થા, abstraction, અને efficiency લાવે છે!

Study this properly

This page is the lesson to read. In Gri-Learn the same topic is a graded deck: the self-checks are scored and your weak topics are tracked. Free to start.

Start this topic

Already have an account? Sign in

More from Operating System Concepts

Gri-Learn · syllabus-mapped B.C.A. lessons in English, Hindi and Gujarati

Need of an Operating System · Operating System · Gri-Learn