Unit 6 I/O Management And File Management PDF

Summary

This document covers I/O management and file management concepts in operating systems. It includes explanations of various disk scheduling algorithms, such as FCFS, SSTF, SCAN, and C-SCAN.

Full Transcript

Unit 6 I/O Management and FILE Management DMA Q. A disk drive has 200 cylinders, numbered 0 to 199. The drive is currently serving a request at cylinder 53. The queue of pending requests in FIFO order is: 98, 183, 37, 122, 14, 124, 65, 67 what is the total dist...

Unit 6 I/O Management and FILE Management DMA Q. A disk drive has 200 cylinders, numbered 0 to 199. The drive is currently serving a request at cylinder 53. The queue of pending requests in FIFO order is: 98, 183, 37, 122, 14, 124, 65, 67 what is the total distance that the disk arm moves to satisfy all pending requests for each of the following disk scheduling algorithm? i) FCFS Q. A disk drive has 200 cylinders numbered 0-199. The drive is currently serving the request at cylinder 63. The queue of pending requests in FIFO order is 27,129,110,186,147,41,10,64,120. Starting from the current head position what is the total distance that disk arm moves to satisfy all the pending requests for the following disk scheduling algorithm. i)FCFS FCFS Answer: 519 SSTF: 229 SCAN: 239 Q. A disk drive has 500 cylinders, numbered 0 to 499. The drive is currently serving a request at cylinder 255 and the previous request was at cylinder 143. The queue of pending requests in FIFO order is: 84, 147, 91, 177, 286, 341, 78, 488,, what is the total distance that the disk arm moves to satisfy all pending requests for each of the following disk scheduling algorithm? i) FCFS Q. A disk drive has 200 cylinders numbered 0-199. The drive is currently serving the request at cylinder 53. The queue of pending requests in FIFO order is 98,183,37,122,14,124,65,67 starting from the current head position what is the total distance that disk arm moves to satisfy all the pending requests for the following disk scheduling algorithm. 1. SSTF i)SSTF Q. Suppose that a disk drive has 400 cylinders, numbered 0 to 399. The drive is currently serving a request at cylinder 160. The queue of pending requests, in FIFO order, is 370, 30, 390, 130, 310, 170, 340, 180. Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests, for each of the following disk scheduling algorithm? i) SSTF ANSWER=530 Q. A disk drive has 200 cylinders numbered 0-199. The drive is currently serving the request at cylinder 63. The queue of pending requests in FIFO order is 27,129,110,186,147,41,10,64,120. Starting from the current head position what is the total distance that disk arm moves to satisfy all the pending requests for the following disk scheduling algorithm. i) C-SCAN ANSWER: 177 File Systems in Operating System Thank You!!

Use Quizgecko on...
Browser
Browser