看板 TransCSI 關於我們 聯絡資訊
※ 引述《sky810675 (KKMAN)》之銘言: : A multiprogramming OS uses paging. The available momory is 32KB divided into 8 : frames, each of 4 KB. The first program needs 5 KB. The second needs 8KB. : The third program needs 14KB. 32/4 = 8(frames) : a.how many frames are used by the first program? 4KB = 1 frame < 5KB < 8KB = 2 frames(其中有3KB未使用) : b.how many frames are used by the second program? 8KB = 2*4KB = 2 frames : c.how many frames are used by the third program? 12KB = 3fremes < 14KB < 16KB = 4 frames(其中2KB未使用) : d.how many frames are unused? unused = total - used = 8 - (2+2+4) = 0 : e.what is the total memory(in KB)wasted? 由a與b知有 3 + 2 = 5KB : f.what percentage of memory (in %)is wasted? 5KB/32KB = 0.15625 = 15.625% : 這邊附上解答,幫忙解說一下過程怎麼做吧~謝謝囉 : a.2 b.2 c.4 d.0 e.5KB f.15.625% -- 當財團老闆在剝削欺壓勞工階層時,我保持沉默,因為我不是廣大勞動階層。 當兩黨惡鬥階級世襲社會不公不義,我保持沉默,因為我非藍非綠中間選民。 當學測考40幾級分的權貴當醫生時,沒有人作聲,因為全都死在手術檯上了。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.194.100.216