Chapter-I Overview of Operating System
Chapter-I Overview of Operating System
OSY-22516
UNIT-I
OVERVIEW OF OPERATING SYSTEM
29/01/2025
TH (ESE) TH(PA) PR(ESE) PR(PA) TOTAL
70 30 25@ 25 150
29/01/2025
POINTS TO BE COVERED
• Introduction to Operating System
• Components of Operating System
• Operations of Operating System
• Views of Operating System
• Loading of OS {extra point}
29/01/2025
INTRODUCTION
• Definition of Operating Systems
• A program that acts as an intermediate between a user of a
computer and the computer hardware.
29/01/2025
INTRODUCTION
OPERATING SYSTEM
WINDOWS OS UNIX OS
MACINTOSH OS LINUX OS
HACKINTOSH OS UBANTU OS
29/01/2025
COMPONENTS OF OS
• A computer system can be divided roughly into four
components.
• 1. Hardware
• 2. OS
• 3. Application programs
• 4. Users
29/01/2025
COMPONENTS OF OS
29/01/2025
VIEWS OF OS
• The operating system can be observed from the point of view
of the user or the system.
29/01/2025
VIEWS OF OS
• A) USER VIEW
• User view of the computer varies according to the interface
being used.
• Operating makes this view more easy by providing ease of use
(Easy handling)
• The different types of user view experiences can be explained
as follows:
a) User is using personal computer.
b) User is using a system connected to a mainframe.
c) User is using a workstation connected to other workstations in a
network.
d) User is using a mobile, PDA or a palmtop.
29/01/2025
VIEWS OF OS
• B) SYSTEM VIEW
• From the computer’s point of view, the OS is involved with the
hardware.
29/01/2025
LOADING OF OS
Computer-System Architecture
29/01/2025
LOADING OF OS
• Computer-System Operation
– Initial program, or bootstrap program is run
– Stored in ROM or EPROM within the computer hardware
– Initializes all aspects of the computer (registers, controllers, memory
etc.)
– Loads the operating system and executes it
• Locates and loads the OS kernel
– Once loaded, the OS waits for an event to occur
• Events usually signaled by an interrupt from either the hardware
or software
– Hardware sends a signal to the CPU via the system bus
– Software triggers an interrupt by executing a system call
29/01/2025
LOADING OF OS
BOOTSTRAPPING
29/01/2025
POINTS TO BE COVERED
• Different Types of • Command Line Based
Operating System OS
– Batch OS – DOS
– Multiprogrammed OS
– UNIX
– Time Shared OS
– Multiprocessor Systems
– Distributed Systems • GUI Based OS
– Real Time OS (RTOS) – Windows
– Linux
• Mobile OS
– Android
– IOS
29/01/2025
29/01/2025
29/01/2025
TYPES OF OS
• BATCH OPERATING SYSTEM
• The users of a batch operating system do not interact with the
computer directly.
• Each user prepares his job on an off-line device like punch
cards and submits it to the computer operator.
• To speed up processing, jobs with similar needs are batched
together and run as a group.
• The programmers leave their programs with the operator and
the operator then sorts the programs with similar
requirements into batches.
29/01/2025
29/01/2025
TYPES OF OS
• The problems with Batch Systems are as follows:-
29/01/2025
TYPES OF OS
• MULTIPROGRAMMED OPERATING SYSTEMS
• Sharing the processor, when two or more programs reside in
memory at the same time, is referred as multiprogramming.
29/01/2025
TYPES OF OS
• LAYOUT OF MULTIPROGRAMMED OS
29/01/2025
TYPES OF OS
• An OS does the following activities related to
multiprogramming.
• The operating system keeps several jobs in memory at a time.
• This set of jobs is a subset of the jobs kept in the job pool.
• The operating system picks and begins to execute one of the
jobs in the memory.
• Multiprogramming operating systems monitor the state of all
active programs and system resources using memory
management programs to ensures that the CPU is never idle,
unless there are no jobs to process.
29/01/2025
TYPES OF OS
• TIME SHARED OS
• Processor's time which is shared among multiple users
simultaneously is termed as time-sharing.
• Time-sharing is a technique which enables many people,
located at various terminals, to use a particular computer
system at the same time.
• The main difference between Multiprogrammed Batch
Systems and Time-Sharing Systems is that in case of
Multiprogrammed batch systems, the objective is to maximize
processor use, whereas in Time-Sharing Systems, the
objective is to minimize response time.
29/01/2025
TYPES OF OS
• Advantages
– Provides the advantage of quick response.
– Avoids duplication of software.
– Reduces CPU idle time.
• Disadvantages
– Problem of reliability.
– Question of security and integrity of user programs and data.
– Problem of data communication.
29/01/2025
TYPES OF OS
• MULTIPROCESSOR SYSTEMS
• Multiprocessing system is based on the symmetric
multiprocessing model, in which each processor runs an
identical copy of operating system and these copies
communicate with each other.
• These types of systems are used when very high speed is
required to process a large volume of data.
• These systems are generally used in environment like satellite
control, weather forecasting etc.
• In this system processor is assigned a specific task. A master
processor controls the system. This scheme defines a master-
slave relationship.
29/01/2025
29/01/2025
TYPES OF OS
• DISTRIBUTED OPERATING SYSTEMS
• Distributed systems use multiple central processors to serve
multiple real-time applications and multiple users.
• Data processing jobs are distributed among the processors
accordingly.
• The processors communicate with one another through
various communication lines (such as high-speed buses or
telephone lines).
• Processors in a distributed system may vary in size and
function. These processors are referred as sites, nodes,
computers, and so on.
29/01/2025
29/01/2025
TYPES OF OS
• The advantages of distributed systems are :-
– With resource sharing facility, a user at one site may be
able to use the resources available at another.
– Speedup the exchange of data with one another via
electronic mail.
– If one site fails in a distributed system, the remaining sites
can potentially continue operating.
– Better service to the customers.
– Reduction of the load on the host computer.
– Reduction of delays in data processing.
29/01/2025
TYPES OF OS
• REAL TIME OS (RTOS)
• A real-time system is defined as a data processing system in
which the time interval required to process and respond to
inputs is so small that it controls the environment.
29/01/2025
TYPES OF OS
• There are two types of real-time operating systems.
29/01/2025
TYPES OF OS
• Soft real-time systems
• Soft real-time systems are less restrictive.
• ANDROID OS
• The Android OS is an open source operating system primarily
used in mobile devices.
29/01/2025
29/01/2025
29/01/2025
29/01/2025
29/01/2025
29/01/2025
TYPES OF OS
• ARCHITECTURE OF ANDROID
• LINUX KERNEL
• At the bottom of the layers is Linux - Linux 3.6 with
approximately 115 patches.
• Also, the kernel handles all the things such as networking and
a vast array of device drivers.
29/01/2025
TYPES OF OS
• LIBRARIES
• On top of Linux kernel there is a set of libraries including
– Open-source Web browser engine WebKit
29/01/2025
TYPES OF OS
• ANDROID LIBRARIES
• This category encompasses those Java-based libraries that are
specific to Android development.
• Android libraries available to the Android developer is as follows −
• android.app • android.widget
• android.content • android.webkit
• android.database
• android.opengl
• android.os
• android.text
• android.view
29/01/2025
TYPES OF OS
• ANDROID RUNTIME
• This section provides a key component called Dalvik Virtual
Machine which is a kind of Java Virtual Machine specially
designed and optimized for Android.
29/01/2025
TYPES OF OS
• APPLICATION FRAMEWORK
• The Application Framework layer provides many higher-level
services to applications in the form of Java classes. The Android
framework includes the following key services −
• Activity Manager − Controls all aspects of the application lifecycle
and activity stack.
• Content Providers − Allows applications to publish and share data
with other applications.
• Resource Manager − Provides access to non-code embedded
resources such as strings, color settings and user interface layouts.
• Notifications Manager − Allows applications to display alerts and
notifications to the user.
• View System − An extensible set of views used to create application
user interfaces.
29/01/2025
TYPES OF OS
• APPLICATION FRAMEWORK
• You will find all the Android application at the top layer.
29/01/2025
TYPES OF OS
• iOS
• The iOS is the operating system created by Apple Inc. for
mobile devices.
• The iOS is used in many of the mobile devices for apple such
as iPhone, iPod, iPad etc.
• The iOS is used a lot and only lags behind Android in terms of
popularity.
29/01/2025
29/01/2025
29/01/2025
29/01/2025
TYPES OF OS
• ARCHITECTURE OF iOS
• The iOS architecture is layered.
• It contains an intermediate layer between the applications
and the hardware so they do not communicate directly.
• The lower layers in iOS provide the basic services and the
higher layers provide the user interface and sophisticated
graphics.
29/01/2025
29/01/2025
TYPES OF OS
• CORE OS
• All the iOS technologies are build on the low level features
provided by the Core OS layer.
29/01/2025
TYPES OF OS
• CORE SERVICES • Address Book Framework
• Some of these services are given as – The address book framework provides
follows: access to the contacts database of the
user.
• Cloudkit Framework
– The data can be moved between the• Core Motion Framework
app the iCloud using the Cloudkit – All the motion based data on the device
Framework. is accessed using core motion
framework.
• Core Foundation Framework
– This provides the data management• Healthkit Framework
and service features for the iOS apps. – The health related information of the
user can be handled by this new
framework.
• Core Data Framework
– The data model of the model view
controller app is handled using the Core• Core Location Framework
Data Framework. – This framework provides the location
and heading information to the various
29/01/2025 apps.
TYPES OF OS
• MEDIA • Core Animation
• The media layer enables all the – The Core Animation technology
graphics, audio and video optimizes the animation
experience of the apps.
technology of the system.
• Media Player Framework
• UIKit Graphics – This framework provides support
– This provides support for for playing playlists and enables
designing images and animating the user to use their iTunes
the view content. library.
• GameKit Framework
– This provides support for users to share their game related data online
using Game center.
• MapKit Framework
– This provides a scrollable map which can be included into the app user
interface.
29/01/2025
COMMAND BASED OS
• DISK OPERATING SYSTEM [DOS]
• It is MS DOS Microsoft Disk Operating System.
29/01/2025
COMMAND BASED OS
• It has following system files.
• MSDOS.SYS
– Provides interface between the hardware devices and software of the
system.
– Hence is KERNEL resides in MSDOS.SYS.
• IO.SYS
– It contains device I/O routines for management of I/O devices.
• COMMAND.COM
– It is a command interpreter which displays the system prompt.
29/01/2025
COMMAND BASED OS
• It has following user configuration files.
• CONFIG.SYS
– It provides reference to device drivers.
– Device drivers are loaded when OS takes control of the computer.
• AUTOEXEC.BAT
– AUTOEXEC means “Automatic Execution” which automatically
executes commands on system startup
– It is a plain-text batch file in the root directory of the boot device.
29/01/2025
COMMAND BASED OS
• DIRECTORY STRUCTURE IN DOS
• DOS permits grouping related files together in directories.
29/01/2025
BYTE
SIZE CONTENT
8 Primary Name of the file
3 Extension Name
1 File attribute
10 Reserved
2 Time of creation or last updating
2 Date of creation or last updating
2 Starting cluster
4 File size
29/01/2025
29/01/2025
COMMAND BASED OS
• FILE STRUCTURE IN DOS
• DOS file name contains two parts, primary and secondary
names.
• Maximum 8 alphanumeric characters or hypen are allowed
for giving primary name.
• Secondary name consists of three characters which are
optional.
• Secondary names represent the extension of the file
like .COM or .EXE
• There are total 37 bytes of information in File Control Block
(FCB).
29/01/2025
BYTE
SIZE CONTENT
1 Driver identifier
8 Primary name of file
3 Secondary (extension) name of file
2 Current block number
2 Record Size
4 File Size
2 Date of creation or last updating
2 Time of creation or last updating
8 Reserved
1 Current record number
4 Relative record number
29/01/2025
COMMAND BASED OS
• FEATURES OF DOS
• Single user OS & permits execution of one task at a time.
29/01/2025
COMMAND BASED OS
• UNIX OS
• Developed in 1970 by Ken Thompson at Bell Laboratory.
29/01/2025
COMMAND BASED OS
• INTERFACES TO UNIX
Users
User Mode
User Interface
Standard Utilities
29/01/2025
COMMAND BASED OS
• THE UNIX SHELL
• The UNIX command line interface is called as UNIX shell.
• When user types a command shell removes the first word from
it.
29/01/2025
PROGRAM USE
cat Concatenate multiple files to standard output.
chmod Change file protection mode.
cp Copy one or more files.
cut Cut columns of text from a file.
grep Search a file for some pattern.
head Extract the first lines of a file.
ls List directory
make Compile files to build a binary
mkdir Make a directory
od Octal dump a file
paste Paste volumes of text into a file.
pr Format a file for printing
rm Remove one or more files
rmdir Remove a directory
sort Sort a file of lines alphabetically
tail Extract the last lines of a line.
tr
29/01/2025 Translate between character sets.
GUI BASED OS
• WINDOWS
• Windows is developed by Microsoft.
29/01/2025
GUI BASED OS
• WINDOWS SYSTEM COMPONENTS
• HARDWARE ABSTRACTION LAYER (HAL)
– HAL provides portability across platforms.
• KERNEL
– It is responsible for handling all kind of programs and process.
• EXECUTIVE
• It is written in C and includes 10 components
Security
Object Manger I/O Manager Process Manager VM Manager Reference
monitor
Plug-&-Play Registry & Advance local
Cache Manager Manager Power Manager Booting procedure call
29/01/2025
29/01/2025
GUI BASED OS
• LINUX
• It is free and open source OS.
• It supports GUI.
• SYSTEM LIABRARIES
– Provides interaction with kernel.
• SYSTEM UTILITIES
– These are the programs that carry out individual, specialized
management tasks.
29/01/2025
29/01/2025