Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Suppose that a disk drive has 5000 cylinders, mumbered 0 to 4999. The drive is cylinder 12S. The queue of pending requests, in FIF0

image text in transcribed
4. Suppose that a disk drive has 5000 cylinders, mumbered 0 to 4999. The drive is cylinder 12S. The queue of pending requests, in FIF0 order, is 86, 1470, 913, Starting from the current head position, what is the total distance (in cylinders) currently serving a request at eylinder 143, and the previous request was at 1774, 948, 1509, 1022, 175o, 130 that the disk arm moves to satisfy all the pending requests, for each of the following disk-scheduling algorithms? [10points] a. FCFS b. SSTF c. SCAN 5. Using the program shown in the following figure, explain what the output will be at lines X and Y. include inelude adefine SIZE 5 (0,1,2.4): int nums (SIZE] - int main() IT aur pid.t pid: pid - fork(): if (pid 0) ( for (i = 0; i 0) wait (NULL); for (i 0; i

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

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions