SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
Operating System 08
Multi-processing Time sharing and
Multitasking OS
Prof Neeraj Bhargava
Vaibhav Khanna
Department of Computer Science
School of Engineering and Systems Sciences
Maharshi Dayanand Saraswati University Ajmer
Multiprogramming Operating
System
• The objective of a multiprogramming operating system is to increase
the system utilization efficiency.
• The batch processing system tries to reduce the CPU idle time
through operator interaction. However, it cannot reduce the idle time
due to IO operations.
• So, when some IO is being performed by the currently executing job
of a batch, the CPU sits idle without any work to do.
• Thus, the multiprogramming operating system tries to eliminate such
idle times by providing multiple computational tasks for the CPU to
perform.
• This is achieved by keeping multiple jobs in the main store.
• So, when the job that is being currently executed on the CPU needs
some IO, the CPU passes its requirement over to the IO processor.
• Till the time the IO operation is being carried out, the CPU is free
to carry out some other job.
Time Sharing or Multitasking
System
• Time sharing, or multitasking, is a logical extension
of multiprogramming.
• Multiple jobs are executed by the CPU switching
between them, but the switches occur so frequently
that the users may interact with each program
while it is running.
• An interactive, or hands-on, computer system
provides on-line communication between the user
and the system.
• The user gives instructions to the operating system
or to a program directly, and receives an
immediate response.
Time Sharing or Multitasking
System : File Management
• If users are to be able to access both data and code
conveniently, an on-line file system must be available. A
file is a collection of related information defined by its
creator.
• Commonly, files represent programs (both source and
object forms) and data.
• The operating system implements the abstract concept
of a file by managing mass-storage devices, such disks.
• Files are normally organized into logical clusters, or
directories, which make them easier to locate and
access.
• Since multiple users have access to files, it is desirable
to control by whom and in what ways files may be
accessed.
Time Sharing or Multitasking
System : Interactive jobs
• Batch systems are appropriate for executing large jobs that
need little interaction.
• The user can submit jobs and return later for the results; it is
not necessary for the user to wait while the job is processed.
• Interactive jobs tend to be composed of many short actions,
where the results of the next command may be unpredictable.
• The user submits the command and then waits for the
results. Accordingly, the response time should be short—on
the order of seconds at most.
• An interactive system is used when a short response time is
required.
• Time-sharing systems were developed to provide interactive
use of a computer system at a reasonable cost.
• A time-shared operating system uses CPU scheduling and
multiprogramming to provide each user with a small portion of
a time-shared computer.
Time Sharing or Multitasking
System : Process Management
• Each user has at least one separate program in
memory.
• A program that is loaded into memory and is executing
is commonly referred to as a process.
• When a process executes, it typically executes for only
a short time before it either finishes or needs to
perform I/O.
• I/O may be interactive; that is, output is to a display for
the user and input is from a user keyboard.
• A time-shared operating system allows the many users
to share the computer simultaneously.
• Since each action or command in a time-shared system
tends to be short, only a little CPU time is needed for
each user.
Time Sharing or Multitasking
System : Memory Management
• Time-sharing operating systems are even more complex
than are multi-programmed operating systems.
• As in multiprogramming, several jobs must be kept
simultaneously in memory, which requires some form of
memory management and protection.
• So that a reasonable response time can be obtained,
jobs may have to be swapped in and out of main
memory.
• As the system switches rapidly from one user to the
next, each user is given the impression that she has
her own computer, whereas actually one computer is
being shared among many users.
Multi- Processing or Parallel
Systems
• Most systems to date are single-processor systems; that
is, they have only one main CPU. However, there is a
trend toward multiprocessor systems.
• Such systems have more than one processor in close
communication, sharing the computer bus, the clock,
and sometimes memory and peripheral devices.
• These systems are referred to as tightly coupled
systems.
• There are several reasons for building such systems
such as increased throughput, lower cost, increased
reliability, fault tolerance.
• The Tandem system uses both hardware and software
duplication to ensure continued operation despite faults
Multiprogramming Vs
Multiprocessing Vs Multitasking
• The words multiprogramming, multiprocessing and multitasking are often
confused. There are, of course, some distinctions between these similar, but
distinct terms.
The term multiprogramming refers to the situation in which a single CPU divides
its time between more than one job. Time sharing is a special case of
multiprogramming, where a single CPU serves a number of users at interactive
terminals.
In multiprocessing, multiple CPUs perform more than one job at one time.
Multiprogramming and multiprocessing are not mutually exclusive. Some
mainframes and supermini computers have multiple CPUs each of which can
juggle several jobs.
The term multitasking is described any system that runs or appears to run more
than one application program one time. An effective multitasking environment
must provide many services both to the user and to the application program it
runs. The most important of these are resource management which divides the
computers time, memory and peripheral devices among competing tasks and
interprocess communication, which lets tasking coordinate their activities by
exchanging information
Assignment
• Explain Time sharing Operating Systems
• Briefly describe multi programming and multi-
processing OS
Ad

Recommended

Operating system services 9
Operating system services 9
myrajendra
Ā 
Operating Systems Basics
Operating Systems Basics
nishantsri
Ā 
Page replacement algorithms
Page replacement algorithms
Piyush Rochwani
Ā 
Computer Organization and Architecture.pptx
Computer Organization and Architecture.pptx
AshokRachapalli1
Ā 
Memory management
Memory management
Vishal Singh
Ā 
Operating Systems
Operating Systems
vampugani
Ā 
6 multiprogramming & time sharing
6 multiprogramming & time sharing
myrajendra
Ā 
Computer system architecture
Computer system architecture
Kumar
Ā 
Types of operating system
Types of operating system
Mohammad Alam
Ā 
System calls
System calls
Bernard Senam
Ā 
OS - Process Concepts
OS - Process Concepts
Mukesh Chinta
Ā 
Bus structure in Computer Organization.pdf
Bus structure in Computer Organization.pdf
mvpk14486
Ā 
Instruction format
Instruction format
Sanjeev Patel
Ā 
Operating system.ppt (1)
Operating system.ppt (1)
Vaibhav Bajaj
Ā 
Memory Management in OS
Memory Management in OS
vampugani
Ā 
Virtual memory
Virtual memory
Anuj Modi
Ā 
Kernel mode vs user mode in linux
Kernel mode vs user mode in linux
Siddique Ibrahim
Ā 
Memory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
Ā 
MULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULING
garishma bhatia
Ā 
cpu scheduling
cpu scheduling
hashim102
Ā 
Operating system memory management
Operating system memory management
rprajat007
Ā 
Procedural programming
Procedural programming
Ankit92Chitnavis
Ā 
Introduction to Operating Systems
Introduction to Operating Systems
Mukesh Chinta
Ā 
Resource Management for Computer Operating Systems
Resource Management for Computer Operating Systems
inside-BigData.com
Ā 
Computer system bus
Computer system bus
Goran W. Hama Ali
Ā 
Phases of Compiler
Phases of Compiler
Tanzeela_Hussain
Ā 
Software components
Software components
Amir_Mukhtar
Ā 
instruction cycle ppt
instruction cycle ppt
sheetal singh
Ā 
TYPES-OF-OSvnxbjxgjsjgsgjsgj gjzutsugsugsgussgj.pdf
TYPES-OF-OSvnxbjxgjsjgsgjsgj gjzutsugsugsgussgj.pdf
abhishekknpsingh7
Ā 
4-Process control block.pptx
4-Process control block.pptx
sania458451
Ā 

More Related Content

What's hot (20)

Types of operating system
Types of operating system
Mohammad Alam
Ā 
System calls
System calls
Bernard Senam
Ā 
OS - Process Concepts
OS - Process Concepts
Mukesh Chinta
Ā 
Bus structure in Computer Organization.pdf
Bus structure in Computer Organization.pdf
mvpk14486
Ā 
Instruction format
Instruction format
Sanjeev Patel
Ā 
Operating system.ppt (1)
Operating system.ppt (1)
Vaibhav Bajaj
Ā 
Memory Management in OS
Memory Management in OS
vampugani
Ā 
Virtual memory
Virtual memory
Anuj Modi
Ā 
Kernel mode vs user mode in linux
Kernel mode vs user mode in linux
Siddique Ibrahim
Ā 
Memory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
Ā 
MULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULING
garishma bhatia
Ā 
cpu scheduling
cpu scheduling
hashim102
Ā 
Operating system memory management
Operating system memory management
rprajat007
Ā 
Procedural programming
Procedural programming
Ankit92Chitnavis
Ā 
Introduction to Operating Systems
Introduction to Operating Systems
Mukesh Chinta
Ā 
Resource Management for Computer Operating Systems
Resource Management for Computer Operating Systems
inside-BigData.com
Ā 
Computer system bus
Computer system bus
Goran W. Hama Ali
Ā 
Phases of Compiler
Phases of Compiler
Tanzeela_Hussain
Ā 
Software components
Software components
Amir_Mukhtar
Ā 
instruction cycle ppt
instruction cycle ppt
sheetal singh
Ā 
Types of operating system
Types of operating system
Mohammad Alam
Ā 
OS - Process Concepts
OS - Process Concepts
Mukesh Chinta
Ā 
Bus structure in Computer Organization.pdf
Bus structure in Computer Organization.pdf
mvpk14486
Ā 
Instruction format
Instruction format
Sanjeev Patel
Ā 
Operating system.ppt (1)
Operating system.ppt (1)
Vaibhav Bajaj
Ā 
Memory Management in OS
Memory Management in OS
vampugani
Ā 
Virtual memory
Virtual memory
Anuj Modi
Ā 
Kernel mode vs user mode in linux
Kernel mode vs user mode in linux
Siddique Ibrahim
Ā 
Memory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
Ā 
MULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULING
garishma bhatia
Ā 
cpu scheduling
cpu scheduling
hashim102
Ā 
Operating system memory management
Operating system memory management
rprajat007
Ā 
Procedural programming
Procedural programming
Ankit92Chitnavis
Ā 
Introduction to Operating Systems
Introduction to Operating Systems
Mukesh Chinta
Ā 
Resource Management for Computer Operating Systems
Resource Management for Computer Operating Systems
inside-BigData.com
Ā 
Software components
Software components
Amir_Mukhtar
Ā 
instruction cycle ppt
instruction cycle ppt
sheetal singh
Ā 

Similar to Operating system 08 time sharing and multitasking operating system (20)

TYPES-OF-OSvnxbjxgjsjgsgjsgj gjzutsugsugsgussgj.pdf
TYPES-OF-OSvnxbjxgjsjgsgjsgj gjzutsugsugsgussgj.pdf
abhishekknpsingh7
Ā 
4-Process control block.pptx
4-Process control block.pptx
sania458451
Ā 
OS Unit-1 Types of AWSM packages and code script awsm1c2.pptxOS.pdf
OS Unit-1 Types of AWSM packages and code script awsm1c2.pptxOS.pdf
kumawatrakeshrk76
Ā 
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
LeahRachael
Ā 
Operating system
Operating system
chetan handa
Ā 
Operating System Components.pptx
Operating System Components.pptx
pkavithascs
Ā 
Operating system concepts
Operating system concepts
Arnav Chowdhury
Ā 
Operating system
Operating system
Neha Saxena
Ā 
os unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systems
ssuser6aef00
Ā 
Os notes
Os notes
SANTOSH RATH
Ā 
Operating system notes
Operating system notes
SANTOSH RATH
Ā 
Operating system Concepts
Operating system Concepts
RANVIJAY GAUR
Ā 
Operating system
Operating system
Amogh Rana
Ā 
Operating System-adi.pdf
Operating System-adi.pdf
Prof. Dr. K. Adisesha
Ā 
Operating Systems
Operating Systems
achal02
Ā 
Multitasking
Multitasking
iampencilbox
Ā 
Operating system
Operating system
yogitamore3
Ā 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
Ismail Mukiibi
Ā 
Os notes 1_5
Os notes 1_5
NagarajMatheswaran
Ā 
OS_Ch1
OS_Ch1
Supriya Shrivastava
Ā 
TYPES-OF-OSvnxbjxgjsjgsgjsgj gjzutsugsugsgussgj.pdf
TYPES-OF-OSvnxbjxgjsjgsgjsgj gjzutsugsugsgussgj.pdf
abhishekknpsingh7
Ā 
4-Process control block.pptx
4-Process control block.pptx
sania458451
Ā 
OS Unit-1 Types of AWSM packages and code script awsm1c2.pptxOS.pdf
OS Unit-1 Types of AWSM packages and code script awsm1c2.pptxOS.pdf
kumawatrakeshrk76
Ā 
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
LeahRachael
Ā 
Operating system
Operating system
chetan handa
Ā 
Operating System Components.pptx
Operating System Components.pptx
pkavithascs
Ā 
Operating system concepts
Operating system concepts
Arnav Chowdhury
Ā 
Operating system
Operating system
Neha Saxena
Ā 
os unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systems
ssuser6aef00
Ā 
Operating system notes
Operating system notes
SANTOSH RATH
Ā 
Operating system Concepts
Operating system Concepts
RANVIJAY GAUR
Ā 
Operating system
Operating system
Amogh Rana
Ā 
Operating Systems
Operating Systems
achal02
Ā 
Multitasking
Multitasking
iampencilbox
Ā 
Operating system
Operating system
yogitamore3
Ā 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
Ismail Mukiibi
Ā 
Ad

More from Vaibhav Khanna (20)

Information and network security 47 authentication applications
Information and network security 47 authentication applications
Vaibhav Khanna
Ā 
Information and network security 46 digital signature algorithm
Information and network security 46 digital signature algorithm
Vaibhav Khanna
Ā 
Information and network security 45 digital signature standard
Information and network security 45 digital signature standard
Vaibhav Khanna
Ā 
Information and network security 44 direct digital signatures
Information and network security 44 direct digital signatures
Vaibhav Khanna
Ā 
Information and network security 43 digital signatures
Information and network security 43 digital signatures
Vaibhav Khanna
Ā 
Information and network security 42 security of message authentication code
Information and network security 42 security of message authentication code
Vaibhav Khanna
Ā 
Information and network security 41 message authentication code
Information and network security 41 message authentication code
Vaibhav Khanna
Ā 
Information and network security 40 sha3 secure hash algorithm
Information and network security 40 sha3 secure hash algorithm
Vaibhav Khanna
Ā 
Information and network security 39 secure hash algorithm
Information and network security 39 secure hash algorithm
Vaibhav Khanna
Ā 
Information and network security 38 birthday attacks and security of hash fun...
Information and network security 38 birthday attacks and security of hash fun...
Vaibhav Khanna
Ā 
Information and network security 37 hash functions and message authentication
Information and network security 37 hash functions and message authentication
Vaibhav Khanna
Ā 
Information and network security 35 the chinese remainder theorem
Information and network security 35 the chinese remainder theorem
Vaibhav Khanna
Ā 
Information and network security 34 primality
Information and network security 34 primality
Vaibhav Khanna
Ā 
Information and network security 33 rsa algorithm
Information and network security 33 rsa algorithm
Vaibhav Khanna
Ā 
Information and network security 32 principles of public key cryptosystems
Information and network security 32 principles of public key cryptosystems
Vaibhav Khanna
Ā 
Information and network security 31 public key cryptography
Information and network security 31 public key cryptography
Vaibhav Khanna
Ā 
Information and network security 30 random numbers
Information and network security 30 random numbers
Vaibhav Khanna
Ā 
Information and network security 29 international data encryption algorithm
Information and network security 29 international data encryption algorithm
Vaibhav Khanna
Ā 
Information and network security 28 blowfish
Information and network security 28 blowfish
Vaibhav Khanna
Ā 
Information and network security 27 triple des
Information and network security 27 triple des
Vaibhav Khanna
Ā 
Information and network security 47 authentication applications
Information and network security 47 authentication applications
Vaibhav Khanna
Ā 
Information and network security 46 digital signature algorithm
Information and network security 46 digital signature algorithm
Vaibhav Khanna
Ā 
Information and network security 45 digital signature standard
Information and network security 45 digital signature standard
Vaibhav Khanna
Ā 
Information and network security 44 direct digital signatures
Information and network security 44 direct digital signatures
Vaibhav Khanna
Ā 
Information and network security 43 digital signatures
Information and network security 43 digital signatures
Vaibhav Khanna
Ā 
Information and network security 42 security of message authentication code
Information and network security 42 security of message authentication code
Vaibhav Khanna
Ā 
Information and network security 41 message authentication code
Information and network security 41 message authentication code
Vaibhav Khanna
Ā 
Information and network security 40 sha3 secure hash algorithm
Information and network security 40 sha3 secure hash algorithm
Vaibhav Khanna
Ā 
Information and network security 39 secure hash algorithm
Information and network security 39 secure hash algorithm
Vaibhav Khanna
Ā 
Information and network security 38 birthday attacks and security of hash fun...
Information and network security 38 birthday attacks and security of hash fun...
Vaibhav Khanna
Ā 
Information and network security 37 hash functions and message authentication
Information and network security 37 hash functions and message authentication
Vaibhav Khanna
Ā 
Information and network security 35 the chinese remainder theorem
Information and network security 35 the chinese remainder theorem
Vaibhav Khanna
Ā 
Information and network security 34 primality
Information and network security 34 primality
Vaibhav Khanna
Ā 
Information and network security 33 rsa algorithm
Information and network security 33 rsa algorithm
Vaibhav Khanna
Ā 
Information and network security 32 principles of public key cryptosystems
Information and network security 32 principles of public key cryptosystems
Vaibhav Khanna
Ā 
Information and network security 31 public key cryptography
Information and network security 31 public key cryptography
Vaibhav Khanna
Ā 
Information and network security 30 random numbers
Information and network security 30 random numbers
Vaibhav Khanna
Ā 
Information and network security 29 international data encryption algorithm
Information and network security 29 international data encryption algorithm
Vaibhav Khanna
Ā 
Information and network security 28 blowfish
Information and network security 28 blowfish
Vaibhav Khanna
Ā 
Information and network security 27 triple des
Information and network security 27 triple des
Vaibhav Khanna
Ā 
Ad

Recently uploaded (20)

Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
Ā 
Simplify Task, Team, and Project Management with Orangescrum Work
Simplify Task, Team, and Project Management with Orangescrum Work
Orangescrum
Ā 
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
pcprocore
Ā 
Y - Recursion The Hard Way GopherCon EU 2025
Y - Recursion The Hard Way GopherCon EU 2025
Eleanor McHugh
Ā 
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
Ā 
The Anti-Masterclass Live - Peak of Data & AI 2025
The Anti-Masterclass Live - Peak of Data & AI 2025
Safe Software
Ā 
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
WSO2
Ā 
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Technologies
Ā 
NVIDIA GPU Technologies for AI and High-Performance Computing
NVIDIA GPU Technologies for AI and High-Performance Computing
SandeepKS52
Ā 
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
Ā 
HPE Reseller in uae by numerosystom.pptx
HPE Reseller in uae by numerosystom.pptx
aadibva452
Ā 
SAP PM Module Level-IV Training Complete.ppt
SAP PM Module Level-IV Training Complete.ppt
MuhammadShaheryar36
Ā 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
Ā 
openSAP_s4h27_Week_1_2025_All_Slides.pdf
openSAP_s4h27_Week_1_2025_All_Slides.pdf
Thomas Qiao
Ā 
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
Ā 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
Ā 
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
soulamaabdoulaye128
Ā 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
Ā 
Best MLM Compensation Plans for Network Marketing Success in 2025
Best MLM Compensation Plans for Network Marketing Success in 2025
LETSCMS Pvt. Ltd.
Ā 
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
Ā 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
Ā 
Simplify Task, Team, and Project Management with Orangescrum Work
Simplify Task, Team, and Project Management with Orangescrum Work
Orangescrum
Ā 
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
pcprocore
Ā 
Y - Recursion The Hard Way GopherCon EU 2025
Y - Recursion The Hard Way GopherCon EU 2025
Eleanor McHugh
Ā 
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
Ā 
The Anti-Masterclass Live - Peak of Data & AI 2025
The Anti-Masterclass Live - Peak of Data & AI 2025
Safe Software
Ā 
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
WSO2
Ā 
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Technologies
Ā 
NVIDIA GPU Technologies for AI and High-Performance Computing
NVIDIA GPU Technologies for AI and High-Performance Computing
SandeepKS52
Ā 
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
Ā 
HPE Reseller in uae by numerosystom.pptx
HPE Reseller in uae by numerosystom.pptx
aadibva452
Ā 
SAP PM Module Level-IV Training Complete.ppt
SAP PM Module Level-IV Training Complete.ppt
MuhammadShaheryar36
Ā 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
Ā 
openSAP_s4h27_Week_1_2025_All_Slides.pdf
openSAP_s4h27_Week_1_2025_All_Slides.pdf
Thomas Qiao
Ā 
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
Ā 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
Ā 
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
soulamaabdoulaye128
Ā 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
Ā 
Best MLM Compensation Plans for Network Marketing Success in 2025
Best MLM Compensation Plans for Network Marketing Success in 2025
LETSCMS Pvt. Ltd.
Ā 
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
Ā 

Operating system 08 time sharing and multitasking operating system

  • 1. Operating System 08 Multi-processing Time sharing and Multitasking OS Prof Neeraj Bhargava Vaibhav Khanna Department of Computer Science School of Engineering and Systems Sciences Maharshi Dayanand Saraswati University Ajmer
  • 2. Multiprogramming Operating System • The objective of a multiprogramming operating system is to increase the system utilization efficiency. • The batch processing system tries to reduce the CPU idle time through operator interaction. However, it cannot reduce the idle time due to IO operations. • So, when some IO is being performed by the currently executing job of a batch, the CPU sits idle without any work to do. • Thus, the multiprogramming operating system tries to eliminate such idle times by providing multiple computational tasks for the CPU to perform. • This is achieved by keeping multiple jobs in the main store. • So, when the job that is being currently executed on the CPU needs some IO, the CPU passes its requirement over to the IO processor. • Till the time the IO operation is being carried out, the CPU is free to carry out some other job.
  • 3. Time Sharing or Multitasking System • Time sharing, or multitasking, is a logical extension of multiprogramming. • Multiple jobs are executed by the CPU switching between them, but the switches occur so frequently that the users may interact with each program while it is running. • An interactive, or hands-on, computer system provides on-line communication between the user and the system. • The user gives instructions to the operating system or to a program directly, and receives an immediate response.
  • 4. Time Sharing or Multitasking System : File Management • If users are to be able to access both data and code conveniently, an on-line file system must be available. A file is a collection of related information defined by its creator. • Commonly, files represent programs (both source and object forms) and data. • The operating system implements the abstract concept of a file by managing mass-storage devices, such disks. • Files are normally organized into logical clusters, or directories, which make them easier to locate and access. • Since multiple users have access to files, it is desirable to control by whom and in what ways files may be accessed.
  • 5. Time Sharing or Multitasking System : Interactive jobs • Batch systems are appropriate for executing large jobs that need little interaction. • The user can submit jobs and return later for the results; it is not necessary for the user to wait while the job is processed. • Interactive jobs tend to be composed of many short actions, where the results of the next command may be unpredictable. • The user submits the command and then waits for the results. Accordingly, the response time should be short—on the order of seconds at most. • An interactive system is used when a short response time is required. • Time-sharing systems were developed to provide interactive use of a computer system at a reasonable cost. • A time-shared operating system uses CPU scheduling and multiprogramming to provide each user with a small portion of a time-shared computer.
  • 6. Time Sharing or Multitasking System : Process Management • Each user has at least one separate program in memory. • A program that is loaded into memory and is executing is commonly referred to as a process. • When a process executes, it typically executes for only a short time before it either finishes or needs to perform I/O. • I/O may be interactive; that is, output is to a display for the user and input is from a user keyboard. • A time-shared operating system allows the many users to share the computer simultaneously. • Since each action or command in a time-shared system tends to be short, only a little CPU time is needed for each user.
  • 7. Time Sharing or Multitasking System : Memory Management • Time-sharing operating systems are even more complex than are multi-programmed operating systems. • As in multiprogramming, several jobs must be kept simultaneously in memory, which requires some form of memory management and protection. • So that a reasonable response time can be obtained, jobs may have to be swapped in and out of main memory. • As the system switches rapidly from one user to the next, each user is given the impression that she has her own computer, whereas actually one computer is being shared among many users.
  • 8. Multi- Processing or Parallel Systems • Most systems to date are single-processor systems; that is, they have only one main CPU. However, there is a trend toward multiprocessor systems. • Such systems have more than one processor in close communication, sharing the computer bus, the clock, and sometimes memory and peripheral devices. • These systems are referred to as tightly coupled systems. • There are several reasons for building such systems such as increased throughput, lower cost, increased reliability, fault tolerance. • The Tandem system uses both hardware and software duplication to ensure continued operation despite faults
  • 9. Multiprogramming Vs Multiprocessing Vs Multitasking • The words multiprogramming, multiprocessing and multitasking are often confused. There are, of course, some distinctions between these similar, but distinct terms. The term multiprogramming refers to the situation in which a single CPU divides its time between more than one job. Time sharing is a special case of multiprogramming, where a single CPU serves a number of users at interactive terminals. In multiprocessing, multiple CPUs perform more than one job at one time. Multiprogramming and multiprocessing are not mutually exclusive. Some mainframes and supermini computers have multiple CPUs each of which can juggle several jobs. The term multitasking is described any system that runs or appears to run more than one application program one time. An effective multitasking environment must provide many services both to the user and to the application program it runs. The most important of these are resource management which divides the computers time, memory and peripheral devices among competing tasks and interprocess communication, which lets tasking coordinate their activities by exchanging information
  • 10. Assignment • Explain Time sharing Operating Systems • Briefly describe multi programming and multi- processing OS