Chapter-I Overview of Operating System
Chapter-I Overview of Operating System
OSY-22516
UNIT-I
OVERVIEW OF OPERATING SYSTEM
19-06-2020
INTRODUCTION
• Definition of Operating Systems
• A program that acts as an intermediate between a user of a
computer and the computer hardware.
19-06-2020
INTRODUCTION
OPERATING SYSTEM
WINDOWS OS UNIX OS
MACINTOSH OS LINUX OS
HACKINTOSH OS UBANTU OS
19-06-2020
COMPONENTS OF OS
• A computer system can be divided roughly into four
components.
• 1. Hardware
• 2. OS
• 3. Application programs
• 4. Users
19-06-2020
COMPONENTS OF OS
19-06-2020
COMPONENTS OF OS
19-06-2020
OPERATION OF OS
• B) RESOURCE MANAGEMENT
• Resource management refers to techniques for
managing resources
– Time management
• CPU and disk transfer scheduling
– Space management
• main and secondary storage allocation
– Synchronization and deadlock handling
• IPC, critical section, coordination
– Accounting and status information
• resource usage tracking
19-06-2020
OPERATION OF OS
• C) SECURITY AND PROTECTION
19-06-2020
VIEWS OF OS
• The operating system can be observed from the point of view
of the user or the system.
19-06-2020
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.
19-06-2020
VIEWS OF OS
• B) SYSTEM VIEW
• From the computer’s point of view, the OS is involved with the
hardware.
19-06-2020
LOADING OF OS
Computer-System Architecture
19-06-2020
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
19-06-2020
LOADING OF OS
BOOTSTRAPPING
19-06-2020
POINTS TO BE COVERED
• Different Types of • Command Line Based OS
Operating System – DOS
– Batch OS – UNIX
– Multiprogrammed OS
– Time Shared OS • GUI Based OS
– Multiprocessor Systems
– Windows
– Distributed Systems
– Linux
– Real Time OS (RTOS)
• Mobile OS
– Android
– IOS
19-06-2020
19-06-2020
19-06-2020
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.
19-06-2020
19-06-2020
TYPES OF OS
• The problems with Batch Systems are as follows:-
19-06-2020
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.
19-06-2020
TYPES OF OS
• LAYOUT OF MULTIPROGRAMMED OS
19-06-2020
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.
19-06-2020
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.
19-06-2020
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.
19-06-2020
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.
19-06-2020
19-06-2020
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.
19-06-2020
19-06-2020
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.
19-06-2020
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.
19-06-2020
TYPES OF OS
• There are two types of real-time operating systems.
19-06-2020
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.
19-06-2020
19-06-2020
19-06-2020
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.
19-06-2020
TYPES OF OS
• LIBRARIES
• On top of Linux kernel there is a set of libraries including
– Open-source Web browser engine WebKit
19-06-2020
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
19-06-2020
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.
19-06-2020
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.
19-06-2020
TYPES OF OS
• APPLICATION FRAMEWORK
• You will find all the Android application at the top layer.
19-06-2020
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.
19-06-2020
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.
19-06-2020
19-06-2020
TYPES OF OS
• CORE OS
• All the iOS technologies are build on the low level features
provided by the Core OS layer.
19-06-2020
TYPES OF OS
• CORE SERVICES • Address Book Framework
• Some of these services are given as – The address book framework
follows: provides access to the contacts
database of the user.
• Cloudkit Framework
– The data can be moved between• Core Motion Framework
the app the iCloud using the – All the motion based data on the
Cloudkit Framework. device is accessed using core
motion framework.
• Core Foundation Framework
– This provides the data• Healthkit Framework
management and service features – The health related information of
for the iOS apps. the user can be handled by this
new framework.
• Core Data Framework
– The data model of the model view• Core Location Framework
controller app is handled using the – This framework provides the
Core Data Framework. location and heading information
to the various apps.
19-06-2020
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.
19-06-2020
TYPES OF OS
• COCOA TOUCH
• The cocoa touch layer provides the following frameworks:
• EventKit Framework
– This shows the standard system interfaces using view controllers for
viewing and changing calendar related events.
• 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.
19-06-2020
COMMAND BASED OS
• DISK OPERATING SYSTEM [DOS]
• It is MS DOS Microsoft Disk Operating System.
19-06-2020
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.
19-06-2020
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.
19-06-2020
COMMAND BASED OS
• DIRECTORY STRUCTURE IN DOS
• DOS permits grouping related files together in directories.
19-06-2020
BYTE
CONTENT
SIZE
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
19-06-2020
19-06-2020
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).
19-06-2020
BYTE
CONTENT
SIZE
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
19-06-2020
COMMAND BASED OS
• FEATURES OF DOS
• Single user OS & permits execution of one task at a time.
19-06-2020
COMMAND BASED OS
• UNIX OS
• Developed in 1970 by Ken Thompson at Bell Laboratory.
19-06-2020
COMMAND BASED OS
• INTERFACES TO UNIX
Users
User Mode
User Interface
Standard Utilities
19-06-2020
COMMAND BASED OS
• THE UNIX SHELL
• The UNIX command line interface is called as UNIX shell.
19-06-2020
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.
19-06-2020
tr Translate between character sets.
GUI BASED OS
• WINDOWS
• Windows is developed by Microsoft.
19-06-2020
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 Power Manager
19-06-2020 Manager Booting procedure call
19-06-2020
GUI BASED OS
• LINUX
• It is free and open source OS.
• It supports GUI.
19-06-2020
GUI BASED OS
• COMPONENTS OF LINUX
• KERNEL
• It is responsible for handling all kind of programs and process.
• SYSTEM LIABRARIES
– Provides interaction with kernel.
• SYSTEM UTILITIES
– These are the programs that carry out individual, specialized
management tasks.
19-06-2020
19-06-2020