SlideShare a Scribd company logo
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

What's hot

Multithreading
MultithreadingMultithreading
Multithreading
A B Shinde
 
Operating Systems: Process Scheduling
Operating Systems: Process SchedulingOperating Systems: Process Scheduling
Operating Systems: Process Scheduling
Damian T. Gordon
 
Multiprogramming&timesharing
Multiprogramming&timesharingMultiprogramming&timesharing
Multiprogramming&timesharingTanuj Tyagi
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
usmankiyani1
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
Mohamed Loey
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
Prakhar Maurya
 
System calls
System callsSystem calls
System calls
Bernard Senam
 
Distributed System ppt
Distributed System pptDistributed System ppt
Virtual memory
Virtual memoryVirtual memory
Virtual memoryAnuj Modi
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
Mukesh Chinta
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
priyadeosarkar91
 
Context switching
Context switchingContext switching
Context switching
DarakhshanNayyab
 
Foult Tolerence In Distributed System
Foult Tolerence In Distributed SystemFoult Tolerence In Distributed System
Foult Tolerence In Distributed SystemRajan Kumar
 
Parallel computing
Parallel computingParallel computing
Parallel computing
Vinay Gupta
 
Naming in Distributed System
Naming in Distributed SystemNaming in Distributed System
Naming in Distributed System
MNM Jain Engineering College
 
Multithreading models.ppt
Multithreading models.pptMultithreading models.ppt
Multithreading models.ppt
Luis Goldster
 
Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)
Experts Desk
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
Dr Sandeep Kumar Poonia
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
Wayne Jones Jnr
 

What's hot (20)

Multithreading
MultithreadingMultithreading
Multithreading
 
Operating Systems: Process Scheduling
Operating Systems: Process SchedulingOperating Systems: Process Scheduling
Operating Systems: Process Scheduling
 
Booting
BootingBooting
Booting
 
Multiprogramming&timesharing
Multiprogramming&timesharingMultiprogramming&timesharing
Multiprogramming&timesharing
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
System calls
System callsSystem calls
System calls
 
Distributed System ppt
Distributed System pptDistributed System ppt
Distributed System ppt
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
Context switching
Context switchingContext switching
Context switching
 
Foult Tolerence In Distributed System
Foult Tolerence In Distributed SystemFoult Tolerence In Distributed System
Foult Tolerence In Distributed System
 
Parallel computing
Parallel computingParallel computing
Parallel computing
 
Naming in Distributed System
Naming in Distributed SystemNaming in Distributed System
Naming in Distributed System
 
Multithreading models.ppt
Multithreading models.pptMultithreading models.ppt
Multithreading models.ppt
 
Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
 

Viewers also liked

Types of operating system
Types of operating systemTypes of operating system
Types of operating system
Mohammad Alam
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating Systempriya_sinha02
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
Akshay Kurup
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
RajendraPrasad Alladi
 
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time SystemsSara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
knowdiff
 
Operating system
Operating systemOperating system
Operating system
himanshu garg
 
Introduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingIntroduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed Computing
Sayed Chhattan Shah
 
Batch operating system
Batch operating system Batch operating system
Batch operating system
Dilouar Hossain
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsIsha Negi
 
Operating systems Overview
Operating systems OverviewOperating systems Overview
Operating systems Overview
NAILBITER
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel systemManish Singh
 
selective inventory control
 selective inventory control selective inventory control
selective inventory controlHimani Chowhan
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
Dinesh Modak
 
Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1
abhinav baba
 
Functions Of Operating System
Functions Of Operating SystemFunctions Of Operating System
Functions Of Operating System
Dr.Suresh Isave
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
Hemant Raj
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its functionNikhi Jain
 

Viewers also liked (20)

Types of operating system
Types of operating systemTypes of operating system
Types of operating system
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Presentation on operating system
 Presentation on operating system Presentation on operating system
Presentation on operating system
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time SystemsSara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
 
Operating system
Operating systemOperating system
Operating system
 
Introduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingIntroduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed Computing
 
Batch operating system
Batch operating system Batch operating system
Batch operating system
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
Operating systems Overview
Operating systems OverviewOperating systems Overview
Operating systems Overview
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel system
 
selective inventory control
 selective inventory control selective inventory control
selective inventory control
 
Multitasking
MultitaskingMultitasking
Multitasking
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1
 
Functions Of Operating System
Functions Of Operating SystemFunctions Of Operating System
Functions Of Operating System
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 

Similar to 6 multiprogramming & time sharing

6multiprogrammingtimesharing 130112050125-phpapp01
6multiprogrammingtimesharing 130112050125-phpapp016multiprogrammingtimesharing 130112050125-phpapp01
6multiprogrammingtimesharing 130112050125-phpapp01
Gaurav Kumar
 
Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptx
ssuser000e54
 
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
Vaibhav Khanna
 
Operating System
Operating SystemOperating System
Operating System
MdFaraz20CAB121
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
THEFPS
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
NehaTadam
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
PrashantKhobragade3
 
Operating system
Operating systemOperating system
Operating system
Sonika koul
 
Processes and operating systems
Processes and operating systemsProcesses and operating systems
Processes and operating systems
RAMPRAKASHT1
 
Unit I OS.pdf
Unit I OS.pdfUnit I OS.pdf
Unit I OS.pdf
UmaYadav45
 
Operating System
Operating SystemOperating System
Operating System
Hitesh Mohapatra
 
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
nikhil287188
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
FahanaAbdulVahab
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
VAIBHAVSAHU55
 
os ass.pptx
os ass.pptxos ass.pptx
os ass.pptx
kavinaya9
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
Prakash Sir
 
Mainframe systems
Mainframe systemsMainframe systems
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works.
Fahad Farooq
 

Similar to 6 multiprogramming & time sharing (20)

6multiprogrammingtimesharing 130112050125-phpapp01
6multiprogrammingtimesharing 130112050125-phpapp016multiprogrammingtimesharing 130112050125-phpapp01
6multiprogrammingtimesharing 130112050125-phpapp01
 
Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptx
 
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
Operating SystemOperating System
Operating System
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
 
Operating system
Operating systemOperating system
Operating system
 
Processes and operating systems
Processes and operating systemsProcesses and operating systems
Processes and operating systems
 
CHAP4.pptx
CHAP4.pptxCHAP4.pptx
CHAP4.pptx
 
Unit I OS.pdf
Unit I OS.pdfUnit I OS.pdf
Unit I OS.pdf
 
Operating System
Operating SystemOperating System
Operating System
 
8
88
8
 
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 Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
 
os ass.pptx
os ass.pptxos ass.pptx
os ass.pptx
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
 
Mainframe systems
Mainframe systemsMainframe systems
Mainframe systems
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works.
 

More from myrajendra

Fundamentals
FundamentalsFundamentals
Fundamentals
myrajendra
 
Data type
Data typeData type
Data type
myrajendra
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
myrajendra
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
myrajendra
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
myrajendra
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
myrajendra
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
myrajendra
 
Dao example
Dao exampleDao example
Dao example
myrajendra
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
myrajendra
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to htmlmyrajendra
 
Views
ViewsViews
Views
myrajendra
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Recently uploaded

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 

Recently uploaded (20)

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 

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