[理工] 100成大-計組

看板Grad-ProbAsk作者 (Ellison)時間11年前 (2013/01/24 12:33), 編輯推噓0(0014)
留言14則, 5人參與, 最新討論串1/1
Which of the following are true? (1)Write-allocate policy means when a cache write miss occurs, the written data are updated in the next level of memory. (2)There is no cache coherency problem for the write-through cache since the data are written into the next level of memory, and thus the data are consistent between the two caches. (3)A cache can be a shared or private. (4)A cache can use either vitural address ot physical address for its tag. 解答:(3)、(4) 怎麼看都怪怪的... 有高手可以幫我解答嗎@@ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 115.82.3.3

01/24 15:02, , 1F
(1) 先寫到cache在寫到mem
01/24 15:02, 1F

01/24 15:05, , 2F
(2)兩個cache都有同個資料以後其中一個寫入就會不一致
01/24 15:05, 2F

01/24 15:05, , 3F
(3) (4) 本來就有這些類型的cache實作
01/24 15:05, 3F

01/24 15:42, , 4F
(1)我原本查wiki他附了一張圖,說明是跟(1)一樣才覺得奇
01/24 15:42, 4F

01/24 15:44, , 5F
(2)是指memory只跟其中一個cache有寫穿另一則沒嗎?
01/24 15:44, 5F

01/24 15:51, , 6F
(2)一個cache有寫穿到mem 但其他cache的值不會改變 不是嗎?
01/24 15:51, 6F

01/24 16:02, , 7F
writethrough只有cache跟memory之間!要再搭配writeupdate
01/24 16:02, 7F

01/24 16:03, , 8F
才會沒有cache coherency problem
01/24 16:03, 8F

01/24 16:04, , 9F
1.應該是No Write-allocate
01/24 16:04, 9F

01/24 16:12, , 10F
明白了!!!感謝:)原來是找克漏字~__~
01/24 16:12, 10F

01/25 10:46, , 11F
(1)應改write around 才對
01/25 10:46, 11F

01/25 10:48, , 12F
(2)write through僅解決cache和memoyr的問題
01/25 10:48, 12F

01/25 10:48, , 13F
要解決cache要用snooping才可
01/25 10:48, 13F

01/25 11:00, , 14F
感謝感謝!!
01/25 11:00, 14F
文章代碼(AID): #1H0BcGwh (Grad-ProbAsk)