Skip to main content

Operating System

Long Answer questions

Question: What is OS? Explain the main functions of OS. [10 marks]

Ans: An operating system, OS, is the master program that manages all the hardware and software resources of the computer. It makes the hardware operable and provides an interface to the user to use the computer. Windows, Mac OS, IOS etc are the examples of OS.
Following are the main functions of OS:

  1.  Process Management
  2.  Memory management
  3.  I/O management
  4.  Device management
  5.  File management
  6.  Virtual memory management
  7.  Interrupt handling
  8.  Dead lock prevention
  9.  Providing Security
  10.  Providing user interface
  11.  Command Interpreter
  12.  Time sharing
1) Process management
Process management refers to the managing of CPU and its processing task. OS is responsible for managing the processing task so that the entire programs used by the user are efficiently and effectively processed by the CPU. OS uses scheduling and time sharing to manage process.

2) Memory Management
OS is responsible for controlling and managing all the operations of memory. OS allocates the required memory space and stores data on that memory space.

3) I/O Management
I/O refers to input and output. All the inputs and outputs are controlled and managed by OS. It instructs input unit to accept data, process it and provide the result to output unit after processing.

4) Device Management
OS is responsible for managing and controlling all the devices of the computer system. These devices include I/O, CPU, memory and other components. OS allocates the CPU time for processing and using these devices.

5) File Management
A file is a collection of data. OS is responsible for all the file related operations including creating a new file, storing data in a file, reading a file, copy/cut, paste operation the file, renaming of a file, deleting a file etc.

6) Virtual Memory Management
In a multi programming environment when multiple programs are used at a same time, the space of primary memory (RAM) may not be enough for storing all the programs. In this case, OS uses free space of secondary memory like Hard disk) to store the contents of RAM. This free space of secondary memory used by OS is called virtual memory. OS is responsible for creating and managing the virtual memory. Modern OS can increase or decrease the size of virtual memory as per need.

7) Interrupt Handling
An interrupt is a signal generated by hardware or software component when they require attention of the CPU. Interrupt are always given high priority by OS. When an interrupt occurs, the processing task of CPU is stopped, the interrupt is executed and the previous task of CPU is continued.

8) Dead lock Prevention
A dead lock is a situation in which neither the processing task of CPU is completed nor the CPU is released to execute other task. In this case CPU remains in the idle state. OS is responsible for preventing from the dead lock. However if the dead lock occurs, OS detects dead lock and recover from the dead lock.

9) Providing Security
OS provides high security on the resources of the computer so that it can be used only by the permitted users. OS provides two types of security:

  •  Authentication
  •  Access Control
10) Providing User Interface
User interface is the layer through which the user uses the computer. OS provides to types of user interfaces:

  •  GUI (Graphical User Interface)
  •  CUI ( Command/Character User Interface)
11) Command Interpreter
OS is responsible for reading the commands from the user, identify the task to be done and perform that task. The command can be either text or graphical command.

12) Time Sharing
Time sharing is the process of dividing the CPU time in small units and executing multiple task one after another. It is used in multi tasking, multi programming or multi user system. It is required when the number of processing task is more than the number of processor.

Comments

Popular posts from this blog

एक चिहान-पात्र परिचय

गोदत्तप्रसाद रञ्जना देवीजस्ती नारीको पति दुई छोराछोरीका बाबु एवम् समाजमा चिकित्सकका रुपमा प्रतिष्ठित व्यक्ति भएर पनि परस्त्रीको रुप र यौवनमाथि गिद्दे दृष्टि लगाउने गोदत्तप्रसाद यस उपन्यासको खलनायक हो । वासनात्मक प्रेमको पाशो थापेर सिधासादा नानीथकँुको कुमारीत्व लुट्न खोज्ने गोदत्तप्रसाद ‘मुखमा राम–राम बगलीमा छुरा’ प्रवृत्तिको धनको लोभी, कामुक, स्वार्थी, भ्रष्ट, अनैतिक, व्यभिचारी र पाशविक चरित्र हो । चिकित्सकजस्तो प्रतिष्ठित व्यक्ति भएर पनि सेवालाई भन्दा पैसालाई महत्व दिने गोदत्त प्रसाद द्रव्य पिशाच चरित्र हो । बाहिर दयालु देखिएर भित्र कपट भएका गोदत्त प्रसाद हाँसी–हाँसी आफ्नो कूटिल चरित्र ढाक्न खोज्ने डाक्टर, षड्यन्त्रकारी, निर्दयी, दुष्ट र कामुक चरित्र हो । डाक्टर भएर पनि छोरीको उमेर सरहकी नानीथकुँको रुप र यौवनप्रति गिद्दे दृष्टि लगाउँदै चरित्र लुट्न दानवीर बनेको षड्यन्त्र गर्ने ऊ जाली, कपटी र पतित चरित्र हो ।

एक चिहान-उद्देश्य(Theme)

उपन्यासको उद्देश्य वा मूल भाव * एक चिहान निम्न वर्गीय किसान मजदुरजस्ता श्रमजीवी नेपालीहरुको जीवनमा आधारित यथार्थवादी र प्रगतिवादी उपन्यास हो । यसमा गरिब नेपालीहरुको विवशता र सङ्घर्षपूर्ण जीवन यथार्थलाई मार्मिक रुपमा प्रस्तुत गरिएको छ । काठमाडौँ सहर र गाउँभित्रको गरिबी, शोषण र बिसङ्गति नै उपन्यासको मूल विषयवस्तु हो । * यस उपन्यासको मूल उद्देश्य रुढिवादी परम्परा, कुसंस्कार, आर्थिक, सामाजिक असमानता र शोषण विरुद्ध सङ्घर्ष गरेर समाजको परिवर्तन वा सुधार गर्नु हो । गरिबीसँग जुध्न र शोषण विरुद्ध विद्रोह गर्न नसके निम्न वर्गको जीवन अभैm जटिल बन्दै जान्छ भन्ने सङ्केत उपन्यासले गरेको छ । अष्ट नारान, शिव नारान र रञ्जना देवीजस्ता पात्रका माध्यमबाट समाज सुधार सम्बन्धि प्रगतिवादी विचार अगाडी सारिएको छ । * यसमा धार्मिक, सांस्कृतिक, अन्धविश्वास, तडकभडक र अरुसँग ऋण लिने मानसिकताको विरोध गर्दै परम्परागत धार्मिक, सांस्कृतिक प्रचलन र दाशताको निन्दा गरिएको छ । काजक्रिया, चाडपर्व, विवाहव्रतबन्धजस्ता काममा दानदक्षिणा, भोजभतेर, दाइजो–उपहारका नाममा फजुल खर्च गर्ने परिपाटीको विरोध गरिएको छ । * गरिबहरु

एक चिहान- मुख्य घटनाक्रम ३

परिच्छेद ३ ·     डाक्टर बोलाउन गएको शिव नारान नफर्किए पछि र अष्ट नारानको व्यथा बढ्दै आएकोले हडबडाएकी लतमायाले पुन नारानलाई पनि डाक्टरकहाँ पठाउन चाहनु , ·   सिकर्मी पुन नारान पेस्की लगेदेखि बेपत्ता भएकोले साहुले उनलाई समात्न घर आउँदा त्यस्तो बेइमानी गर्नु राम्रो होइन भन्नु , ·   आफूले बेइमानी नगरेको तर बाबु बिरामी भएकाले काम गर्न नभ्याएको र ल्याएको पेस्कीले ठूलो काम दिएको हुनाले पुन नारनले ठूलो गुन सम्झेको कुरा विनम्र भएर भन्नु , ·       पुन नारानको अति नम्र कुरा सुनेर प्रतिवाद गर्न नसकेपछि दुवै जना घरबाट निस्कनु , ·       पुन नारान पुग्दा पनि डाक्टर किताब नै हेरि रहेको भेटिनु , ·       पुन नारानबाट बाबुको अवस्था झन बिग्रिएको कुरा सुनेर शिव नारानले डाक्टरलाई फेरी अनुरोध गर्दा डाक्टरले आफूलाई फिस तिर्नु पर्ने कुरा बताउनु , ·        घर पुग्नासाथ फिस तिर्ने कुरा भए पछि डाक्टर बिरामी हेर्न जान राजी हुनु ।