Professional Documents
Culture Documents
New OSY PPT - Unit 1.2
New OSY PPT - Unit 1.2
Program Name
Computer Engineering
Course Name
Operating System(OSY-22516)
Unit-I
Overview of Operating system
Subtopic - 1.2
Different types of Operating System
B P Bhagat
Lecturer in Computer Engineering
Course Outcomes
After Completion of Operating System (OSY) course, students will able to:
• In this system, there is no direct interaction between user and the computer.
B P Bhagat
Batch Operating System
• In batch operating system,
– Firstly, user prepares his job using punch cards.
– Then, he submits the job to the computer operator.
– Operator collects jobs from users and sort jobs into batches with similar needs.
– Operator submits the batches to the processor one by one.
– All the jobs of one batch are executed together.
• I/P devices- card readers and tape drives.
• O/P devices -line printers, tape drives, and punch cards.
Batch1 Batch2
User 1 Job 1
Job7 CPU
Job 1
User 2 Job 2 Job4
Operator OS
Job3
Job5 User
Compiler Programs
User n Job n Compiler
B P Bhagat
Batch Operating System
Advantages
̶ Jobs executes one after another saving time.
̶ During a batch execution no manual intervention is needed.
̶ It is easy to manage large repeated work easily.
̶ Multiple users can share the batch systems
Disadvantages
– Limited memory.
– Difficult to debug program.
– If any job fails, other jobs have to wait for an unknown time.
– No priority concept.
B P Bhagat
Multiprogrammed Operating System
• A single user cannot keep either the CPU or the I/O busy at all times.
• Multiprogramming means more than one process in main memory to execute.
• Process generally required CPU time and I/O time ,so if running process perform I/O or
other event then instead of sitting idle, CPU makes context switch and picks other
process and continues.
• No CPU time is wasted by the system waiting for the I/O task to be completed.
• Thus, the ultimate goal of multi programming is to keep the CPU busy as long as there
are processes ready to execute.
• e.g Lawyer B P Bhagat
Multiprogrammed Operating System
• Advantages
̵ High CPU utilization.
̵ Efficient memory utilization.
̵ Less waiting time, response time hence throughput increased.
̵ May be extended to multiple users as load is high.
• Disadvantages
̵ Difficult to scheduling.
̵ Main memory management required.
̵ Memory fragmentation.
̵ Paging
B P Bhagat
Time shared or Multitasking Operating System
• In this, the CPU time is shared by different
processes.
• Time slice is defined by the OS, for sharing CPU
time between processes.
• The CPU executes multiple jobs by switching
among them, but switches occurs so fast that user
can interact with all of the programs.
• It allows many users to share the computer
simultaneously.
• When a process executes, it executes for short
time or fixed time before it either finishes or needs
to perform I/O.
• It uses CPU scheduling algorithm.
• Examples: Windows, Multics, Unix, Linux etc.
B P Bhagat
Time-Sharing OS
• Advantages
– Each task gets an equal opportunity.
– Less chances of duplication of software.
– CPU idle time can be reduced.
• Disadvantages
– Reliability problem.
– One must have to take care of security and integrity of user programs
and data.
– Data communication problem.
B P Bhagat
Multiprogramming Vs Multitasking OS
Multiprogramming OS Multitasking OS
In multiprogramming, multiple processes runs Multitasking is when more than one task is
concurrently at the same time on a single executed at a single time utilizing multiple
processor. CPUs.
It is based on the concept of context switching It is based on the concept of time sharing.
Multiple programs resides in the main memory It enables execution of multiple tasks and
simultaneously to improve CPU utilization so processes at the same time to increase CPU
that CPU doesn’t sit idle for a long time. performance.
It utilizes single CPU for execution of processes. It utilizes multiple CPU for task allocation.
It takes more time to execute the processes. It takes less time to execute the task or
processes.
The idea is to reduce CPU idle time for as long The idea is to allocate multiple processes to run
as possible. simultaneously via time sharing.
B P Bhagat
Multiprocessor Operating System
• System has two or more processors in a close communication, sharing the
computer bus, memory ,clock and other peripheral devices.
• A Multiprocessor system also known as Parallel System or Tightly
Coupled System.
• Systems are used when very high speed is required to process large
volume of data.
• It provides higher computing power and speed.
• In multiprocessor system all processors operate
under single operating system.
• Two types of Multiprocessor Systems are:
– Asymmetric
– Symmetric
https://rsktutors.blogspot.com/2016/10/multiprocessing.html
B P Bhagat
Asymmetric Multiprocessor OS
• In asymmetric multiprocessing, each processor is assigned a specific task.
• A master processor controls the system;
• Other processor follow master for instruction or predefined tasks.
• This defines master-slave relationship.
• All multiple interconnected CPUs are not treated equally.
• Master processor schedules and allocates work to
slave processors.
• Task assigns to CPU based on priority and
importance of task completion.
B P Bhagat https://en.wikipedia.org/wiki/Asymmetric_multiprocessing
Symmetric Multiprocessor OS
B P Bhagat
Symmetric Vs Asymmetric Multiprocessor OS
Symmetric Multiprocessor OS Asymmetric Multiprocessor OS
In symmetric multiprocessing, all the In asymmetric multiprocessing, the
processors are treated equally. processors are not treated equally.
Tasks of the operating system are done Tasks of the operating system are done by
individual processor. master processor.
All processors communicate with another No Communication between Processors as
processor by a shared memory. they are controlled by the master processor.
B P Bhagat
Distributed Operating System
• It is a collection of physically, heterogeneous computer system connected
via network to provide the users with access to various resources.
• Access to shared resources increases computation speed, functionality, data CPU
CPU
availability and reliability.
D
• A network is a communication path between two or more systems. I MEMORY CPU
S
– Networks vary by the protocols used, the distance between nodes and MEMORY K D
I
transport media MEMORY
S
K
– TCP/IP, ATM and other protocols.
– Networks are characterized based on distances i.e LAN, MAN and
WAN. Communication
– Processors communicate with each other through various Network
• Disadvantages
– Security problem due to easy access to all data.
– More complex than a centralized systems.
– Network saturation may cause a hurdle in data transfer.
B P Bhagat
Real time system
• It is defined as a data processing system in which the time interval required to processed and response
to input is so small that it controls the environment.
• It is used when rigid time requirement placed on the operation of a processor or the flow of data.
• The system is subjected to real time, i.e. response should be guaranteed within a specified timing
constraint or system should meet the specified deadline or system fails.
• The ability of OS to provide a required level of service in a bounded response time.
• RTOS responds to system immediately(Response time)
• RTOS is categories into two types:
– Hard Real Time System
– Soft Real Time System
• e.g: Traffic Control signal, Flight control system, Real time monitors etc.
• It occupy very less memory and consume fewer resources.
• Response times are highly predictable.
• Performance is important factor required to be considered
while selecting for a RTOS.
• Drawback of RTOS it concentrates on a few tasks.
B P Bhagat
Hard Real time system
• It has stringent requirement guaranteeing that critical real time tasks be
completed within deadline.
• This type of system can never miss its deadline.
• Missing the deadline may have disastrous consequences.
• A Hard RTOS has time-critical deadline that must be met;
otherwise catastrophic situation or failure may occur.
• Require formal verification/guarantees to meet its hard deadline.
• In this secondary storage is limited or missing and data is stored in ROM. VM not
present.
• Examples:
– Air traffic control
– Missile launching system
– Satellite control system
– Nuclear power plant control
– Air Bag controls in car
– Flight controller system.
B P Bhagat
Soft Real time system
• It is less restrictive, providing that a critical real-time task will receive priority over
other task and retain priority until it completes.
• This type of system can miss its deadline occasionally.
• Missing the deadline have no disastrous consequences.
• Modern OS can serve as a base for Soft RTOS.
• Examples:
Personal computers
Multimedia transmission and reception
Networking, Telecom(Cellular) network
Websites and services
Computer Games
Telephone switches.
B P Bhagat
Mobile Operating System
• The Operating system made for mobile devices is mobile operating system .
• It is software that allows Smartphones, tablet PCs (personal computers) and
other devices to run applications and programs.
• Modern Mobile OS mix the features of PC operating system with many other
features such as touch screen, video cameras ,voice recorders, Bluetooth,
Infrared, Wi-Fi , GPS mobile navigation, speech recognition etc.
B P Bhagat
Android Mobile Operating System
• It is developed for Android Smart Phones and Tablets by the
Open Handset Alliance, primarily Google.
• Founded in Palo Alto, California in October 2003 by Andy
Rubin, Rich Miner, Nick Sears and Chris White.
• Android is Linux based OS and a Java virtual machine both
optimized for small platforms.
• Android apps are developed using a special Java-for-Android
development environment and support java applications.
• Open-source OS, as opposed to iOS, which has lead to its
popularity.
• It support optimized graphics VGA, 2D graphics and 3D
graphics .
• It supports wireless communication using :3G,4G
networks,802.11 Wi-Fi Networks, Bluetooth connectivity.
Fig. Architecture of Android
B P Bhagat
Android Mobile Operating System
• Advantages
- Android can run multiple apps at the same time.
- Android has better app market.
- It has more options to fit to our budget and you can change your setting faster.
- Android keeps information visible on your home screen. Also users can
customized home screen style.
- Google Integration.
• Disadvantages
- Android operating system uses more amount of battery as compared
to normal java and Symbian mobile phones.
- It has some security related issues.
- As we call Android is world of application we continuously need to
connected with the internet which is not possible for all the users.
B P Bhagat
Versions of Android
• It is a mobile OS created and developed by Apple Inc. for iPhones, iPads and iPods.
• It runs with less memory and computing power needs than Mac OS X.
• Supports touch screen interface and graphics for small screens.
• iOS is not open source.
• Apple app store for ios app.
• Mobile Safari
B P Bhagat
iOS Mobile Operating System
• Advantages
– Better App Revenue.
– Security of Enterprise Data.
– High-Quality Standards.
– Apps for all business needs.
– Established Customer Base.
• Disadvantages
– Apple Ecosystem. The Apple Ecosystem is both a boon and a curse. ...
– Overpriced. While the products are very beautiful and sleek, prices for apple
products are too high.
– Less Storage. iPhones do not come with SD card slots so upgrading your storage
after buying is not an option.
B P Bhagat
Symbian Windows
B P Bhagat
References