看板 Programming 關於我們 聯絡資訊
請問一下os(WinX) cache機制的問題 就是跑一隻A程式時,如果A程式沒做任何cache機制 是否os會幫A程式cache一些資訊在memory(似乎會)或hd(不清楚) 還有可否有tool可dump所有cache的資料 thx^^ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.249.164.196 ※ 編輯: wqchung 來自: 60.249.164.196 (01/06 16:11)
adrianshum:cache 什麼? 202.155.236.82 01/06 16:32
wqchung:如圖片....之類等等 60.249.164.196 01/06 16:47
wqchung:如A程式功能load了幾張圖,我怎知os有無幫 60.249.164.196 01/06 16:48
wqchung:我cache這些圖在memory.... 60.249.164.196 01/06 16:49
adrianshum:看你何謂 cache. OS 在不同層次自己有 202.155.236.82 01/06 18:02
adrianshum:做各類 caching, 比如某檔案剛讀過,os 202.155.236.82 01/06 18:02
adrianshum:會把資料 cache 起也說不定, 但肯定不 202.155.236.82 01/06 18:03
adrianshum:會根據你的程式 logic 去自動 cache 某 202.155.236.82 01/06 18:03
adrianshum:些資料, 比如你load 了圖片, 又 close 202.155.236.82 01/06 18:03
adrianshum:了, os 或會 cache 到 file data, 令你 202.155.236.82 01/06 18:04
adrianshum:再開的時候, 讀檔的時候能從 mem 讀到 202.155.236.82 01/06 18:04
adrianshum:但不可能幫你 cache令你那個圖片object 202.155.236.82 01/06 18:05
adrianshum:下次不用再construct 202.155.236.82 01/06 18:05
wqchung:看來我搞混os caching做法,一直以為os會幫 60.249.164.196 01/06 18:13
wqchung:某個process切割某塊frame來放cache data 60.249.164.196 01/06 18:13