Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

POINTS for fast and right answer. Do in Java 22. Write a program that will simulate the FCFS, SSTF, LOOK, and C-LOOK seek optimization strategies.

image text in transcribed

POINTS for fast and right answer. Do in Java

22. Write a program that will simulate the FCFS, SSTF, LOOK, and C-LOOK seek optimization strategies. Assume that: a. The disk's outer track is the track and the disk contains 256 tracks per surface. Each track holds 10 sectors numbered 0 through 9. b. A seek takes 12 + 0.1T ms, where T is the number of tracks of motion from one request to the next, and 12 is a movement-time constant. c. One full rotation takes 5 ms. d. Transfer time is 1.2 ms per sector. Use the following data to test your program: Arrival Time Track Requested Sector Requested 0509 23 1356 25 202 29251 2009 45 1755 57 1803 83994 88 735 95 199 For comparison purposes, compute the average, variance, and standard deviation of the time required to accommodate all requests under each of the strategies. Consolidate your results into a table. 22. Write a program that will simulate the FCFS, SSTF, LOOK, and C-LOOK seek optimization strategies. Assume that: a. The disk's outer track is the track and the disk contains 256 tracks per surface. Each track holds 10 sectors numbered 0 through 9. b. A seek takes 12 + 0.1T ms, where T is the number of tracks of motion from one request to the next, and 12 is a movement-time constant. c. One full rotation takes 5 ms. d. Transfer time is 1.2 ms per sector. Use the following data to test your program: Arrival Time Track Requested Sector Requested 0509 23 1356 25 202 29251 2009 45 1755 57 1803 83994 88 735 95 199 For comparison purposes, compute the average, variance, and standard deviation of the time required to accommodate all requests under each of the strategies. Consolidate your results into a table

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_2

Step: 3

blur-text-image_3

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

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions

Question

c. What groups were least represented? Why do you think this is so?

Answered: 1 week ago