Operating System Unit 1
Operating System Unit 1
Operating System
An Operating System is a System software that manages all the resources of the computing device.
Acts as an interface between the software and different parts of the computer or the computer hardware.
Manages the overall resources and operations of the computer.
Controls and monitors the execution of all other programs that reside in the computer, which also includes
application programs and other system software of the computer.
Layered Structure
An OS can be broken into pieces and retain much more control over the system. In this structure, the OS is broken
into a number of layers (levels). The bottom layer (layer 0) is the hardware, and the topmost layer (layer N) is the user
interface. These layers are so designed that each layer uses the functions of the lower-level layers. This simplifies the
debugging process, if lower-level layers are debugged and an error occurs during debugging, then the error must be
on that layer only, as the lower-level layers have already been debugged. The main disadvantage of this structure is
that at each layer, the data needs to be modified and passed on which adds overhead to the system. Moreover,
careful planning of the layers is necessary, as a layer can use only lower-level layers. UNIX is an example of this
structure.
Reentrant Kernel: In kernel mode, a reentrant kernel allows processes (or, more precisely, their corresponding kernel
threads) to give up the CPU. They have no effect on other processes entering kernel mode. Multiple processor
systems may be scheduled together in the case of single-processor systems.