阿摩線上測驗 登入

申論題資訊

試卷:109年 - 109 國立中山大學_碩士班招生考試_資工系(甲組):作業系統與資料結構#105756
科目:中山◆資工◆作業系統與資料結構
年份:109年
排序:0

題組內容

3. Consider the two-dimensional array a:
double a[] [] = new double[250] [250] ;
where each double occupies 8 bytes and a [0] [0] is at location 200, in a paged system with pages of size 200 bytes. A small process is in page O (locations 0 to 199) for manipulating the matrix: thus, every instruction fetch will be from page O. For three page frames, how many page faults aire generated by the following aray initialization loops. using LRU replacement and assuming (1) page frame O bas the process in it, (2) the other two are initially empty, and (3) the array is stored in memory column-major.

申論題內容

(a) f61dfbae87016c.jpg