[理工] OS 99中山

看板Grad-ProbAsk作者 (yo~)時間14年前 (2011/12/09 16:56), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
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? 我想問的是linked list 為什麼是4不是5 我的想法是:從第0個block開始 → 1 → 2 → 3 → 4 所以總共五次 對照一題99交大OS 感覺有點矛盾 @@ 所以來問問了! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.122.233

12/10 00:53, , 1F
正好也要請教這個,題目沒說從block0開始還是1
12/10 00:53, 1F
文章代碼(AID): #1EuSr3sW (Grad-ProbAsk)