SlideShare a Scribd company logo
TITLE: MULTI-PROGRAMMING/MULTI-TASKING
DONE BY:
KAVINAYA.J
HARIHARAN.M
SATHYANARAYAN
Table of content
1. Introduction to multi-programming and multi-
tasking
10. Working process of multi-tasking
2. What is multi-programming 11. Activities related to multi-tasking
3. Working process of multi-programming 12. Types of multi-tasking
4. Components of multi-programming 13. Characteristics of a Multi-Tasking
5. Examples of multi-programming 14. Examples of multitasking
6. Advantages of multi-programming 15. Advantages of multi-tasking
7. Disadvantages of multi-programming 16. Disadvantages of multi-tasking
8. What is multi-tasking 17. Comparison between multi-tasking and multi-
programming
9. Then vs Now 18. Reference
MULTI-PROGRAMMING:
Multiprogramming means executing more than one program. When one program
is waiting for I/O transfer, another program is executed on the CPU. In this way, the
computer is able to handle multiple tasks or programs simultaneously. Hence,
multiprogramming is also known as multi-tasking.
MULTITASKING:
Multitasking Operating System provides the interface for executing the multiple
program tasks by single user at a same time on one computer system. The term
multitasking, when paired with an operating system, refers to the users being allowed to
accomplish more than one computative task, for instance: allowing the user to perform
more than one task on an application program at a given time.
 To overcome the problem of under utilization of cpu and main memory that why
multi-programming introduced.
 Multi-programming operating system that execute more than one jobs using
single processor computer.
 Only one program at a time is able to execute at the cpu for execution.
 If program has to wait for an input & output transfer, then other jobs utilize the
cpu.
 The primary components of multi-programming are processor, file system,
input & output control system and transient area.
• In this picture Job A ,Job B and
Job c present in the main memory
the os take one job and executing
it.
• Job a requires input & output
operation, then os simply switch
over to job B
• If job B requires input & output
then it again it switch to job C.
• If there is no jobs after job C the
cpu will pass it control back to
previous job.
Working process
 processor
 File system
 Input & output control system
 Transient area
 User can use ms-word, download apps, transfer data form one point to another
point and more at a same time.
 Windows operating system.
 Unix operating system.
Multi-tasking
A multitasking operating system
is capable of executing several
programs simultaneously.
Multi-user
A multi-user operating enables several
users to share processing time on one
powerful central computer throung
different terminals.
 To increases cpu utilization and it never gets idel.
 Resources are utilized smartly.
 Less response time.
 Shorts time jobs are done fastest compare to long time jobs.
 It hep to run various jobs in a single application simultaneously.
 Various users may use the multi-programming system at once.
 It helps to optimize the total job throughput of the computer.
 Cpu scheduling is needed.
 Memory management is required because all type of jobs are stored in the main
memory.
 It contain massive load of jobs then its long time jobs have to need long
waiting time.
 It is highly complex.
 It is highly sophisticated.
 Multi-tasking term used in a modern computer system.
 It is also known as time sharing operating system.
 It is logical extension of a multiprogramming system that execution of multiple
program simultaneously.
 It allow a user to perform more than one computer task simultaneously.
 For example, any editing task can be performed while other program are
executing.
 User can open gmail and power point at same time.
 Multiple tasks are also known as processes that share similar processing
resources like a cpu.
Then
 Multitasking of Microsoft Windows 1.01
released in 1985, here shown running the MS-
DOS Executive and Calculator programs
Now
 Modern desktop operating systems are
capable of handling large numbers of different
processes at the same time. This screenshot
shows Linux Mint running simultaneously Xfce
desktop environment, Firefox, a calculator
program, the built-in calendar, Vim, GIMP, and
VLC media player.
Ms word music chrome
Operating system
Cpu
 Processes are assigned specific
quantum of time
 Example lets assign time quantum is 4
nano seconds so cpu can execute first
process for 4 nano seconds
 Then move to next process which also
will be execute 4 nano second.
 Time quantum is the period of time for
which a process is allowed to run.
 Multi-tasking operating system
switching so fast like all process are
running parallel.
 So user can able to work on multiple
program
 Initially the user will give instructions to the operating system or to a
program/application directly, and they will receive an immediate response.
 To display this quick response, the operating system handles multitasking by
“slicing” some of the processors operating capability to that program.
Preemptive
 Preemptive multitasking is special
task that is assigned to computer.
 It take decision that how much time
spent by one task before assigning
other task
 Operating system has control for
completing this entire process so it is
known as preemptive
cooperative multitasking
 Cooperative multitasking Is known
as non-preemptive multitasking.
 Main goal of cooperative
multitasking is to run task and to
release the cpu to allow another task
run.
 This task is performed by calling
taskyield().
 Context switch is executed when this
function is called.
 Context Switch
 Hardware Interruption
 Time-Sharing
 Real-time
 Multithreading
 Multiprocessing
 Memory swap & Multitask operating systems utilise the use of memory swapping
 Memory Protection
 Windows Xp
 Windows 7
 Windows 8
 Windows 10
 Windows 2000
 Ibm os/390
 Linux
 unix
 Time shareable:
 All tasks are allocate specific piece of time so they do not need for waiting time.
 Manage several users : this operating system is more comfort for handling the multiple
users concurrently and several programs can run smoothly.
 Secured memory: Multitasking operating system has well defined memory management
because this operating system does not provide any type of permission of unwanted
programs to wasting the memory.
 Multitasking operating system create the better environment to execute the background
 Every user can operate single or multiple programs with smoothly.
 User can operate multiple programs such as internet, powerpoint, ms excel,games and
other concurrently.
 Reliability problems.
 One must have to take care of security and integrity of user programs and data.
 Data communication problem.
 Multiple processors become buier at a time for executing any task in multitasking
nature so cpu produces more heat.
 It response time can increase while handling multiple programs.need better
processing power to overcome this problem.
Features Multiprogramming Multitasking
Basic It allows multiple programs to utilize the CPU
simultaneously.
A supplementary of the
multiprogramming system also
allows for user interaction.
Mechanism Based on the context switching mechanism. Based on the time-sharing
mechanism.
Objective It is useful for reducing/decreasing CPU idle time and
increasing throughput as much as possible.
It is useful for running multiple
processes at the same time,
effectively increasing CPU and
system throughput.
Execution When one job or process completes its execution or
switches to an I/O task in a multi-programmed system, the
system momentarily suspends that process. It selects
another process from the process scheduling pool (waiting
queue) to run.
In a multiprocessing system,
multiple processes can operate
simultaneously by allocating the
CPU for a fixed amount of time.
CPU Switching In a multiuser environment, the CPU switches between
programs/processes quickly.
In a single-user environment, the
CPU switches between the
processes of various programs.
Timing It takes maximum time to execute the process. It takes minimum time to execute
the process.
COMPARISON BETWEEN MUTITASKING AND MUTIPROGRAMMING:
REFERNCE LINKS:
https://digitalthinkerhelp.com/what-is-multitasking-operating-system-with-
their-examples-types/
https://digitalthinkerhelp.com/what-is-multitasking-operating-system-with-
their-examples-types/
https://www.tutorialspoint.com/what-is-a-multiprogramming-operating-
system#:~:text=Multiprogramming%20OS%20is%20an%20ability,at%20one%2
0point%20of%20time
https://www.javatpoint.com/multiprogramming-vs-multitasking
VEDIO LINKS:
https://youtu.be/fhhc_bjgiuA

More Related Content

Similar to os ass.pptx

Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating system
Jayesh Chauhan
 
Unit v
Unit vUnit v
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
 
types of operating system
types of operating systemtypes of operating system
types of operating system
Mahira Rashdi
 
Software concepts
Software concepts Software concepts
Software concepts
Prof. Dr. K. Adisesha
 
Mainframe systems
Mainframe systemsMainframe systems
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
Shivammittal880395
 
1 types of operating system
1 types of operating system1 types of operating system
1 types of operating system
MrsNunn
 
1 types of operating system
1 types of operating system1 types of operating system
1 types of operating system
MrsNunn
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
THEFPS
 
Untitled presentation.pdf
Untitled presentation.pdfUntitled presentation.pdf
Untitled presentation.pdf
RakeshGupta799000
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
Krupali Mistry
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
Ismail Mukiibi
 
operating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptoperating system for computer engineering ch3.ppt
operating system for computer engineering ch3.ppt
gezaegebre1
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
FellowBuddy.com
 
Chapter 5
Chapter 5Chapter 5
Process Control Block (PCB) print 4.pdf
Process Control Block  (PCB) print 4.pdfProcess Control Block  (PCB) print 4.pdf
Process Control Block (PCB) print 4.pdf
fentahunmuluye23
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf
rohitbaweja26
 
MYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxMYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptx
ArjayBalberan1
 
Operatingsystems lecture2
Operatingsystems lecture2Operatingsystems lecture2
Operatingsystems lecture2
Gaurav Meena
 

Similar to os ass.pptx (20)

Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating system
 
Unit v
Unit vUnit v
Unit v
 
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
 
types of operating system
types of operating systemtypes of operating system
types of operating system
 
Software concepts
Software concepts Software concepts
Software concepts
 
Mainframe systems
Mainframe systemsMainframe systems
Mainframe systems
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
1 types of operating system
1 types of operating system1 types of operating system
1 types of operating system
 
1 types of operating system
1 types of operating system1 types of operating system
1 types of operating system
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
 
Untitled presentation.pdf
Untitled presentation.pdfUntitled presentation.pdf
Untitled presentation.pdf
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
 
operating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptoperating system for computer engineering ch3.ppt
operating system for computer engineering ch3.ppt
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Process Control Block (PCB) print 4.pdf
Process Control Block  (PCB) print 4.pdfProcess Control Block  (PCB) print 4.pdf
Process Control Block (PCB) print 4.pdf
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf
 
MYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxMYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptx
 
Operatingsystems lecture2
Operatingsystems lecture2Operatingsystems lecture2
Operatingsystems lecture2
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
Nguyen Thanh Tu Collection
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
shreyassri1208
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
Kalna College
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
ImMuslim
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
Celine George
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 

os ass.pptx

  • 2. Table of content 1. Introduction to multi-programming and multi- tasking 10. Working process of multi-tasking 2. What is multi-programming 11. Activities related to multi-tasking 3. Working process of multi-programming 12. Types of multi-tasking 4. Components of multi-programming 13. Characteristics of a Multi-Tasking 5. Examples of multi-programming 14. Examples of multitasking 6. Advantages of multi-programming 15. Advantages of multi-tasking 7. Disadvantages of multi-programming 16. Disadvantages of multi-tasking 8. What is multi-tasking 17. Comparison between multi-tasking and multi- programming 9. Then vs Now 18. Reference
  • 3. MULTI-PROGRAMMING: Multiprogramming means executing more than one program. When one program is waiting for I/O transfer, another program is executed on the CPU. In this way, the computer is able to handle multiple tasks or programs simultaneously. Hence, multiprogramming is also known as multi-tasking. MULTITASKING: Multitasking Operating System provides the interface for executing the multiple program tasks by single user at a same time on one computer system. The term multitasking, when paired with an operating system, refers to the users being allowed to accomplish more than one computative task, for instance: allowing the user to perform more than one task on an application program at a given time.
  • 4.
  • 5.  To overcome the problem of under utilization of cpu and main memory that why multi-programming introduced.  Multi-programming operating system that execute more than one jobs using single processor computer.  Only one program at a time is able to execute at the cpu for execution.  If program has to wait for an input & output transfer, then other jobs utilize the cpu.  The primary components of multi-programming are processor, file system, input & output control system and transient area.
  • 6. • In this picture Job A ,Job B and Job c present in the main memory the os take one job and executing it. • Job a requires input & output operation, then os simply switch over to job B • If job B requires input & output then it again it switch to job C. • If there is no jobs after job C the cpu will pass it control back to previous job. Working process
  • 7.  processor  File system  Input & output control system  Transient area
  • 8.  User can use ms-word, download apps, transfer data form one point to another point and more at a same time.  Windows operating system.  Unix operating system.
  • 9. Multi-tasking A multitasking operating system is capable of executing several programs simultaneously. Multi-user A multi-user operating enables several users to share processing time on one powerful central computer throung different terminals.
  • 10.  To increases cpu utilization and it never gets idel.  Resources are utilized smartly.  Less response time.  Shorts time jobs are done fastest compare to long time jobs.  It hep to run various jobs in a single application simultaneously.  Various users may use the multi-programming system at once.  It helps to optimize the total job throughput of the computer.
  • 11.  Cpu scheduling is needed.  Memory management is required because all type of jobs are stored in the main memory.  It contain massive load of jobs then its long time jobs have to need long waiting time.  It is highly complex.  It is highly sophisticated.
  • 12.
  • 13.  Multi-tasking term used in a modern computer system.  It is also known as time sharing operating system.  It is logical extension of a multiprogramming system that execution of multiple program simultaneously.  It allow a user to perform more than one computer task simultaneously.  For example, any editing task can be performed while other program are executing.  User can open gmail and power point at same time.  Multiple tasks are also known as processes that share similar processing resources like a cpu.
  • 14. Then  Multitasking of Microsoft Windows 1.01 released in 1985, here shown running the MS- DOS Executive and Calculator programs Now  Modern desktop operating systems are capable of handling large numbers of different processes at the same time. This screenshot shows Linux Mint running simultaneously Xfce desktop environment, Firefox, a calculator program, the built-in calendar, Vim, GIMP, and VLC media player.
  • 15. Ms word music chrome Operating system Cpu  Processes are assigned specific quantum of time  Example lets assign time quantum is 4 nano seconds so cpu can execute first process for 4 nano seconds  Then move to next process which also will be execute 4 nano second.  Time quantum is the period of time for which a process is allowed to run.  Multi-tasking operating system switching so fast like all process are running parallel.  So user can able to work on multiple program
  • 16.  Initially the user will give instructions to the operating system or to a program/application directly, and they will receive an immediate response.  To display this quick response, the operating system handles multitasking by “slicing” some of the processors operating capability to that program.
  • 17. Preemptive  Preemptive multitasking is special task that is assigned to computer.  It take decision that how much time spent by one task before assigning other task  Operating system has control for completing this entire process so it is known as preemptive cooperative multitasking  Cooperative multitasking Is known as non-preemptive multitasking.  Main goal of cooperative multitasking is to run task and to release the cpu to allow another task run.  This task is performed by calling taskyield().  Context switch is executed when this function is called.
  • 18.  Context Switch  Hardware Interruption  Time-Sharing  Real-time  Multithreading  Multiprocessing  Memory swap & Multitask operating systems utilise the use of memory swapping  Memory Protection
  • 19.  Windows Xp  Windows 7  Windows 8  Windows 10  Windows 2000  Ibm os/390  Linux  unix
  • 20.  Time shareable:  All tasks are allocate specific piece of time so they do not need for waiting time.  Manage several users : this operating system is more comfort for handling the multiple users concurrently and several programs can run smoothly.  Secured memory: Multitasking operating system has well defined memory management because this operating system does not provide any type of permission of unwanted programs to wasting the memory.  Multitasking operating system create the better environment to execute the background  Every user can operate single or multiple programs with smoothly.  User can operate multiple programs such as internet, powerpoint, ms excel,games and other concurrently.
  • 21.  Reliability problems.  One must have to take care of security and integrity of user programs and data.  Data communication problem.  Multiple processors become buier at a time for executing any task in multitasking nature so cpu produces more heat.  It response time can increase while handling multiple programs.need better processing power to overcome this problem.
  • 22. Features Multiprogramming Multitasking Basic It allows multiple programs to utilize the CPU simultaneously. A supplementary of the multiprogramming system also allows for user interaction. Mechanism Based on the context switching mechanism. Based on the time-sharing mechanism. Objective It is useful for reducing/decreasing CPU idle time and increasing throughput as much as possible. It is useful for running multiple processes at the same time, effectively increasing CPU and system throughput. Execution When one job or process completes its execution or switches to an I/O task in a multi-programmed system, the system momentarily suspends that process. It selects another process from the process scheduling pool (waiting queue) to run. In a multiprocessing system, multiple processes can operate simultaneously by allocating the CPU for a fixed amount of time. CPU Switching In a multiuser environment, the CPU switches between programs/processes quickly. In a single-user environment, the CPU switches between the processes of various programs. Timing It takes maximum time to execute the process. It takes minimum time to execute the process. COMPARISON BETWEEN MUTITASKING AND MUTIPROGRAMMING: