Professional Documents
Culture Documents
OSG202Lab3 He186274 BUIVIETDUNG
OSG202Lab3 He186274 BUIVIETDUNG
Q1.
Thuật toán SSTF sẽ chọn yêu cầu I/O đĩa yêu cầu
chuyển động cánh tay đĩa ít nhất khỏi vị trí hiện tại
của nó bất kể hướng nào.
Q1. A disk queue with requests for I/O blocks on cylinders in orders: 10, 22, 20, 2,
(2 points) 40, 6, 38. Assume that the disk head is initially at cylinder 9. How many
cylinder do total head movement using SSF (Shortest Seek First)
algorithms?
a. 47
b. 69
c. 45
Q2.
Thuật toán SCAN còn được gọi là Thuật toán
elevator . Trong thuật toán này, cánh tay đĩa di chuyển
theo một hướng cụ thể cho đến hết, đáp ứng tất cả các
yêu cầu đến trên đường dẫn của nó, sau đó nó quay lại
và di chuyển theo hướng ngược lại để đáp ứng các yêu
cầu đến trên đường dẫn của nó.
a slight modification of elevator algorithms có thể là
look algorithms
nếu cánh tay đĩa di chuyển Right trước.
A disk queue with requests for I/O blocks on cylinders in orders: 10, 22, 20,
Q2. 2, 40, 6, 38. Assume that the disk head is initially at cylinder 38. Which the
(2 points) ordering cylinder in progress do using a slight modification of elevator
algorithms?
a. 38 38 40 2 6 10 20 22
b. 38 40 2 6 10 20 22 38
c. 38 38 22 20 10 6 2 40
d. 38 38 40 22 20 10 6 2