[理工] [OS] I/O
2.Consider a file currently consisting of a 100 blocks(Assume the block
number:0-99).Assume that the file control block (and the index block,
in the case of indexed allocation) is already in memory.Calculate how many
disk I/O operations are in the end. Assume that the block information
to be added is stored in memory.
(1)The block is added in the middle when use the contiguous allocation.
And assume the new middle block number is 49.
(2)The block is removed from the beginning when use the contiguous allocation.
請問這兩題要怎麼解呢>"<??
沒有頭緒...
答案是:
(1) 103
(2) 198
謝謝~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 1.169.123.12
※ 編輯: Eggchun 來自: 1.169.123.12 (02/05 18:40)
推
02/05 18:49, , 1F
02/05 18:49, 1F
→
02/05 18:50, , 2F
02/05 18:50, 2F
→
02/05 19:30, , 3F
02/05 19:30, 3F