SlideShare a Scribd company logo
1 of 17
Download to read offline
1
Basics of Operating Systems
: Multiprogramming & Time Sharing
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
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
Example
5
Program 1 Program 2
P1 IDLE P1 P1IDLE IDLEIDLEP2 P2 P2
Processor Activity
Time
Multi Programming
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
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
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
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
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
11
P1P1 P1P2 P2 P2
Program 1
Program 2
Time
Time Sharing
Example
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
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
14
Frequently Asked Questions
• Explain Multiprogramming systems
• Explain Time Sharing systems
15
Quiz
• Programs are developed and executed in the
interactive mode
Yes
No
16
Quiz
• A program in execution is called process
Yes
No
17
Click here to see
Operating Systems
Basics of Operating Systems
Definition of Operating Systems
Other subject materials
• Web designing
• Micro processors
• C++ tutorials
• java
home
1.4 Know about concept of spooling and
buffering ppt

More Related Content

What's hot

Os presentation process
Os presentation processOs presentation process
Os presentation process
Naseer Ahmad
 
5. spooling and buffering
5. spooling and buffering 5. spooling and buffering
5. spooling and buffering
myrajendra
 
Operating system interview question
Operating system interview questionOperating system interview question
Operating system interview question
sriram saravanan
 
Os solved question paper
Os solved question paperOs solved question paper
Os solved question paper
Ankit Bhatnagar
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts
Alanisca Alanis
 
Operating system introducton and tyes
Operating system introducton and tyesOperating system introducton and tyes
Operating system introducton and tyes
Nancy Verma
 

What's hot (20)

Os presentation process
Os presentation processOs presentation process
Os presentation process
 
Lecture 2 process
Lecture 2   processLecture 2   process
Lecture 2 process
 
5. spooling and buffering
5. spooling and buffering 5. spooling and buffering
5. spooling and buffering
 
Processes and operating systems
Processes and operating systemsProcesses and operating systems
Processes and operating systems
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its concepts
 
Process in operating system
Process in operating systemProcess in operating system
Process in operating system
 
Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)
 
Operating system
Operating systemOperating system
Operating system
 
Unit 1 operating system
Unit 1 operating systemUnit 1 operating system
Unit 1 operating system
 
3 process management
3 process management3 process management
3 process management
 
Operating Systems 1 (6/12) - Processes
Operating Systems 1 (6/12) - ProcessesOperating Systems 1 (6/12) - Processes
Operating Systems 1 (6/12) - Processes
 
Bca i-fundamental of computer-u-3-functions operating systems
Bca  i-fundamental of  computer-u-3-functions operating systemsBca  i-fundamental of  computer-u-3-functions operating systems
Bca i-fundamental of computer-u-3-functions operating systems
 
Operating system interview question
Operating system interview questionOperating system interview question
Operating system interview question
 
OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)
 
Unit II - 1 - Operating System Process
Unit II - 1 - Operating System ProcessUnit II - 1 - Operating System Process
Unit II - 1 - Operating System Process
 
Os solved question paper
Os solved question paperOs solved question paper
Os solved question paper
 
Operating system 08 time sharing and multitasking operating system
Operating system 08 time sharing and multitasking operating systemOperating system 08 time sharing and multitasking operating system
Operating system 08 time sharing and multitasking operating system
 
Operating system || Chapter 3: Process
Operating system || Chapter 3: ProcessOperating system || Chapter 3: Process
Operating system || Chapter 3: Process
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts
 
Operating system introducton and tyes
Operating system introducton and tyesOperating system introducton and tyes
Operating system introducton and tyes
 

Similar to 6multiprogrammingtimesharing 130112050125-phpapp01

Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptx
ssuser000e54
 
Multiprogramming&timesharing
Multiprogramming&timesharingMultiprogramming&timesharing
Multiprogramming&timesharing
Tanuj Tyagi
 

Similar to 6multiprogrammingtimesharing 130112050125-phpapp01 (20)

Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptx
 
Mainframe systems
Mainframe systemsMainframe systems
Mainframe systems
 
Multiprogramming&timesharing
Multiprogramming&timesharingMultiprogramming&timesharing
Multiprogramming&timesharing
 
Real Time Kernels and Operating Systems.pptx
Real Time Kernels and Operating Systems.pptxReal Time Kernels and Operating Systems.pptx
Real Time Kernels and Operating Systems.pptx
 
Operating system
Operating systemOperating system
Operating system
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating System
 
Lecture- 2_Process Management.pdf
Lecture- 2_Process Management.pdfLecture- 2_Process Management.pdf
Lecture- 2_Process Management.pdf
 
os ass.pptx
os ass.pptxos ass.pptx
os ass.pptx
 
Operating system
Operating systemOperating system
Operating system
 
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdfEngg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdf
 
Operating System
Operating SystemOperating System
Operating System
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
 
Operating System
Operating SystemOperating System
Operating System
 
Os notes 1_5
Os notes 1_5Os notes 1_5
Os notes 1_5
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
 
Ch3 processes
Ch3   processesCh3   processes
Ch3 processes
 
Types of operating system.................
Types of operating system.................Types of operating system.................
Types of operating system.................
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 scheduling
 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 

Recently uploaded (20)

💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 

6multiprogrammingtimesharing 130112050125-phpapp01

  • 1. 1 Basics of Operating Systems : Multiprogramming & Time Sharing
  • 2. Recap In the last class, you have learnt about • Spooling • Buffering 2
  • 3. 3 Objectives On completion of this period, you would be able to know • Multiprogramming • Time Sharing
  • 4. 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
  • 5. Example 5 Program 1 Program 2 P1 IDLE P1 P1IDLE IDLEIDLEP2 P2 P2 Processor Activity Time Multi Programming
  • 6. 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
  • 7. 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
  • 8. 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
  • 9. 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
  • 10. 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
  • 11. 11 P1P1 P1P2 P2 P2 Program 1 Program 2 Time Time Sharing Example
  • 12. 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
  • 13. 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
  • 14. 14 Frequently Asked Questions • Explain Multiprogramming systems • Explain Time Sharing systems
  • 15. 15 Quiz • Programs are developed and executed in the interactive mode Yes No
  • 16. 16 Quiz • A program in execution is called process Yes No
  • 17. 17 Click here to see Operating Systems Basics of Operating Systems Definition of Operating Systems Other subject materials • Web designing • Micro processors • C++ tutorials • java home 1.4 Know about concept of spooling and buffering ppt