版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
ImportSettings:
BaseSettings:BrownstoneDefault
HighestAnswerLetter:D
MultipleKeywordsinSameParagraph:No
Chapter:Chapter5
MultipleChoice
1A.xWhichofthefollowingistrueofcooperativescheduling?
zl
BvItrequiresatimer.
)
zAprocesskeepstheCPUuntilitreleasestheCPUeitherbyterminatingorbyswitchingto
由waitingstate.
ci)xe
zItincursacostassociatedwithaccesstoshareddata.
DIX
/Aprocessswitchesfromtherunningstatetothereadystatewhenaninterruptoccurs.
An
s:B
Feedback:5.1.3
Difficulty:Medium
z
A\isthenumberofprocessesthatarecompletedpertimeunit.
/!
B\CPUutilization
z)
c\Responsetime
zl
D\Turnaroundtime
7?Throughput
Ans:D
Feedback:5.2
Difficulty:Medium
3.schedulingisapproximatedbypredictingthenextCPUburstwithanexponential
averageofthemeasuredlengthsofpreviousCPUbursts.
A)Multilevelqueue
B)RR
C)FCFS
D)SJF
Ans:D
Feedback:5.3.2
Difficulty:Medium
4A.Theschedulingalgorithmisdesignedespeciallyfortime-sharingsystems.
\
J
ZSJF
BX
I
c/FCFS
x
)
zRR
D\
1
/Multilevelqueue
Ans:C
Feedback:5.3.4
Difficulty:Medium
5.Whichofthefollowingschedulingalgorithmsmustbenonpreemptive?
AX
i
/SJF
B\
1
7RR
c\
l
zFCFS
D\
l
7priorityalgorithms
A
C
Feedback:5.3.1
Difficulty:Medium
6A.Whichofthefollowingistrueofmultilevelqueuescheduling?
\
J
BZProcessescanmovebetweenqueues.
x
)
czEachqueuehasitsownschedulingalgorithm.
DAqueuecannothaveabsolutepriorityoverlower-priorityqueues.
\
J
,ItisthemostgeneralCPU-schedulingalgorithm.
Ans:B
Feedback:5.3.5
Difficulty:Medium
7.ThedefaultschedulingclassforaprocessinSolarisis.
A)timesharing
B)system
C)interactive
D)real-time
Ans:A
Feedback:5.7.3
Difficulty:Easy
8.WhichofthefollowingstatementsarefalsewithregardstotheLinuxCFSscheduler?
A)EachtaskisassignedaproportionofCPUprocessingtime.
B)Lowernumericvaluesindicatehigherrelativepriorities.
C)Thereisasingle,system-widevalueofvruntime.
D)Theschedulerdoesn*tdirectlyassignpriorities.
Ans:C
Feedback:5.7.1
Difficulty:Easy
9.TheLinuxCFSscheduleridentifiesastheintervaloftimeduringwhich
everyrunnabletaskshouldrunatleastonce.
A)virtualruntime
B)targetedlatency
C)nicevalue
D)loadbalancing
Ans:B
Feedback:5.7.1
Difficulty:Medium
t
-
lAosInLittle'sformula,X,representsthe.
x
l
Bzaveragewaitingtimeinthequeue
\
J
cZaveragearrivalratefornewprocessesinthequeue
X
I
D/averagequeuelength
X
I
/averageCPUutilization
A
n
B
Feedback:5.7.2
Difficulty:Medium
11.9InSolans,whatisthetimequantum(inmilliseconds)ofaninteractivethreadwithpriority
-
3A5\5
l
z2
B\4
)
z5
cX0
)8
/
D\35
l
7
Ans:C
Section:5.7.3
Difficulty:Easy
12.InSolaris,ifaninteractivethreadwithpriority15usesitsentiretimequantum,whatisits
priorityrecalculatedto?
A)51
B)5
C)160
D)Itremainsat15
Ans:B
Feedback:5.7.3
Difficulty:Easy
13.InSolaris,ifaninteractivethreadwithpriority25iswaitingforI/O,whatisitspriority
recalculatedtowhenitiseligibletorunagain?
A)15
B)120
C)52
D)Itremainsat25
Ans:C
Feedback:5.7.3
Difficulty:Easy
14.allowsathreadtorunononlyoneprocessor.
A)Processoraffinity
B)Processorset
C)NUMA
D)Loadbalancing
Ans:A
Feedback:5.5.2
Difficulty:Medium
15.WhatisthenumericpriorityofaWindowsthreadintheNORMAL_PRIORITY_CLASS
withHIGHESTrelativepriority?
A)24
B)10
C)8
D)13
Ans:B
Feedback:5.7,2
Difficulty:Easy
16.WhatisthenumericpriorityofaWindowsthreadintheHIGH_PRIORITY_CLASSwith
ABOVE_NORMALrelativepriority?
A)24
B)1()
C)8
D)14
Ans:D
Feedback:5.7.2
Difficulty:Easy
17.WhatisthenumericpriorityofaWindowsthreadinthe
BELOW_NORMAL_PRIORITY_CLASSwithNORMALrelativepriority?
A)6
B)7
C)5
D)8
Ans:A
Feedback:5.7.2
Difficulty:Easy
18.involvesthedecisionofwhichkernelthreadtoscheduleontowhichCPU.
A)Process-contentionscope
B)System-contentionscope
C)Dispatcher
D)Round-robinscheduling
Ans:B
Feedback:5.4.1
Difficulty:Easy
19.Withathreadexecutesonaprocessoruntilalong-latencyevent(i.e.amemory
stall)occurs.
A)coarse-grainedmultithreading
B)fine-grainedmultithreading
C)virtualization
D)multicoreprocessors
Ans:A
Feedback:5.5.4
Difficulty:Medium
20.Asignificantproblemwithpriorityschedulingalgorithmsis.
A)complexity
B)starvation
C)determiningthelengthofthenextCPUburst
D)determiningthelengthofthetimequantum
Ans:B
Feedback:5.3.3
Difficulty:Medium
21.Theoccursinfirst-come-first-servedschedulingwhenaprocesswithalongCPU
burstoccupiestheCPU.
A)dispatchlatency
B)waitingtime
C)convoyeffect
D)system-contentionscope
Ans:C
Feedback:5.3.1
Difficulty:Medium
22.Therateofaperiodictaskinahardreal-timesystemis,wherepisaperiodandtis
thetime.
A)
B0)lip
p/t
D)\/t
An
Pi
A
Section:5.6.2
Difficulty:Medium
23AXWhichotthefollowingistrueoftherate-monotonicschedulingalgorithm?
/I
B\Thetaskwiththeshortestperiodwillhavethelowestpriority.
J/
c\Itusesadynamicprioritypolicy.
—/
D\CPUutilizationisboundedwhenusingthisalgorithm.
—/Itisnon-preemptive.
An
C
Section:5.6.3
Difficulty:Difficult
24.Whichofthefollowingistrueofearliest-deadline-first(EDF)schedulingalgorithm?
A)Whenaprocessbecomesrunnable,itmustannounceitsdeadlinerequirementstothe
system.
B)Deadlinesareassignedasfollowing:theearlierthedeadline,thelowerthepriority;thelater
thedeadline,thehigherthepriority.
C)Prioritiesarefixed;thatis,theycannotbeadjustedwhenanewprocessstartsrunning.
D)Itassignsprioritiesstaticallyaccordingtodeadline.
Ans:A
Section:5.6.4
Difficulty:Medium
25.Thetwogeneralapproachestoloadbalancingareand.
A)softaffinity,hardaffinity
B)coarsegrained,finegrained
C)softreal-time,hardreal-time
D)pushmigration,pullmigration
Ans:D
Section:5.5.3
Difficulty:Medium
Essay
26.Distinguishbetweencoarse-grainedandfine-grainedmultithreading.
Ans:Therearetwoapproachestomultithreadaprocessor.(1)Coarse-grainedmultithreading
allowsathreadtorunonaprocessoruntilalong-latencyevent,suchaswaitingformemory,to
occur.Whenalong-latencyeventdoesoccur,theprocessorswitchestoanotherthread.(2)
Fine-grainedmultithreadingswitchesbetweenthreadsatamuchfiner-granularity,suchas
betweeninstructions.
Feedback:5.5.4
Difficulty:Medium
27.ExplaintheconceptofaCPU-1/0burstcycle.
Ans:Thelifecycleofaprocesscanbeconsideredtoconsistofanumberofburstsbelongingto
twodifferentstates.AllprocessesconsistofCPUcyclesandI/Ooperations.Therefore,aprocess
canbemodeledasswitchingbetweenburstsofCPUexecutionandI/Owait.
Feedback:5.1.1
Difficulty:Medium
28.WhatroledoesthedispatcherplayinCPUscheduling?
Ans:ThedispatchergivescontroloftheCPUtotheprocessselectedbytheshort-term
scheduler.Toperformthistask,acontextswitch,aswitchtousermode,andajumptotheproper
locationintheuserprogramareallrequired.Thedispatchshouldbemadeasfastaspossible.
Thetimelosttothedispatcheristermeddispatchlatency.
Feedback:5.1.4
Difficulty:Medium
29.Explainthedifferencebetweenresponsetimeandturnaroundtime.Thesetimesareboth
usedtomeasuretheeffectivenessofschedulingschemes.
Ans:Turnaroundtimeisthesumoftheperiodsthataprocessisspentwaitingtogetinto
memory,waitinginthereadyqueue,executingontheCPU,anddoingI/O.Turnaroundtime
essentiallymeasurestheamountoftimeittakestoexecuteaprocess.Responsetime,onthe
otherhand,isameasureofthetimethatelapsesbetweenarequestandthefirstresponse
produced.
Feedback:5.2
Difficulty:Medium
30.WhateffectdoesthesizeofthetimequantumhaveontheperformanceofanRR
algorithm?
Ans:Atoneextreme,ifthetimequantumisextremelylarge,theRRpolicyisthesameasthe
FCFSpolicy.Ifthetimequantumisextremelysmall,theRRapproachiscalledprocessor
sharingandcreatestheappearancethateachofnprocesseshasitsownprocessorrunningat\!n
thespeedoftherealprocessor.
Feedback:5.3.4
Difficulty:Medium
31.Explaintheprocessofstarvationandhowagingcanbeusedtopreventit.
Ans:Starvationoccurswhenaprocessisreadytorunbutisstuckwaitingindefinitelyforthe
CPU.Thiscanbecaused,forexample,whenhigher-priorityprocessespreventlow-priority
processesfromevergettingtheCPU.Aginginvolvesgraduallyincreasingthepriorityofa
processsothataprocesswilleventuallyachieveahighenoughprioritytoexecuteifitwaitedfor
alongenoughperiodoftime.
Feedback:5.3.3
Difficulty:Difficult
32.Explainthefundamentaldifferencebetweenasymmetricandsymmetricmultiprocessing.
Ans:Inasymmetricmultiprocessing,allschedulingdecisions,I/O,andothersystemactivities
arehandledbyasingleprocessor,whereasinSMP,eachprocessorisself-scheduling.
Feedback:5.5.1
Difficulty:Medium
33.Describetwogeneralapproachestoloadbalancing.
Ans:Withpushmigration,aspecifictaskperiodicallycheckstheloadoneachprocessor
and一ifitfindsanimbalance-evenlydistributestheloadbymovingprocessesfrom
overloadedtoidleorless-busyprocessors.Pullmigrationoccurswhenanidleprocessorpullsa
waitingtaskfromabusyprocessor.Pushandpullmigrationareoftenimplementedinparallelon
load-balancingsystems.
Feedback:5.5.3
Difficulty:Medium
34.InWindows,howdoesthedispatcherdeterminetheorderofthreadexecution?
Ans:Thedispatcherusesa32-levelpriorityschemetodeterminetheexecutionorder.Priorities
aredividedintotwoclasses.Thevariableclasscontainsthreadshavingprioritiesfrom1to15,
andthereal-timeclasscontainsthreadshavingprioritiesfrom16to31.Thedispatcherusesa
queueforeachschedulingpriority,andtraversesthesetofqueuesfromhighesttolowestuntilit
findsathreadthatisreadytorun.Thedispatcherexecutesanidlethreadifnoreadythreadis
found.
Feedback:5.7.2
Difficulty:Difficult
35.Whatisdeterministicmodelingandwhenisitusefulinevaluatinganalgorithm?
Ans:Deterministicmodelingtakesaparticularpredeterminedworkloadanddefinesthe
performanceofeachalgorithmforthatworkload.Deterministicmodelingissimple,fast,and
givesexactnumbersforcomparisonofalgorithms.However,itrequiresexactnumbersforinput,
anditsanswersapplyonlyinthosecases.Themainusesofdeterministicmodelingare
describingschedulingalgorithmsandprovidingexamplestoindicatetrends.
Feedback:5.8,1
Difficulty:Medium
36.Whatarethetwotypesoflatencythataffecttheperformanceofreal-timesystems?
Ans:InterruptlatencyreferstotheperiodoftimefromthearrivalofaninterruptattheCPUto
thestartoftheroutinethatservicestheinterrupt.Dispatchlatencyreferstotheamountoftime
requiredfortheschedulingdispatchertostoponeprocessandstartanother.
Section:5.6.1
Difficulty:Medium
37.WhataretheadvantagesoftheEDFschedulingalgorithmovertherate-monotonic
schedulingalgorithm?
Ans:Unliketherate-monotonicalgorithm,EDFschedulingdoesnotrequirethatprocessesbe
periodic,normustaprocessrequireaconstantamountofCPUtimeperburst.Theappealof
EDFschedulingisthatitistheoreticallyoptimal-theoretically,itcanscheduleprocessessothat
eachprocesscanmeetitsdeadlinerequirementsandCPUutilizationwillbe100percent.
Section:5.6.4
Difficulty:Medium
True/False
38.Inpreemptivescheduling,thesectionsofcodeaffectedbyinterruptsmustbeguardedfrom
simultaneoususe.
Ans:True
Feedback:5.1.3
Difficulty:Medium
39.InRRscheduling,thetimequantumshouldbesmallwithrespecttothecontext-switch
time.
Ans:False
Feedback:5.3.4
Difficulty:Medium
40.Themostcomplexschedulingalgorithmisthemultilevelfeedback-queuealgorithm.
Ans:True
Feedback:5.3.6
Difficulty:Medium
41.Loadbalancingistypicallyonlynecessaryonsystemswithacommonrunqueue.
Ans:False
Feedback:5.5.3
Difficulty:Medium
42.Systemsusingaone-to-onemodel(suchasWindows,Solaris,andLinux)schedulethreads
usingprocess-contentionscope(PCS).
Ans:False
Feedback:5.4.1
Difficulty:Easy
43.SolarisandWindowsassignhigher-prioritythreads/taskslongertimequantumsand
lower-prioritytasksshortertimequantums.
Ans:False
Feedback:5.7
Difficulty:Medium
44.ASolarisinteractivethreadwithpriority15hasahigherrelativeprioritythananinteractive
threadwithpriority20
Ans:False
Feedback:5.7,3
Difficulty:Easy
45.ASolarisinteractivethreadwithatimequantumof80hasahigherprioritythanan
interactivethreadwithatimequantumof120.
Ans:True
Feedback:5.7.3
Difficulty:Easy
46.SMPsystemsthatusemulticoreprocessorstypicallyrunfasterthanSMPsystemsthatplace
eachprocessoronseparatecores.
Ans:True
Feedback:5.5
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 體育培訓(xùn)機(jī)構(gòu)學(xué)員制度
- 安全培訓(xùn)上機(jī)考試制度
- 洗衣房醫(yī)院感染培訓(xùn)制度
- 駕考培訓(xùn)收費(fèi)管理制度
- 美業(yè)培訓(xùn)設(shè)備管理制度
- 企業(yè)培訓(xùn)導(dǎo)師管理制度
- 反走私普法培訓(xùn)制度
- 紙箱廠企業(yè)安全培訓(xùn)制度
- 培訓(xùn)行業(yè)市場(chǎng)準(zhǔn)入制度
- 培訓(xùn)機(jī)構(gòu)副校長(zhǎng)職責(zé)制度
- 2025年公民素質(zhì)養(yǎng)成知識(shí)考察試題及答案解析
- 老年人營(yíng)養(yǎng)和飲食
- 《關(guān)鍵軟硬件自主可控產(chǎn)品名錄》
- 2025年濟(jì)南市九年級(jí)中考語(yǔ)文試題卷附答案解析
- 信息安全風(fēng)險(xiǎn)評(píng)估及應(yīng)對(duì)措施
- 紅藍(lán)黃光治療皮膚病臨床應(yīng)用專家共識(shí)(2025版)解讀
- 錄音棚項(xiàng)目可行性研究報(bào)告
- (標(biāo)準(zhǔn))警局賠償協(xié)議書
- GB/T 20921-2025機(jī)器狀態(tài)監(jiān)測(cè)與診斷詞匯
- 人教版英語(yǔ)九年級(jí)全一冊(cè)單詞表
- 護(hù)工培訓(xùn)課件內(nèi)容
評(píng)論
0/150
提交評(píng)論