Fundamentals of Operating System: Mrs. Prachii Shrivastava
Fundamentals of Operating System: Mrs. Prachii Shrivastava
Operating System
Mrs. Prachii Shrivastava
Introduction to Operating Systems
► An operating system (OS) is a software that manages a computer's hardware and software, and allows users to
interact with their computer.
► An operating system acts as an intermediary between the user of a computer and computer hardware. In short
its an interface between computer hardware and user.
► The purpose of an operating system is to provide an environment in which a user can execute programs
conveniently and efficiently.
► An operating system is software that manages computer hardware and softwares. The hardware must provide
appropriate mechanisms to ensure the correct operation of the computer system and to prevent user programs
from interfering with the proper operation of the system.
► There are multiple types of operating systems each having its own unique features:
Windows, MacOS, Linux distributions, iOS, Android, and many more.
OS is a interface between user and hardware or we can say a computer program that operates other computer
programs.
► An Operating System acts as a communication interface between the user and computer
hardware. Its purpose is to provide a platform on which a user can execute programs
conveniently and efficiently. An operating system is software that manages the allocation of
Computer Hardware. The coordination of the hardware must be appropriate to ensure the
computer system’s correct operation and to prevent user programs from interfering with
it. The main goal of the Operating System is to make the computer environment more
convenient to use and the Secondary goal is to use the resources most efficiently. In this
article we will see functions of operating system in detail.
Simple structure
► The OS has a simple structure with all the components embedded in the kernel
High performance
► The OS is fast and efficient because there is no overhead of switching between components
Direct access to hardware
► The kernel runs in a privileged mode that allows it to directly access the hardware
Tightly integrated components
► All components are interdependent and share the same memory space
► Advantages Low overhead and Good for debugging.
► Disadvantages high complexity, low portability, high risk of errors or crashes, and difficult to maintain.
Examples : Linux, Windows, and MacOS.
Kernal:
A kernel is a computer program that acts as the core of an operating system (OS):
► Function
The kernel is responsible for managing many of the OS's fundamental tasks, including memory,
disk storage, and networking. It also controls communication between the OS and the
hardware, such as the CPU and disc memory.
► Startup
The kernel is the first program to load when a computer starts up, and it remains in memory
until the OS is shut down.
► Interface
The kernel acts as an intermediary between the OS and the hardware, presenting an abstracted
interface to the rest of the OS. This allows the rest of the OS to read and write files or
communicate on the network without needing to know the underlying hardware details.
► Location
The kernel operates in its own area called the kernel space.
► Damage
If the kernel is damaged or can't load successfully, the computer won't be able to start.
► 2. Layered System:
Layered Structure is a type of system structure in which the different services of
the operating system are split into various layers, where each layer has a specific
well-defined task to perform. It was created to improve the pre-existing structures
like the Monolithic structure ( UNIX ) and the Simple structure ( MS-DOS ). Example
– The Windows NT operating system uses this layered approach as a part of it. Design
Analysis : The whole Operating System is separated into several layers ( from 0 to n )
as the diagram shows. Each of the layers must have its own specific function to
perform. There are some rules in the implementation of the layers as follows.
► The outermost layer must be the User Interface layer.
► The innermost layer must be the Hardware layer.
► A particular layer can access all the layers present below it but it cannot access
the layers present above it. That is layer n-1 can access all the layers from n-2 to
0 but it cannot access the nth layer.
► 3. Client Server Model:
The Client-server model is a distributed application structure that partitions
tasks or workloads between the providers of a resource or service, called servers,
and service requesters called clients. In the client-server architecture, when the
client computer sends a request for data to the server through the internet, the
server accepts the requested process and delivers the data packets requested
back to the client. Clients do not share any of their resources. Examples of the
Client-Server Model are Email, World Wide Web, etc.
► Client: When we say the word Client, it means to talk of a person or an
organization using a particular service. Similarly in the digital world,
a Client is a computer (Host) i.e. capable of receiving information or using a
particular service from the service providers (Servers).
► Servers: Similarly, when we talk about the word Servers, It means a person or
medium that serves something. Similarly in this digital world, a Server is a
remote computer that provides information (data) or access to particular
services.
Kernel Space vs User Space
The OS coordinates the use of the hardware and application programs for various users. It
provides a platform for other application programs to work. The operating system is a set of
special programs that run on a computer system that allows it to work properly. It controls
input-output devices, execution of programs, managing files, etc.