Q1. Explain the working of operating system as a resource manager.
Ans. Modern computers consist of processors, memories, timers, disks, mice, network interfaces, printers, and a wide variety of other devices. In the alternative view, the job of the operating system is to provide for an orderly and controlled allocation of the processors, memories, and input/output devices among the various programs competing for them.
When a computer (or network) has multiple users, the need for managing and protecting the memory, input/output devices, and other resources is even greater, since the users might otherwise interface with one another. In addition, users often need to share not only hardware, but information (files, databases, etc.) as well. In short, this view of the operating system holds that its primary task is to keep track of which programs are using which resources, to grant resource requests, to account for usage, and to mediate conflicting requests from different programs and users.
Resource management includes:
(i) Tracing the statue of each resource
(ii) Job selection for processing
(iii) Deciding job’s time share
(iv) Resource allocation to the selected job
(v) Releasing the resource, if time share is elapsed or the job is over.