Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 6 homework: 1) (5 pts) Consider the following diagram where Car1 needs a & b, Car2 needs b & c, Car3 needs c &

Lab 6 homework: 1) (5 pts) Consider the following diagram where Car1 needs a & b, Car2 needs b & c, Car3 needs c & d, and Car4 needs d & a. Show (explain) that each of the 4conditions for deadlock exist.

image text in transcribed

2) 10 pts Suppose you have 16GB of memory on an OS that allocates memory dynamically (i.e., multiple variable partitions), and the following sequence of allocation or freeing requests occur. Show what the 16GB of memory will look like at the end of the following sequence of allocation (all in GB) or free events based on FIRST FIT and again based on BEST FIT. Your answer should show a bar representing the 16GB with sections marked showing in use segments and free segments similar to Fig 4-11 in the text, except include the user ID (i.e., A-J) in the used segments. If there is a tie on BEST FIT, choose the first one. Assume coalescing occurs, treating adjacent free segments as one:

A - 3, B- 2, C-3, D-3, E-5, A-free, C-free, F-2, G-3, H-1, E-free, F-free, J-4

3) (10 pts) Given a task with 10 pages, and the following page trace, and a fixed Working Set Size of 4, What Will the initial and final working set be? How many page faults will occur? Assume a FIFO page replacement algorithm. 0014540110300674400128001118881893506161171288030450014540012204300562235

Extra Credit: (10 pts avail). Complete #3 additionally with a Least-Recently used algorithm (4 pts) and a Least-Frequently used (6 pts) algorithm as well.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions