SlideShare a Scribd company logo
10
Most read
12
Most read
13
Most read
Basics of Operating Systems
         : Multiprogramming & Time Sharing




                                             1
Recap

In the last class, you have learnt about
• Spooling

• Buffering




                                           2
Objectives

On completion of this period, you would be able to
know


• Multiprogramming

• Time Sharing




                                                     3
Multiprogramming

• A program under execution is called a process

• Serial execution of the program causes either the process or
  I/O devices to be ideal at some time even if the input job
  stream is never empty – a problem ( refer next slide )
• Solution to this problem is to assign some other work to the
  processor and I/O devices when they are idle
• Allow programs to execute concurrently by assigning pending
  work to under utilized components

                                                               4
Example

                     Program 1                       Program 2




        P1   IDLE     P1   IDLE     P1   P2   IDLE    P2   IDLE   P2
                                                                       Time

Processor Activity
                                  Multi Programming


                                                                         5
Multiprogramming
• Previous Figure illustrates a possible scenario of concurrent
  execution of the two programs
• It starts with the processor executing the first computational
  sequence program 1
• Instead of idling during the I/O sequence of program 1, the
  processor is assigned to the first computation sequence of
  the program 2, which is assumed to be in memory and
  awaiting for execution
• When this work is done, the processor is assigned to
  program 1 again, then to program 2, and so forth
                                                              6
Multiprogramming (Contd..)

• Performance of processor may be improved by
  interleaved execution of programs
• With a single processor, parallel execution of
  program is not possible, and at most one program
  can be in control of the processor at any time



                                                     7
Multiprogramming (Contd..)

• It achieves 100% processor utilization with only two
  active programs
• Multiprogramming has been employed to increase
  resource utilization of a computer system and to
  support multiple, simultaneously active users



                                                     8
Multiprogramming (Contd..)
• Multiprogramming system is provided by time
  sharing systems found in many university
  computer centers
• Time sharing systems support multiple interactive
  users
• System and user programs, as well as data, are
  kept on the secondary storage which is managed
  by the file system
                                                   9
Time sharing

• Time sharing is the logical extension of
  Multiprogramming
• Time sharing systems executes multiple jobs by
  switching among them ( refer next slide )
• Switches occurs frequently so that the user can
  interact with each program while it is running
• Each program executes for a fixed time quantum
                                                    10
Example



                                          Program 1


                                          Program 2


P1   P2   P1   P2    P1   P2       Time

                    Time Sharing


                                                      11
Timesharing (Contd..)
• Time sharing requires an interactive computer
  system
     • i.e. direct communication between the user and the
         system

• Time sharing OS allows many users to share the
  computer simultaneously
• Each action or command in a time shared system is
  short, only a little of CPU time is required for each
  user                                                  12
Timesharing (Contd..)

• The system switches rapidly from one user to
  the next
• User gets the impression that the entire system
  is dedicated to his use
• Time shared operating system uses CPU
  scheduling and Multiprogramming to provide
     • each user with a small portion of a time-shared
       system
                                                         13
Frequently Asked Questions

• Explain Multiprogramming systems

• Explain Time Sharing systems




                                     14
Quiz

• Programs are developed and executed in the
  interactive mode
 Yes
 No




                                               15
Quiz

• A program in execution is called process

  Yes

  No




                                             16
Click here to see
Operating Systems
Basics of Operating Systems
Definition of Operating Systems
1.4 Know about concept of spooling and
buffering ppt


Other subject materials

   •   Web designing
   •   Micro processors
   •   C++ tutorials
   •   java

   home                                  17

More Related Content

PPT
CPU Scheduling Algorithms
PPTX
Distributed Operating Systems
PDF
Semaphores
PPTX
Batch operating system
PPTX
Types of operating system
PPTX
SCHEDULING ALGORITHMS
PPTX
Operating system critical section
PPT
Operating system services 9
CPU Scheduling Algorithms
Distributed Operating Systems
Semaphores
Batch operating system
Types of operating system
SCHEDULING ALGORITHMS
Operating system critical section
Operating system services 9

What's hot (20)

PPTX
PDF
OS - Process Concepts
PPTX
Process synchronization in Operating Systems
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPTX
Inter Process Communication
PPTX
Process management os concept
PPTX
Introduction to Distributed System
PPTX
Operating system; Multitasking
PPTX
Threads (operating System)
PPTX
Operating system 11 system calls
PDF
Multithreading
ODP
Distributed operating system(os)
PPTX
Deadlock- Operating System
PPTX
Process state in OS
PPTX
Computer organization
PPTX
I/O Management
PPTX
Process in operating system
PPTX
Concurrency control
PPTX
cpu scheduling
PPT
System call
OS - Process Concepts
Process synchronization in Operating Systems
INTER PROCESS COMMUNICATION (IPC).pptx
Inter Process Communication
Process management os concept
Introduction to Distributed System
Operating system; Multitasking
Threads (operating System)
Operating system 11 system calls
Multithreading
Distributed operating system(os)
Deadlock- Operating System
Process state in OS
Computer organization
I/O Management
Process in operating system
Concurrency control
cpu scheduling
System call
Ad

Viewers also liked (20)

PPTX
Multiprogramming&timesharing
PPT
Introduction to Operating System
PPTX
Operating Systems
PPT
Presentation on operating system
PPTX
Functions Of Operating Systems
PPTX
Operating system overview concepts ppt
PDF
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
PPTX
Operating system
PPTX
Introduction to Parallel and Distributed Computing
PDF
8085 interrupts
PPTX
Operating systems Overview
PPT
Distributed & parallel system
PPTX
selective inventory control
PPTX
Multitasking
PPTX
Operating System - Types Of Operating System Unit-1
PPS
Functions Of Operating System
PPTX
Types of Operating System
PPTX
Operating system and its function
DOC
Techniques of inventory control
PPTX
types of operating system
Multiprogramming&timesharing
Introduction to Operating System
Operating Systems
Presentation on operating system
Functions Of Operating Systems
Operating system overview concepts ppt
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Operating system
Introduction to Parallel and Distributed Computing
8085 interrupts
Operating systems Overview
Distributed & parallel system
selective inventory control
Multitasking
Operating System - Types Of Operating System Unit-1
Functions Of Operating System
Types of Operating System
Operating system and its function
Techniques of inventory control
types of operating system
Ad

Similar to 6 multiprogramming & time sharing (20)

PDF
6multiprogrammingtimesharing 130112050125-phpapp01
PPTX
OPERATING SYSTEM UNIT-1 [Autosaved].pptx
PDF
operating system S6 ktu physics and computer application
PPTX
AOS_Module_4ssssssssssssssssssssssss.pptx
PPTX
Evolution, Strutcture and Operations.pptx
PPTX
Operating system 08 time sharing and multitasking operating system
PPT
digital data processing types of OS utility.ppt
PDF
Operating System
PPTX
Lecture 2 Processes in operating systems.pptx
PPTX
Types of Operating System
PPTX
Nt introduction(os)
PDF
Operating System Overview.pdf
PPTX
Operating system
PPTX
Processes and operating systems
PPTX
CHAP4.pptx
PDF
Unit I OS.pdf
PDF
Operating System
PPTX
evolution of operating system of unit i.pptx
PDF
Engg-0505-IT-Operating-Systems-2nd-year.pdf
6multiprogrammingtimesharing 130112050125-phpapp01
OPERATING SYSTEM UNIT-1 [Autosaved].pptx
operating system S6 ktu physics and computer application
AOS_Module_4ssssssssssssssssssssssss.pptx
Evolution, Strutcture and Operations.pptx
Operating system 08 time sharing and multitasking operating system
digital data processing types of OS utility.ppt
Operating System
Lecture 2 Processes in operating systems.pptx
Types of Operating System
Nt introduction(os)
Operating System Overview.pdf
Operating system
Processes and operating systems
CHAP4.pptx
Unit I OS.pdf
Operating System
evolution of operating system of unit i.pptx
Engg-0505-IT-Operating-Systems-2nd-year.pdf

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Hibernate example1
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
Starting jdbc

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Basic Mud Logging Guide for educational purpose
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Sports Quiz easy sports quiz sports quiz
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
RMMM.pdf make it easy to upload and study
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Basic Mud Logging Guide for educational purpose
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Anesthesia in Laparoscopic Surgery in India
Pre independence Education in Inndia.pdf
Pharma ospi slides which help in ospi learning
FourierSeries-QuestionsWithAnswers(Part-A).pdf
GDM (1) (1).pptx small presentation for students
TR - Agricultural Crops Production NC III.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Sports Quiz easy sports quiz sports quiz
STATICS OF THE RIGID BODIES Hibbelers.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Insiders guide to clinical Medicine.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Computing-Curriculum for Schools in Ghana
RMMM.pdf make it easy to upload and study
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

6 multiprogramming & time sharing

  • 1. Basics of Operating Systems : Multiprogramming & Time Sharing 1
  • 2. Recap In the last class, you have learnt about • Spooling • Buffering 2
  • 3. Objectives On completion of this period, you would be able to know • Multiprogramming • Time Sharing 3
  • 4. Multiprogramming • A program under execution is called a process • Serial execution of the program causes either the process or I/O devices to be ideal at some time even if the input job stream is never empty – a problem ( refer next slide ) • Solution to this problem is to assign some other work to the processor and I/O devices when they are idle • Allow programs to execute concurrently by assigning pending work to under utilized components 4
  • 5. Example Program 1 Program 2 P1 IDLE P1 IDLE P1 P2 IDLE P2 IDLE P2 Time Processor Activity Multi Programming 5
  • 6. Multiprogramming • Previous Figure illustrates a possible scenario of concurrent execution of the two programs • It starts with the processor executing the first computational sequence program 1 • Instead of idling during the I/O sequence of program 1, the processor is assigned to the first computation sequence of the program 2, which is assumed to be in memory and awaiting for execution • When this work is done, the processor is assigned to program 1 again, then to program 2, and so forth 6
  • 7. Multiprogramming (Contd..) • Performance of processor may be improved by interleaved execution of programs • With a single processor, parallel execution of program is not possible, and at most one program can be in control of the processor at any time 7
  • 8. Multiprogramming (Contd..) • It achieves 100% processor utilization with only two active programs • Multiprogramming has been employed to increase resource utilization of a computer system and to support multiple, simultaneously active users 8
  • 9. Multiprogramming (Contd..) • Multiprogramming system is provided by time sharing systems found in many university computer centers • Time sharing systems support multiple interactive users • System and user programs, as well as data, are kept on the secondary storage which is managed by the file system 9
  • 10. Time sharing • Time sharing is the logical extension of Multiprogramming • Time sharing systems executes multiple jobs by switching among them ( refer next slide ) • Switches occurs frequently so that the user can interact with each program while it is running • Each program executes for a fixed time quantum 10
  • 11. Example Program 1 Program 2 P1 P2 P1 P2 P1 P2 Time Time Sharing 11
  • 12. Timesharing (Contd..) • Time sharing requires an interactive computer system • i.e. direct communication between the user and the system • Time sharing OS allows many users to share the computer simultaneously • Each action or command in a time shared system is short, only a little of CPU time is required for each user 12
  • 13. Timesharing (Contd..) • The system switches rapidly from one user to the next • User gets the impression that the entire system is dedicated to his use • Time shared operating system uses CPU scheduling and Multiprogramming to provide • each user with a small portion of a time-shared system 13
  • 14. Frequently Asked Questions • Explain Multiprogramming systems • Explain Time Sharing systems 14
  • 15. Quiz • Programs are developed and executed in the interactive mode Yes No 15
  • 16. Quiz • A program in execution is called process Yes No 16
  • 17. Click here to see Operating Systems Basics of Operating Systems Definition of Operating Systems 1.4 Know about concept of spooling and buffering ppt Other subject materials • Web designing • Micro processors • C++ tutorials • java home 17