SlideShare a Scribd company logo
1 of 28
Download to read offline
Types of Operating System
3. Batch Processing System
 The OS in the early computers was fairly simple.
 Its major task was to transfer control automatically from one job to the
next.
 The OS was always resident in memory.
 To speed up processing, operators batched together jobs with similar
requirement/needs and ran them through the computer as a group.Thus,
the programmers would leave their programs with the operator.
 The operator would sort programs into batches with similar requirements
and, as the computer became available, would run each batch.
 The output from each job would be sent back to the appropriate
programmer.
Memory layout of Batch System
Operating System
User Program Area
Batch Processing Operating System
JOBS
HARDWARE
OPERATING SYSTEM
JOBS
JOBS
JOBS
JOBS
Batch
Monitor
Advantages:
➢ Batch processing system is particularly useful for operations that
require the computer or a peripheral device for an extended period
of time with very little user interaction.
➢ Increased performance as it was possible for job to start as soon as
previous job is finished without any manual intervention.
➢ Priorities can be set for different batches.
Disadvantages:
➢ No interaction is possible with the user while the program is being
executed.
➢ In this execution environment , the CPU is often idle, because the speeds
of the mechanical I/O devices are intrinsically slower than are those of
electronic devices.
4. Multiprogramming System
 The most important aspect of job scheduling is the ability to multi-program.
 Multiprogramming increases CPU utilization by organizing jobs so that CPU
always has one to execute.
 The idea is as follows:The operating system keeps several jobs in memory
simultaneously.This set of jobs is a subset of the jobs kept in the job-pool.
Since the number of jobs that can be in the job pool.
 The operating system picks and begins to execute one of the jobs in the
memory.
 Eventually, the job may have to wait for some task, such as an I/O operation,
to complete.
 In a multiprogramming system, the OS simply switches to, and executes
another job.When that job needs to wait, the CPU is switched to another job
and so on. Eventually the first job finishes waiting and gets the CPU back.
 As long as at-least one job needs to execute, the CPU is never idle.
Multiprogramming (Continued…)
 Multiprogramming is the first instance where the OS must make
decisions for the users ( Making this decision is Job Scheduling ).
 All the jobs that enter the system are kept in the job pool.This pool
consists of all processes residing on disk awaiting allocation of main
memory.
 If several jobs are ready to run at the same time, the system must
choose among them. Making this decision is job scheduling.
 Finally multiple jobs running concurrently require that their ability to
affect one another be limited in all phases of the operating system,
including process scheduling, disk storage and memory management.
Memory layout for multiprogramming system
Operating System
Job 3
Job 2
Job 1
Job 4
Job 5
Memory layout for multiprogramming system
Main Memory
Secondary
Disk
Storage
Operating System
Program C
(Waiting for CPU)
Program B
Program A
CPU
Writing
output data
Execution
in
progress
Three different states of jobs in multiprogramming
New Job is allocated the Job
Job CPU for execution Processing
completed
Job must wait for
I/O completed I/O completion
Ready Running
5) Multitasking System
 Technically, multitasking is same as multiprogramming.
 In a multitasking OS, a single user can execute multiple programs at the
same time.
 Multitasking is the system’s capability to work one or more than one job or
process at the same time. It means that whenever a job needs to perform I/O
operations, the CPU can be used for executing some other job or process
that is also residing in the system and is ready to use the CPU.
 NOTE:
The term multiprogramming is used for multi-user systems i.e.,
systems that are simultaneously used by many users such as mainframe and
server class system.
The term multitasking is used for single user system i.e., systems that
are used by only one user at a time such as personal computer or a notebook.
Multitasking System (Continued…)
 Thus multitasking is the method of processing the multiple tasks
concurrently in a single user system.
 For Example:A user is running separate program in 4 different windows
at the same time.The program in window 1 could be printing a
document, he program in window 2 could be displaying an e-mail of
user, a spreadsheet program in window 3 could be preparing sales report
and compilation of a program is in progress in window 4. in this manner,
a user may work on many tasks at the same time.Thus, progress of
different tasks can be viewed on different windows in a multitasking
system.
 There are two types of multitasking:
1. Cooperative Multitasking
2. Pre-emptive Multitasking
1. Cooperative Multitasking. In Cooperative Multitasking, a
program can acquire the CPU for the required amount of time.A
program can share CPU with any other program that is executing
simultaneously.
2. Pre-emptive Multitasking. In Pre-emptive Multitasking the OS
allocates particular time to a program.The CPU is preempted if a
higher priority job arrives in a system.
Types of Multitasking System
Comparison between
Multiprogramming and Multitasking
Sr.
No.
Multiprogramming Multitasking
1. It is used for multi-user
systems i.e., the systems
that are used by many users
at the same time.
It is used for single user
systems i.e., the systems that
are used only by one user a
same time.
2. It refers to concurrent
execution of multiple jobs
that may be of same user or
different users.
It refers to concurrent
execution of multiple jobs of
same user.
5. Multiprocessing/ Parallel/ Tightly Coupled System
 Most systems to date are single-processor systems; that is they have only one main
CPU. However, multiprocessor systems ( also known as parallel systems or
tightly coupled systems ) are growing in importance.
 Such systems have more than one processor in close communication,
sharing the computer bus, the clock, and sometimes memory and
peripheral devices.
 Multiprocessor systems have three main advantages:
1. Increased throughput : By increasing the number of processors, we hope
more work done in less time.The speed-up of N processors is not N; rather it is
less than N.When multiprocessors cooperate on a task, a certain amount of
overhead is incurred in keeping all the parts working correctly.This overhead,
plus contention for shared resources, lowers the expected gain from additional
processors.
2. Economy of Scale: Multiprocessor systems can save more money than
multiple single processor systems, because they can share peripherals, mass
storage, and power supplies . If several programs operate on same set of data, it
is cheaper to store those data on one disk and to have all the processors share
them, than to have many computers with local disks & many copies of the data.
Multiprocessing System (Continued…)
3. Increased reliability. If functions can be distributed properly
among several processors, then the failure of one processor will not
halt the system, only slow down it. If we have ten processors and one
fails, then each of the remaining nine processors must pick up a share
of the work of the failed processor.Thus, the entire system runs only
10 percent slower, rather failing altogether.This ability to continue
providing service proportional to the level of surviving hardware is
called graceful degradation. Systems designed for graceful
degradation are also called fault tolerant.
Types of multiprocessor systems
1. Symmetric Multiprocessing
2. Asymmetric Multiprocessing
Types of multiprocessor systems
VImp Q. Differences between Symmetric and Asymmetric
Multiprocessing
Sr.
No.2
Symmetric Multiprocessing 2.Asymmetric Multiprocessing
1 In SMP, each processor runs an identical
copy of the OS, and these copies
communicate with one another as needed.
InASMP, each processor is assigned a specific task.
2 SMP means that all processors are peers;
no master-slave relationship exists
between processors.
A master processor controls the system; the other
processors either look to the master for instruction
or have predefined tasks.This scheme defines
master-slave relationship.
3 Each processor concurrently runs a copy
of the operating system.
The master processor schedules and allocates work
to the slave processors.
Differences between
Symmetric and Asymmetric Multiprocessing
Comparison between Multiprogramming and Multiprocessing
7. Real-Time Operating Systems (RTOS)
 A real-time operating system (RTOS) is an operating system (OS) intended to
serve real-time applications that process data as it comes in, typically without buffer
delays. Processing time requirements (including any OS delay) are measured in tenths of
seconds or shorter increments of time.
 Real time operating systems are generally special-purpose ones designed to run embedded
or specialized systems.
 These systems often operate in environments where there are significant constraints on
hardware design and often narrow tasks that need to be done with great accuracy and
speed.
 Real time systems are used in military, engineering, medical, and data communications
systems (among others).
 Example :Typical examples of real-time systems include AirTraffic Control Systems,
Networked Multimedia Systems, Command Control Systems etc.
Advantages:
 BetterThroughput
 Time taken for response is less
Disadvantages
 Very Costly
 Large memory required
6. Distributed/ Loosely coupled Systems
 Distributed Operating System is one of the important type of operating
system.
 Multiple central processors are used by Distributed systems to serve multiple
real-time applications and multiple users. Accordingly, Data processing jobs
are distributed among the processors.
 Processors communicate with each other through various communication lines
(like high-speed buses or telephone lines). These are known as loosely coupled
systems or distributed systems. Processors in this system may vary in size and
function. They are referred as sites, nodes, computers, and so on.
Advantages
 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.
 Failure of one site in a distributed system doesn’t affect the others, 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.
8. Time Sharing Operating System
 A time sharing system allows many users to share the computer resources
simultaneously. In other words, time sharing refers to the allocation
of computer resources in time slots to several programs simultaneously. For example
a mainframe computer that has many users logged on to it.
 Each user uses the resources of the mainframe -i.e. memory, CPU etc.The users feel
that they are exclusive user of the CPU, even though this is not possible with one CPU
i.e. shared among different users.
 The time sharing systems were developed to provide an interactive use of the computer
system.A time shared system uses CPU scheduling and multi-programming to provide
each user with a small portion of a time-shared computer. It allows many users to share
the computer resources simultaneously.As the system switches rapidly from one user to
the other, a short time slot is given to each user for their executions.
 The time sharing system provides the direct access to a large number of users where
CPU time is divided among all the users on scheduled basis.The OS allocates a set of
time to each user.When this time is expired, it passes control to the next user on the
system.The time allowed is extremely small and the users are given the impression that
they each have their own CPU and they are the sole owner of the CPU.This short
period of time during that a user gets attention of the CPU; is known as a time slice or a
quantum.The concept of time sharing system is shown in figure.
 The time-shared systems are more complex than the multi-programming systems. In
time-shared systems multiple processes are managed simultaneously which requires an
adequate management of main memory so that the processes can be swapped in or
swapped out within a short time.
Handheld Systems
 Handheld systems include Personal DigitalAssistants (PDA’s), such as Palm OS,
cellular telephones with connectivity to a network such as the internet.
 Developers of handheld systems and applications face many challenges most of which
are due to the limited size of such devices.
 Ex: PDA
 First issue faced by programmer: Due to this limited size, most handheld devices have
a small amount of memory, include slow processors, and feature small display screens.
 Many handheld devices have been limited size of memory.
 As a result, the OS and applications must manage memory efficiently.This includes
returning all allocated memory back to the memory manager once the memory is no
longer being used.
 Smartphones combine a mobile phone and a handheld computer into a
single device. Examples of smartphones over the years have included the
Apple iPhone, Samsung Galaxy, Microsoft and Nokia Lumia, Sony Ericsson etc.,
 Second issue faced by programmer: Speed of processor
 Processor for most handheld devices often run at a fraction of the speed of a processor
in a PC.
 Third issue faced by programmer: Displaying the content in web pages in we clipping
where only a small subset of web page is delivered and displayed on a handheld device.
Types of Operating System-converted.pdf

More Related Content

What's hot

DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-SystemsVenkata Sreeram
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSKumar Pritam
 
Virtual memory
Virtual memoryVirtual memory
Virtual memoryAnuj Modi
 
Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating systemJayesh Chauhan
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 
cpu scheduling
cpu schedulingcpu scheduling
cpu schedulinghashim102
 
Services provided by os
Services provided by osServices provided by os
Services provided by osSumant Diwakar
 
Kernel. Operating System
Kernel. Operating SystemKernel. Operating System
Kernel. Operating Systempratikkadam78
 
Synchronization hardware
Synchronization hardwareSynchronization hardware
Synchronization hardwareSaeram Butt
 
Operating system; Multitasking
Operating system; MultitaskingOperating system; Multitasking
Operating system; MultitaskingFlameDimension95
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating SystemsRitu Ranjan Shrivastwa
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 

What's hot (20)

DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Operating system
Operating systemOperating system
Operating system
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating system
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
cpu scheduling
cpu schedulingcpu scheduling
cpu scheduling
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
Services provided by os
Services provided by osServices provided by os
Services provided by os
 
Kernel. Operating System
Kernel. Operating SystemKernel. Operating System
Kernel. Operating System
 
Synchronization hardware
Synchronization hardwareSynchronization hardware
Synchronization hardware
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Operating system; Multitasking
Operating system; MultitaskingOperating system; Multitasking
Operating system; Multitasking
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
Evolution of os
Evolution of osEvolution of os
Evolution of os
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 

Similar to Types of Operating System-converted.pdf

4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptxsania458451
 
4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptxsania458451
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxUttara University
 
Operating system notes
Operating system notesOperating system notes
Operating system notesSANTOSH RATH
 
Session1 intro to_os
Session1 intro to_osSession1 intro to_os
Session1 intro to_osKalyani Patil
 
Operating systems
Operating systemsOperating systems
Operating systemsoswaldm80
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Ismail Mukiibi
 
Types or evolution of operating system
Types or evolution of operating systemTypes or evolution of operating system
Types or evolution of operating systemEkta Bafna
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture NotesFellowBuddy.com
 
Operating Systems
Operating SystemsOperating Systems
Operating Systemsachal02
 
MYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxMYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxArjayBalberan1
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating SystemDr. Pankaj Zope
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsmanideepakc
 
Operating System DOS and Windows
Operating System DOS and WindowsOperating System DOS and Windows
Operating System DOS and WindowsYasirKhan357
 

Similar to Types of Operating System-converted.pdf (20)

4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptx
 
4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptx
 
Operating system
Operating systemOperating system
Operating system
 
Os notes
Os notesOs notes
Os notes
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptx
 
Operating system notes
Operating system notesOperating system notes
Operating system notes
 
Mainframe systems
Mainframe systemsMainframe systems
Mainframe systems
 
Session1 intro to_os
Session1 intro to_osSession1 intro to_os
Session1 intro to_os
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
 
Unit v
Unit vUnit v
Unit v
 
Types or evolution of operating system
Types or evolution of operating systemTypes or evolution of operating system
Types or evolution of operating system
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
MYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxMYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptx
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating System
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
 
Operating System DOS and Windows
Operating System DOS and WindowsOperating System DOS and Windows
Operating System DOS and Windows
 

Recently uploaded

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 

Recently uploaded (20)

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 

Types of Operating System-converted.pdf

  • 2. 3. Batch Processing System  The OS in the early computers was fairly simple.  Its major task was to transfer control automatically from one job to the next.  The OS was always resident in memory.  To speed up processing, operators batched together jobs with similar requirement/needs and ran them through the computer as a group.Thus, the programmers would leave their programs with the operator.  The operator would sort programs into batches with similar requirements and, as the computer became available, would run each batch.  The output from each job would be sent back to the appropriate programmer.
  • 3. Memory layout of Batch System Operating System User Program Area
  • 4. Batch Processing Operating System JOBS HARDWARE OPERATING SYSTEM JOBS JOBS JOBS JOBS Batch Monitor
  • 5. Advantages: ➢ Batch processing system is particularly useful for operations that require the computer or a peripheral device for an extended period of time with very little user interaction. ➢ Increased performance as it was possible for job to start as soon as previous job is finished without any manual intervention. ➢ Priorities can be set for different batches. Disadvantages: ➢ No interaction is possible with the user while the program is being executed. ➢ In this execution environment , the CPU is often idle, because the speeds of the mechanical I/O devices are intrinsically slower than are those of electronic devices.
  • 6. 4. Multiprogramming System  The most important aspect of job scheduling is the ability to multi-program.  Multiprogramming increases CPU utilization by organizing jobs so that CPU always has one to execute.  The idea is as follows:The operating system keeps several jobs in memory simultaneously.This set of jobs is a subset of the jobs kept in the job-pool. Since the number of jobs that can be in the job pool.  The operating system picks and begins to execute one of the jobs in the memory.  Eventually, the job may have to wait for some task, such as an I/O operation, to complete.  In a multiprogramming system, the OS simply switches to, and executes another job.When that job needs to wait, the CPU is switched to another job and so on. Eventually the first job finishes waiting and gets the CPU back.  As long as at-least one job needs to execute, the CPU is never idle.
  • 7. Multiprogramming (Continued…)  Multiprogramming is the first instance where the OS must make decisions for the users ( Making this decision is Job Scheduling ).  All the jobs that enter the system are kept in the job pool.This pool consists of all processes residing on disk awaiting allocation of main memory.  If several jobs are ready to run at the same time, the system must choose among them. Making this decision is job scheduling.  Finally multiple jobs running concurrently require that their ability to affect one another be limited in all phases of the operating system, including process scheduling, disk storage and memory management.
  • 8. Memory layout for multiprogramming system Operating System Job 3 Job 2 Job 1 Job 4 Job 5
  • 9. Memory layout for multiprogramming system Main Memory Secondary Disk Storage Operating System Program C (Waiting for CPU) Program B Program A CPU Writing output data Execution in progress
  • 10. Three different states of jobs in multiprogramming New Job is allocated the Job Job CPU for execution Processing completed Job must wait for I/O completed I/O completion Ready Running
  • 11. 5) Multitasking System  Technically, multitasking is same as multiprogramming.  In a multitasking OS, a single user can execute multiple programs at the same time.  Multitasking is the system’s capability to work one or more than one job or process at the same time. It means that whenever a job needs to perform I/O operations, the CPU can be used for executing some other job or process that is also residing in the system and is ready to use the CPU.  NOTE: The term multiprogramming is used for multi-user systems i.e., systems that are simultaneously used by many users such as mainframe and server class system. The term multitasking is used for single user system i.e., systems that are used by only one user at a time such as personal computer or a notebook.
  • 12. Multitasking System (Continued…)  Thus multitasking is the method of processing the multiple tasks concurrently in a single user system.  For Example:A user is running separate program in 4 different windows at the same time.The program in window 1 could be printing a document, he program in window 2 could be displaying an e-mail of user, a spreadsheet program in window 3 could be preparing sales report and compilation of a program is in progress in window 4. in this manner, a user may work on many tasks at the same time.Thus, progress of different tasks can be viewed on different windows in a multitasking system.  There are two types of multitasking: 1. Cooperative Multitasking 2. Pre-emptive Multitasking
  • 13. 1. Cooperative Multitasking. In Cooperative Multitasking, a program can acquire the CPU for the required amount of time.A program can share CPU with any other program that is executing simultaneously. 2. Pre-emptive Multitasking. In Pre-emptive Multitasking the OS allocates particular time to a program.The CPU is preempted if a higher priority job arrives in a system. Types of Multitasking System
  • 14. Comparison between Multiprogramming and Multitasking Sr. No. Multiprogramming Multitasking 1. It is used for multi-user systems i.e., the systems that are used by many users at the same time. It is used for single user systems i.e., the systems that are used only by one user a same time. 2. It refers to concurrent execution of multiple jobs that may be of same user or different users. It refers to concurrent execution of multiple jobs of same user.
  • 15. 5. Multiprocessing/ Parallel/ Tightly Coupled System  Most systems to date are single-processor systems; that is they have only one main CPU. However, multiprocessor systems ( also known as parallel systems or tightly coupled systems ) are growing in importance.  Such systems have more than one processor in close communication, sharing the computer bus, the clock, and sometimes memory and peripheral devices.  Multiprocessor systems have three main advantages: 1. Increased throughput : By increasing the number of processors, we hope more work done in less time.The speed-up of N processors is not N; rather it is less than N.When multiprocessors cooperate on a task, a certain amount of overhead is incurred in keeping all the parts working correctly.This overhead, plus contention for shared resources, lowers the expected gain from additional processors. 2. Economy of Scale: Multiprocessor systems can save more money than multiple single processor systems, because they can share peripherals, mass storage, and power supplies . If several programs operate on same set of data, it is cheaper to store those data on one disk and to have all the processors share them, than to have many computers with local disks & many copies of the data.
  • 16. Multiprocessing System (Continued…) 3. Increased reliability. If functions can be distributed properly among several processors, then the failure of one processor will not halt the system, only slow down it. If we have ten processors and one fails, then each of the remaining nine processors must pick up a share of the work of the failed processor.Thus, the entire system runs only 10 percent slower, rather failing altogether.This ability to continue providing service proportional to the level of surviving hardware is called graceful degradation. Systems designed for graceful degradation are also called fault tolerant. Types of multiprocessor systems 1. Symmetric Multiprocessing 2. Asymmetric Multiprocessing
  • 17. Types of multiprocessor systems VImp Q. Differences between Symmetric and Asymmetric Multiprocessing Sr. No.2 Symmetric Multiprocessing 2.Asymmetric Multiprocessing 1 In SMP, each processor runs an identical copy of the OS, and these copies communicate with one another as needed. InASMP, each processor is assigned a specific task. 2 SMP means that all processors are peers; no master-slave relationship exists between processors. A master processor controls the system; the other processors either look to the master for instruction or have predefined tasks.This scheme defines master-slave relationship. 3 Each processor concurrently runs a copy of the operating system. The master processor schedules and allocates work to the slave processors.
  • 18. Differences between Symmetric and Asymmetric Multiprocessing
  • 19.
  • 20. Comparison between Multiprogramming and Multiprocessing
  • 21. 7. Real-Time Operating Systems (RTOS)  A real-time operating system (RTOS) is an operating system (OS) intended to serve real-time applications that process data as it comes in, typically without buffer delays. Processing time requirements (including any OS delay) are measured in tenths of seconds or shorter increments of time.  Real time operating systems are generally special-purpose ones designed to run embedded or specialized systems.  These systems often operate in environments where there are significant constraints on hardware design and often narrow tasks that need to be done with great accuracy and speed.  Real time systems are used in military, engineering, medical, and data communications systems (among others).  Example :Typical examples of real-time systems include AirTraffic Control Systems, Networked Multimedia Systems, Command Control Systems etc. Advantages:  BetterThroughput  Time taken for response is less Disadvantages  Very Costly  Large memory required
  • 22. 6. Distributed/ Loosely coupled Systems  Distributed Operating System is one of the important type of operating system.  Multiple central processors are used by Distributed systems to serve multiple real-time applications and multiple users. Accordingly, Data processing jobs are distributed among the processors.  Processors communicate with each other through various communication lines (like high-speed buses or telephone lines). These are known as loosely coupled systems or distributed systems. Processors in this system may vary in size and function. They are referred as sites, nodes, computers, and so on. Advantages  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.  Failure of one site in a distributed system doesn’t affect the others, 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.
  • 23.
  • 24.
  • 25. 8. Time Sharing Operating System  A time sharing system allows many users to share the computer resources simultaneously. In other words, time sharing refers to the allocation of computer resources in time slots to several programs simultaneously. For example a mainframe computer that has many users logged on to it.  Each user uses the resources of the mainframe -i.e. memory, CPU etc.The users feel that they are exclusive user of the CPU, even though this is not possible with one CPU i.e. shared among different users.  The time sharing systems were developed to provide an interactive use of the computer system.A time shared system uses CPU scheduling and multi-programming to provide each user with a small portion of a time-shared computer. It allows many users to share the computer resources simultaneously.As the system switches rapidly from one user to the other, a short time slot is given to each user for their executions.  The time sharing system provides the direct access to a large number of users where CPU time is divided among all the users on scheduled basis.The OS allocates a set of time to each user.When this time is expired, it passes control to the next user on the system.The time allowed is extremely small and the users are given the impression that they each have their own CPU and they are the sole owner of the CPU.This short period of time during that a user gets attention of the CPU; is known as a time slice or a quantum.The concept of time sharing system is shown in figure.
  • 26.  The time-shared systems are more complex than the multi-programming systems. In time-shared systems multiple processes are managed simultaneously which requires an adequate management of main memory so that the processes can be swapped in or swapped out within a short time.
  • 27. Handheld Systems  Handheld systems include Personal DigitalAssistants (PDA’s), such as Palm OS, cellular telephones with connectivity to a network such as the internet.  Developers of handheld systems and applications face many challenges most of which are due to the limited size of such devices.  Ex: PDA  First issue faced by programmer: Due to this limited size, most handheld devices have a small amount of memory, include slow processors, and feature small display screens.  Many handheld devices have been limited size of memory.  As a result, the OS and applications must manage memory efficiently.This includes returning all allocated memory back to the memory manager once the memory is no longer being used.  Smartphones combine a mobile phone and a handheld computer into a single device. Examples of smartphones over the years have included the Apple iPhone, Samsung Galaxy, Microsoft and Nokia Lumia, Sony Ericsson etc.,  Second issue faced by programmer: Speed of processor  Processor for most handheld devices often run at a fraction of the speed of a processor in a PC.  Third issue faced by programmer: Displaying the content in web pages in we clipping where only a small subset of web page is delivered and displayed on a handheld device.