作者zptdaniel ()
看板TransCSI
标题Re: [问题] 计概memory计算
时间Thu Apr 30 18:12:10 2009
※ 引述《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