作者willy01 (網洋中的一條狗)
看板Grad-ProbAsk
標題[理工] [OS]中山99 第八題
時間Sun Feb 13 09:36:26 2011
Consider a file system on a disk that has both logical and physical block
sizes of 512 bytes.
Assume that the information about each file is already in memory.
For each of the three allocation strategies(Contiguous,linked,indexed),answer
the questions:
(b)If we are currently at logical block 10(the last block accessed was block
10) and want to access logical boldk4,how many physycal blocks must be read
from the disk?
(b)小題 答案上linked是 4
想要問的是為啥不是6阿
我的想法是 因為已經在logical block 10 所以往回推到4 需要經過6個
想要問一下 我的想法哪裡有問題~THX
聽說這一題是恐龍本的習題~~ 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.25.118.131
1F:→ boy5548:linked alloc.是sequential access的關係吧 所以要從頭讀 02/13 09:44
2F:→ willy01:樓上一語點醒我....對阿 好像真的不能往前推 thx~ 02/13 10:03