Back to Blog

Role of an Operating System

September 3, 2024 (1y ago)

To know the role of an operating system (OS) we need to know the basic hardware of a computer system. A computer system consist of a Central Processing Unit (CPU), Random Access main memory (RAM), Secondary storage, typically in the form of a disk, and input/output (I/O) devices.

Simple Computer system architecture

Programmers and casual users need to think in terms of high-level operations executed on complex data structures. Casual users wish to be even more remote from computer hardware and only interact with the system using high-level commands or graphics interfaces.

The operating system (OS) is the software that runs on the bare hardware of a computer and provides essential support for users to develop and use applications in the most efficient and safe manner.

The OS as an extended machine

Operating systems (OSs) simplify complex hardware into a more user-friendly form.

They achieve this through two primary techniques:

Abstraction

The OS as a resource manager

Operating systems (OSs) play a crucial role in ensuring efficient computer performance. They manage various computational resources like the CPU, memory, and I/O devices to optimize the execution of multiple applications.

Balancing Resource Utilization

Applications often involve phases of input, computation, and output. To maximize efficiency, OSs strive to keep all resources busy at all times. This involves:

I/O 1 and I/O 2 are I/O devices.

Sequential Execution

Multiprogramming

Time-sharing

Hence, the operating system serves as both an extended machine and a resource manager, simplifying complex hardware interactions and optimizing resource utilization through techniques like multiprogramming and time-sharing. This ensures efficient and responsive execution of applications, enhancing the overall user experience.