SlideShare a Scribd company logo
1 of 1
Please help, will give thumbs up. Please do not copy from other chegg questions. Thank you
Question 3 [Points 6] Implement Banker's algorithm for a two resource system. For the given
input, show whether or not the system is in safe state by showing the order in which process can
finish or not finish. You are given the available copies of R1 and R2 as well as the information
for each input process (maximum resources needed of each type). Run the system for the
following input: 56 (#of copies of R 1 and R 2 ) 4 (#of input processes) 13 (Max need of P 1 for
R 1 and R 2 , respectively) 53 (Max need of P 1 for R 1 and R 2 , respectively) 43 (Max need of
P 2 for R 1 and R 2 , respectively) 44 (Max need of P3 for R 1 and R 2 , respectively) Requests
to fulfill are: Process P 1 needs 1 of R 1 and 1 of R 2 Process P 2 needs 1 of R 1 and 3 of R 2
Process P3 needs 1 of R 1 and 2 of R2 Show the order in which these requests will be fulfilled
and all process finish execution.

More Related Content

Similar to Please help- will give thumbs up- Please do not copy from other chegg.docx

prog-03.pdfCSci 430 Programming Project #3Deadlock De.docx
prog-03.pdfCSci 430 Programming Project #3Deadlock De.docxprog-03.pdfCSci 430 Programming Project #3Deadlock De.docx
prog-03.pdfCSci 430 Programming Project #3Deadlock De.docx
stilliegeorgiana
 
Pcr array data analysis 2013
Pcr array data analysis 2013Pcr array data analysis 2013
Pcr array data analysis 2013
Elsa von Licy
 
Write a program in C or C++ which simulates CPU scheduling in an opera.pdf
Write a program in C or C++ which simulates CPU scheduling in an opera.pdfWrite a program in C or C++ which simulates CPU scheduling in an opera.pdf
Write a program in C or C++ which simulates CPU scheduling in an opera.pdf
sravi07
 
CS520 Computer Architecture Project 2 � Spring 2023 Due date 0326.pdf
CS520 Computer Architecture Project 2 � Spring 2023 Due date 0326.pdfCS520 Computer Architecture Project 2 � Spring 2023 Due date 0326.pdf
CS520 Computer Architecture Project 2 � Spring 2023 Due date 0326.pdf
ameerandsons
 
Module 3 Deadlocks.pptx
Module 3 Deadlocks.pptxModule 3 Deadlocks.pptx
Module 3 Deadlocks.pptx
shreesha16
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
vipinkmenon1
 

Similar to Please help- will give thumbs up- Please do not copy from other chegg.docx (18)

Os unit 4
Os unit 4Os unit 4
Os unit 4
 
7. Mutual Exclusion
7. Mutual Exclusion7. Mutual Exclusion
7. Mutual Exclusion
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
A0220105
A0220105A0220105
A0220105
 
Operating System
Operating SystemOperating System
Operating System
 
Qicheng yu
Qicheng yuQicheng yu
Qicheng yu
 
Co&al lecture-07
Co&al lecture-07Co&al lecture-07
Co&al lecture-07
 
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
 
Sap basis administrator user guide
Sap basis administrator   user guideSap basis administrator   user guide
Sap basis administrator user guide
 
prog-03.pdfCSci 430 Programming Project #3Deadlock De.docx
prog-03.pdfCSci 430 Programming Project #3Deadlock De.docxprog-03.pdfCSci 430 Programming Project #3Deadlock De.docx
prog-03.pdfCSci 430 Programming Project #3Deadlock De.docx
 
R Programming - part 1.pdf
R Programming - part 1.pdfR Programming - part 1.pdf
R Programming - part 1.pdf
 
Pcr array data analysis 2013
Pcr array data analysis 2013Pcr array data analysis 2013
Pcr array data analysis 2013
 
Write a program in C or C++ which simulates CPU scheduling in an opera.pdf
Write a program in C or C++ which simulates CPU scheduling in an opera.pdfWrite a program in C or C++ which simulates CPU scheduling in an opera.pdf
Write a program in C or C++ which simulates CPU scheduling in an opera.pdf
 
CS520 Computer Architecture Project 2 � Spring 2023 Due date 0326.pdf
CS520 Computer Architecture Project 2 � Spring 2023 Due date 0326.pdfCS520 Computer Architecture Project 2 � Spring 2023 Due date 0326.pdf
CS520 Computer Architecture Project 2 � Spring 2023 Due date 0326.pdf
 
Performance Characterization of the Pentium Pro Processor
Performance Characterization of the Pentium Pro ProcessorPerformance Characterization of the Pentium Pro Processor
Performance Characterization of the Pentium Pro Processor
 
Module 3 Deadlocks.pptx
Module 3 Deadlocks.pptxModule 3 Deadlocks.pptx
Module 3 Deadlocks.pptx
 
R Programming Language
R Programming LanguageR Programming Language
R Programming Language
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 

More from kathrynj2

Please Show Work! 1- Mendel did experiments where he kept track of the.docx
Please Show Work! 1- Mendel did experiments where he kept track of the.docxPlease Show Work! 1- Mendel did experiments where he kept track of the.docx
Please Show Work! 1- Mendel did experiments where he kept track of the.docx
kathrynj2
 
Please help using data in second photo- Thank you Identify the main d.docx
Please help using data in second photo- Thank you  Identify the main d.docxPlease help using data in second photo- Thank you  Identify the main d.docx
Please help using data in second photo- Thank you Identify the main d.docx
kathrynj2
 

More from kathrynj2 (19)

Please solve h- where it asks to record the payment of interest on bon.docx
Please solve h- where it asks to record the payment of interest on bon.docxPlease solve h- where it asks to record the payment of interest on bon.docx
Please solve h- where it asks to record the payment of interest on bon.docx
 
Please Show Work! 1- Mendel did experiments where he kept track of the.docx
Please Show Work! 1- Mendel did experiments where he kept track of the.docxPlease Show Work! 1- Mendel did experiments where he kept track of the.docx
Please Show Work! 1- Mendel did experiments where he kept track of the.docx
 
Please help- Thank you in advance- You have just completed a simulatio.docx
Please help- Thank you in advance- You have just completed a simulatio.docxPlease help- Thank you in advance- You have just completed a simulatio.docx
Please help- Thank you in advance- You have just completed a simulatio.docx
 
Please help write a Python script that will take any text dataset and.docx
Please help write a Python script that will take any text dataset and.docxPlease help write a Python script that will take any text dataset and.docx
Please help write a Python script that will take any text dataset and.docx
 
Please help with the following questions- What is the total debt ratio.docx
Please help with the following questions- What is the total debt ratio.docxPlease help with the following questions- What is the total debt ratio.docx
Please help with the following questions- What is the total debt ratio.docx
 
Please Help Need ASAP JAVA Write a class named Food with the followin.docx
Please Help Need ASAP JAVA  Write a class named Food with the followin.docxPlease Help Need ASAP JAVA  Write a class named Food with the followin.docx
Please Help Need ASAP JAVA Write a class named Food with the followin.docx
 
Please help using data in second photo- Thank you Identify the main d.docx
Please help using data in second photo- Thank you  Identify the main d.docxPlease help using data in second photo- Thank you  Identify the main d.docx
Please help using data in second photo- Thank you Identify the main d.docx
 
please help me to do this - how I can do this- Homework- Install two V.docx
please help me to do this - how I can do this- Homework- Install two V.docxplease help me to do this - how I can do this- Homework- Install two V.docx
please help me to do this - how I can do this- Homework- Install two V.docx
 
please help me to asnwer all the question- It Biologh 212 thank you!.docx
please help me to asnwer all the question- It Biologh 212  thank you!.docxplease help me to asnwer all the question- It Biologh 212  thank you!.docx
please help me to asnwer all the question- It Biologh 212 thank you!.docx
 
Please help me draw this chart The City of Lethbridge has decided to b.docx
Please help me draw this chart The City of Lethbridge has decided to b.docxPlease help me draw this chart The City of Lethbridge has decided to b.docx
Please help me draw this chart The City of Lethbridge has decided to b.docx
 
Please help in writing these in OCaml functional programming language.docx
Please help in writing these in OCaml functional programming language.docxPlease help in writing these in OCaml functional programming language.docx
Please help in writing these in OCaml functional programming language.docx
 
please show all work Assume we are using the simple model for floating.docx
please show all work Assume we are using the simple model for floating.docxplease show all work Assume we are using the simple model for floating.docx
please show all work Assume we are using the simple model for floating.docx
 
please help esp on the first one 3- Bacteriophages have lytic and lys.docx
please help esp on the first one  3- Bacteriophages have lytic and lys.docxplease help esp on the first one  3- Bacteriophages have lytic and lys.docx
please help esp on the first one 3- Bacteriophages have lytic and lys.docx
 
Please review the Trade agreement between the North American Countries.docx
Please review the Trade agreement between the North American Countries.docxPlease review the Trade agreement between the North American Countries.docx
Please review the Trade agreement between the North American Countries.docx
 
Please provide 1 explanation and 1 example for each of the points abov.docx
Please provide 1 explanation and 1 example for each of the points abov.docxPlease provide 1 explanation and 1 example for each of the points abov.docx
Please provide 1 explanation and 1 example for each of the points abov.docx
 
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A RESEARCH INTERESTS F.docx
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A  RESEARCH INTERESTS F.docxPLEASE PROVIDE ME WITH DETAILED INFORMATION ON A  RESEARCH INTERESTS F.docx
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A RESEARCH INTERESTS F.docx
 
Please place the following events in transcription in the correct orde.docx
Please place the following events in transcription in the correct orde.docxPlease place the following events in transcription in the correct orde.docx
Please place the following events in transcription in the correct orde.docx
 
please match the processes below with the correct description Match th.docx
please match the processes below with the correct description Match th.docxplease match the processes below with the correct description Match th.docx
please match the processes below with the correct description Match th.docx
 
Please look up the Terri Schiavo case I- Introduction- Describe the p.docx
Please look up the Terri Schiavo case  I- Introduction- Describe the p.docxPlease look up the Terri Schiavo case  I- Introduction- Describe the p.docx
Please look up the Terri Schiavo case I- Introduction- Describe the p.docx
 

Recently uploaded

The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
17thcssbs2
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Recently uploaded (20)

An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
The Ultimate Guide to Social Media Marketing in 2024.pdf
The Ultimate Guide to Social Media Marketing in 2024.pdfThe Ultimate Guide to Social Media Marketing in 2024.pdf
The Ultimate Guide to Social Media Marketing in 2024.pdf
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptx
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 

Please help- will give thumbs up- Please do not copy from other chegg.docx

  • 1. Please help, will give thumbs up. Please do not copy from other chegg questions. Thank you Question 3 [Points 6] Implement Banker's algorithm for a two resource system. For the given input, show whether or not the system is in safe state by showing the order in which process can finish or not finish. You are given the available copies of R1 and R2 as well as the information for each input process (maximum resources needed of each type). Run the system for the following input: 56 (#of copies of R 1 and R 2 ) 4 (#of input processes) 13 (Max need of P 1 for R 1 and R 2 , respectively) 53 (Max need of P 1 for R 1 and R 2 , respectively) 43 (Max need of P 2 for R 1 and R 2 , respectively) 44 (Max need of P3 for R 1 and R 2 , respectively) Requests to fulfill are: Process P 1 needs 1 of R 1 and 1 of R 2 Process P 2 needs 1 of R 1 and 3 of R 2 Process P3 needs 1 of R 1 and 2 of R2 Show the order in which these requests will be fulfilled and all process finish execution.