Question

In: Computer Science

NEED ASAP PLEASE WILL GIVE GOOD RATE RIGHT AWAY FOR ALL ANSWERS! suppose that a disk...

NEED ASAP PLEASE WILL GIVE GOOD RATE RIGHT AWAY FOR ALL ANSWERS!


suppose that a disk drive has 500 tracks numbered 0 through 499. the drive is currently servicing a request at track 350 and the previous request was at track 180. the qeue off pending requests in FIFO order is : 206 280 110 160 370

starting ftom the current position what are the next two requests that will be serviced for each of the following disk scheduling algorithms

a) SSTF
B) FCFS
C) SCAN
D) C SCAN

Solutions

Expert Solution

a) Shortest seek time first

the track closer to current disk head position is serviced first.

In this case there are 500 tracks and the drive is at track 350 right now. So the next track would be the one closer to track 350 which would be 370

and the next track would be closer to track 370 which would be 280

so the processing would be in the order

180, 350, 370, 280, 206, 160, 110

b) First come first out

In FCFS, the first element which is in the stack is processed first, so after 350, the track would be 206 which is first in line and the next one would be 280

so the processing would be in order

180, 350, 206, 280, 110, 160, 370

c) SCAN

In SCAN scheduling, it scans down towards the nearest end and then it hits to the other side

In this case, the track is currently in 350, so it move towards 370 which is the nearest end and second it move towards 280 from 370

so the processing order would be

180, 350, 370, 280, 206, 160, 110

d) C-SCAN

C-SCAN is similar to SCAN but when it hits an end it moves to the other end and then starts the processing.

In this case, the track is currently in 350, so the next move would be to 370 which is the nearest end. Now, after reaching the end it moves to the other end which would be 110.

So the processing order would be

180, 350, 370, 110, 160, 206, 280


Related Solutions

need asap please - will rate right away! Find the transition matrix from the basis B...
need asap please - will rate right away! Find the transition matrix from the basis B = {(2,1,0),(1,0,0)(0,1,1)} to the basis B' ={1,1,2),(1,1,1),(0,1,2)}
Multiple choice question. NEED ANSWERS ASAP PLEASE Which of the following are not included in a...
Multiple choice question. NEED ANSWERS ASAP PLEASE Which of the following are not included in a management representations letter? Select one: a. All transactions have been recorded and are reflected in the financial statements. b. Management has provided the auditor with all relevant information and access as agreed in the terms of the audit engagement. c. Management's acknowledgement that it has fulfilled its responsibility for the audit of the financial statements in accordance with the applicable audit framework. d. The...
Macroeconomics, Please, I need these bedone right away. Thank you Lecture 1: Origins and Mission of...
Macroeconomics, Please, I need these bedone right away. Thank you Lecture 1: Origins and Mission of the Federal Reserve Questions: 1. What are the policy goals or objectives of the â??Fedâ??? 2. What are (or were) the policy tools of the Fed? 3. What is the Chairmanâ??s view of financial panics? 4. What is meant by the â??lender of last resortâ??? 5. What is Bernankeâ??s view of what caused the Great Depression of the 1930â??s? 6. What does Bernanke see...
​ Please answer and show all work and units. Will rate ASAP. ------------------------------------------------------------------------------------------------------- Consider the reaction...
​ Please answer and show all work and units. Will rate ASAP. ------------------------------------------------------------------------------------------------------- Consider the reaction shown below taking place at 25oC N2(g) + 3 H2 (g) ⇆ 2 NH3 (g) For this reaction it has been found that ∆Horx = - 92.38 kJ and ∆Sorx= - 98.4 J/K A) Calculate the value of ΔGorx. Is this reaction spontaneous? Why or why not? B) Calculate the value of the equilibrium constant, Kp, for this reaction. In which direction is the...
"Please I need complete answers" “How good are you at preparing for and reaching for an...
"Please I need complete answers" “How good are you at preparing for and reaching for an interview? How do you think you appear to other people in an important interaction?
T/F ( Give me all answers, DO NOT GIVE ONLY ONE OR TWO. I NEED ALL)...
T/F ( Give me all answers, DO NOT GIVE ONLY ONE OR TWO. I NEED ALL) 1 Benefits are extra compensation items that are not paid directly to an employee. 2 On July 1, 2018, Shannon Equipment Dealer issued $590,000 of 6% bonds payable that mature in seven years. These bonds were issued at face value and pay interest each June 30 and December 31. Each semiannual interest payment will be higher than the interest expense. 3 Earnings per share...
please answer all qustions and all parts and make sure you have the right answers. 1....
please answer all qustions and all parts and make sure you have the right answers. 1. An electric field is given by Ex = 3.5x3 kN/C. Find the potential difference between the points on the x axis at x = 1 m and x = 3 m. ..... kV --------------------------------- 2. (a) Find the maximum net charge that can be placed on a spherical conductor of radius 12 cm before dielectric breakdown of the air occurs. .... µC (b) What...
Discuss how you would leverage CRM to drive customer satisfaction, give specifics. ASAP PLEASE NEW ANSWERS...
Discuss how you would leverage CRM to drive customer satisfaction, give specifics. ASAP PLEASE NEW ANSWERS nothin use before.
I need Q1,2 and 3 ASAP please, thanks 1. Identify three applications of integration. 2. Give...
I need Q1,2 and 3 ASAP please, thanks 1. Identify three applications of integration. 2. Give two specific examples of how we use integration to solve real-world problems. 3. Write a paragraph about how integration is applied in non-STEM disciplines. You must start a thread before you can read and reply to other threads
Seeing multiple answers to the same question... Please give detailed solution with right answer without excel....
Seeing multiple answers to the same question... Please give detailed solution with right answer without excel. An explanation would be great. Daryl wishes to save money to provide for his retirement. He is now 30 years old and will be retiring at age 64. Beginning one month from now, he will begin depositing a fixed amount into a retirement savings account that will earn 12% compounded monthly. Then one year after making his final deposit, he will withdraw $100,000 annually...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT