Module 1
Module 1
Module 1
Introduction to Operating
System
Introduction
Computer system can be divided into three components
Hardware
Software
Users
Basic Concepts
Hardware – provides basic computing resources such as
CPU, memory, I/O device
1) OS is a resource allocator
Manages all resources
Decides between conflicting requests for efficient and
fair resource use
What is a resource?
Anything you can run out of…
Computing power, memory, storage space etc
2) OS is a control program
Controls execution of programs to prevent errors and
improper use of the computer
Computer System Organization
Computer-system operation
One or more CPUs, device controllers connect through
common bus providing access to shared memory
Single user cannot keep CPU and I/O devices busy at all times.
Advantages include:
Increased throughput - because of faster execution.
Fault tolerant - Increased reliability or graceful degradation.
System call offers the services of the operating system to the user
programs via API (Application Programming Interface). System
calls are the only entry points for the kernel system.
System Calls
As can be seen from the figure representing the execution of the
system call , the processes execute normally in the user mode until
a system call interrupts it.
1) Monolithic Structure
Each layer is built on the top of the lower layer thus forming a
hierarchical structure. 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 only.
New structure was designed for the operating system by removing all
non-essential components from the kernel and implementing them as
system and user programs. This result in a smaller kernel called the
micro-kernel.
The kernel has only set of core components and other services are
added as dynamically loadable modules to the kernel either during
run time or boot time.
Linux and Solaris kernels is monolithic, plus modular for dynamic loading
of functionality. Whereas Windows kernel is mostly monolithic, plus
microkernel for different subsystem personalities.