Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Example 4: Given the following: Total number of cylinders in the disk = 200 (numbered 0 to 199) Current head position = cylinder 23 Current

Example 4:

Given the following: Total number of cylinders in the disk = 200 (numbered 0 to 199)

Current head position = cylinder 23

Current requests in order of arrival = 20, 17, 55, 35, 25, 78, 99

Assume the same details about the disk as in Example 4 above.The request queue does not remain the same but it changes as new requests are added to the queue. At any point of time the algorithm uses the current requests to make its decision as to the next request to be serviced. Consider the following request sequence:

Initially (at time 0) the queue contains requests for cylinders: 99, 3, 25

At the time the next decision has to be taken by the algorithm, one new requests has joined the queue: 46

Next decision point one more request has joined the queue: 75

Next decision point one more request has joined the queue: 55

Next decision point one more request has joined the queue: 85

Next decision point one more request has joined the queue: 73

Next decision point one more request has joined the queue: 50

Assume that the disk head at time 0 is just completing a request at track 55.

a) Show the schedule for FCFS, SSTF, SCAN, C-SCAN, LOOK, and C-LOOK.

b) Compute the response time (in units of head traversal) for each of the above requests.

c) What is the average response time and throughput observed for each of the algorithms?

Solution for b) and c):

Request

FCFS

SSTF

SCAN

CSCAN

LOOK

CLOOK

R1 (cyl 99)

R2 (cyl 3)

R3 (cyl 25)

R4 (cyl 46)

R5 (cyl 75)

R6 (cyl 55)

R7 (cyl 85)

R8 (cyl 73)

R9 (cyl 50)

Avg Response

Throughput

Please, do not answer these questions unless you give a complete correct answer. I have had to submit this 3 times now because people keep giving incomplete answers, Please stop wasting my money and time, and only answer if you are going to answer the entire questions A B C and fill in the chart....... thanks.....

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

Discuss the Hawthorne experiments in detail

Answered: 1 week ago

Question

Explain the characteristics of a good system of control

Answered: 1 week ago

Question

State the importance of control

Answered: 1 week ago

Question

What are the functions of top management?

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago