CHAPTER9VirtualMemoryPracticeExercises
9.1Underwhatcircumstancesdopagefaultsoccur?Describe
theactionstakenbytheoperatingsystemwhenapagefault
occurs.
Answer:
Apagefaultoccurswhenanaccesstoapagethathasnot
been
broughtintomainmemorytakesplace.Theoperating
systemveri?es
thememoryaccess,abortingtheprogramifitisinvalid.Ifit
isvalid,afreeframeislocatedandI/Oisrequestedtoreadthe
neededpageintothefreeframe.UponcompletionofI/O,the
processtableandpagetableareupdatedandtheinstructionis
restarted.
9.2Assumethatyouhaveareferencestringfora
processwithmframes(initiallyallempty).Thereference
stringhaslengthp;
ndistinctpagenumbersoccurinit.Answerthesequestions
foranyreplacementalgorithms:
a.Whatisalowerboundonthenumberofpagefaults?
b.Whatisanupperboundonthenumberofpagefaults?
Answer:
a.n
b.p
9.3ConsiderthepagetableshowninFigure9.30forasystem
with12-bitvirtualandphysicaladdressesandwith256-byte
pages.Thelistoffree
pageframesisD,E,F(thatis,Disattheheadofthelist,Eis
second,andFislast).
Convertthefollowingvirtualaddressestotheirequivalent
physicaladdressesinhexadecimal.Allnumbersaregivenin
hexadecimal.(Adashforapageframeindicatesthatthepageis
notinmemory.)
9EF
111
2930Chapter9VirtualMemory
700
0FF
Answer:
9EF-0EF
111-211
700-D00
0FF-EFF
9.4Considerthefollowingreplacementalgorithms.
Rankthesealgorithmsona?ve-pointscalefrom“bad”to
“pe
到此这篇操作系统的答案(操作系统答案第九版)的文章就 介绍到这了,更多相关内容请继续浏览下面的相关 推荐文章,希望大家都能在编程的领域有一番成就!版权声明:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权、违法违规、事实不符,请将相关资料发送至xkadmin@xkablog.com进行投诉反馈,一经查实,立即处理!
转载请注明出处,原文链接:https://www.xkablog.com/bcyy/35091.html