Está en la página 1de 7

12/5/2014

FlashcardsaboutCOP4610Midterm

Free flashcards for serious fun studying. Create your


own or use sets shared by other students and teachers.

Home|Unfinished|COP4610Midterm

COP4610Midterm
Midtermreview
Question

Answer

A_____providesafilesysteminterfacewhichallowsclientstocreateand
modifyfiles.

fileserversystem

Themostcommonsecondarystoragedeviceis____.

magneticdisk

A____canbeusedtopreventauserprogramfromneverreturningcontrol
timer
totheoperatingsystem.Answer
____operatingsystemsaredesignedprimarilytomaximizeresource
utilization.

Mainframe

Whichofthefollowingstatementsconcerningopensourceoperating
systemsistrue?

Sourcecodeisfreelyavailable.

Adualcoresystemrequireseachcorehasitsowncachememory.

False

Asystemcallistriggeredbyhardware.

False

Interruptsmaybetriggeredbyeitherhardwareofsoftware.

True

VirtuallyallmodernoperatingsystemsprovidesupportforSMP.

True

Embeddedcomputerstypicallyrunona____operatingsystem.

realtime

Whichofthefollowingwouldleadyoutobelievethatagivensystemisan
SMPtypesystem?

Eachprocessorperformsalltaskswithintheoperatingsystem.

FlashmemoryisslowerthanDRAMbutneedsnopowertoretainits
contents.

True

A____isacustombuildoftheLinuxoperatingsystem

distribution

Inwhatwayisanoperatingsystemlikeagovernment?

Itcreatesanenvironmentwithinwhichotherprogramscandouseful
work.

Whichofthefollowingoperatingsystemsisnotopensource?

WindowsXP

Whichofthefollowingisapropertyofpeertopeersystems?

Clientsandserversarenotdistinguishedfromoneanother.

Processorsformosthandhelddevicesrunatafractionofthespeedofa
processorinaPC.

True

Theoperatingsystemkernelconsistsofallsystemandapplication
programsinacomputer.

False

Amicrokernelisakernel____.

thatisstrippedofallnonessentialcomponents

Policy____.

determineswhatwillbedone

TotheSYSGENprogramofanoperatingsystem,theleastusefulpieceof
informationis_____.

whatapplicationstoinstall

Ifaprogramterminatesabnormally,adumpofmemorymaybeexamined
bya____todeterminethecauseoftheproblem.

debugger

Amessagepassingmodelis____.

easiertoimplementthanasharedmemorymodelforintercomputer
communication

Theclose()systemcallinUNIXisusedtocloseafile.Whatisthe
equivalentsystemcallinWindows:

CloseHandle()

Systemcallscanberunineitherusermodeorkernelmode.

False

Aninitialbootstrapprogramisintheformofrandomaccessmemory
(RAM).

False

KDEandGNOMEdesktopsareavailableunderopensourcelicenses.

True

Ingeneral,Windowssystemcallshavelonger,moredescriptivenamesand
True
UNIXsystemcallsuseshorter,lessdescriptivenames.
http://www.studystack.com/flashcard1147054

1/7

12/5/2014

FlashcardsaboutCOP4610Midterm

_____isnotanexampleofabenefitofvirtualmachines.

Useslessphysicalmemorythananactualoperatingsystem

A_____isanexampleofasystemsprogram.

FilemanagementStatusInformationFilemodification
programminglanguagesupportProgramloadingandexecution
communication

Inavirtualmachine,eachprogrambelievesthatithas____.

itsownmemory

Aprogramwrittenforthe.NETFrameworkneednotworryaboutthe
specificsofthehardwareortheoperatingsystemonwhichitwillrun.

True

ManyoperatingsystemsmergeI/Odevicesandfilesintoacombinedfile
becauseofthesimilarityofsystemcalleach

True

Bluetoothand802.11devicesusewirelesstechnologytocommunicate
overseveralfeet,inessencecreatinga____.

smallareanetwork

Twoimportantdesignissuesforcachememoryare____.

sizeandreplacementpolicy

_____allowoperatingsystemservicestobeloadeddynamically.

Modules

Microkernelsuse_____forcommunication.

MessagePassing

___isapopularcommercialapplicationthatabstractsIntel80XXx86
hardwareintoisolatedvirtualmachines.

WMware

Whichofthefollowingstatementsisincorrect?

Operatingsystemsprovidebothcommandlineaswellasgraphical
userinterfaces.

Somelevelofhardwaresupportisrequiredtoprovidevirtualization.

True

AprocessmaytransitiontotheReadystatebywhichofthefollowing
actions?

CompletionofanI/OeventAwaitingitsturnontheCPUNewly
admittedprocessAlloftheabove

Whichofthefollowingstatementsistrue?

ReadingandwritingtoordinarypipesonbothUNIXandWindows
systemscanbeperformedlikeordinaryfileI/O.

Whenachildprocessiscreated,whichofthefollowingisapossibilityin
termsoftheexecutionoraddressspaceofthechildprocess?

Thechildprocessrunsconcurrentlywiththeparent.Thechild
processhasanewprogramloadedintoit.Thechildisaduplicateof
theparent.Alloftheabove

A(n)______________allowsseveralunrelatedprocessestousethepipe
forcommunication.

namedpipe

Ablockingsend()andblockingreceive()isknownasa(n)
_________________

rendezvous

The____ofaprocesscontainstemporarydatasuchasfunction
parameters,returnaddresses,andlocalvariables.

stack

AsocketisidentifiedbyanIPaddressconcatenatedwithaportnumber.

True

OrdinarypipesinWindowsrequireaparentchildrelationshipbetweenthe
communicatingprocesses.

True

Forasingleprocessorsystem,therewillneverbemorethanoneprocess
intheRunningstate.

True

Usingasectionobjecttopassmessagesoveraconnectionportavoids
datacopying.

True

A_____________savesthestateofthecurrentlyrunningprocessand
restoresthestateofthenextprocesstorun.

contextswitch

ReadingandwritingtoordinarypipesonbothUNIXandWindowssystems
canbeperformedlikeordinaryfileI/O.

True

ChildprocessesinheritUNIXordinarypipesfromtheirparentprocess
because:

Pipesareaspecialtypeoffile

Whichofthefollowingstatementsistrue?

Sharedmemoryistypicallyfasterthanmessagepassing.

Whenachildprocessiscreated,whichofthefollowingisapossibilityin
termsoftheexecutionoraddressspaceofthechildprocess?

Alloftheabove

Namedpipescontinuetoexistinthesystemafterthecreatingprocesshas
terminated.

True

Usingasectionobjecttopassmessagesoveraconnectionportavoids
datacopying.

True

Socketsareconsideredahighlevelcommunicationsscheme.

False

AllaccesstoPOSIXsharedmemoryrequiresasystemcall.

False

ThelistofprocesseswaitingforaparticularI/Odeviceiscalleda(n)____.

devicequeue

ImaginethatahostwithIPaddress150.55.66.77wishestodownloadafile
fromthewebserveratIPaddress202.28.15.123.Selectavalidsocketpair 150.55.66.77:2000and202.28.15.123:80
foraconnectionbetweenthispairofhosts.
WhichofthefollowingistrueinaMachoperatingsystem?

Allmessageshavethesamepriority.

Whencommunicatingwithsockets,aclientprocessinitiatesarequestfora
http://www.studystack.com/flashcard1147054

2/7

12/5/2014

FlashcardsaboutCOP4610Midterm

connectionandisassignedaportbythehostcomputer.Whichofthe
followingwouldbeavalidportassignmentforthehostcomputer?

1625

The_____________referstothenumberofprocessesinmemory.

degreeofmultiprogramming

LocalProcedureCallsinWindowsXParesimilartoRemoteProcedure
Calls.

True

Thedifferencebetweenaprogramandaprocessisthataprogramisan
activeentitywhileaprocessisapassiveentity.

False

WhatisthenumericpriorityofaWindowsXPthreadinthe
BELOW_NORMAL_PRIORITY_CLASSwithNORMALrelativepriority?

With_______athreadexecutesonaprocessoruntilalonglatencyevent
(i.e.amemorystall)occurs.

coarsegrainedmultithreading

Asignificantproblemwithpriorityschedulingalgorithmsis_____.

starvation

____isthenumberofprocessesthatarecompletedpertimeunit.

Throughput

InSolaris,ifaninteractivethreadwithpriority15usesitsentiretime
quantum,whatisitspriorityrecalculatedto?

ThedefaultschedulingclassforaprocessinSolarisis____.

timesharing

Loadbalancingistypicallyonlynecessaryonsystemswithacommonrun
queue.

False

SMPsystemsthatusemulticoreprocessorstypicallyrunfasterthanSMP
systemsthatplaceeachprocessoronseparatecores.

True

Solaris,WindowsXP,andLinuxassignhigherprioritythreads/taskslonger
timequantumsandlowerprioritytasksshortertimequantums.

False

Inpreemptivescheduling,thesectionsofcodeaffectedbyinterruptsmust
beguardedfromsimultaneoususe.

True

WhatisthenumericpriorityofaWindowsXPthreadinthe
HIGH_PRIORITY_CLASSwithABOVE_NORMALrelativepriority?

14

WhatisthenumericpriorityofaWindowsXPthreadinthe
NORMAL_PRIORITY_CLASSwithHIGHESTrelativepriority?

10

InLittle'sformulan=xW,whatdoesWrepresent?

averagewaitingtimeinthequeue

InSolaris,whatisthetimequantum(inmilliseconds)ofaninteractive
threadwithpriority35?

80

ASolarisinteractivethreadwithatimequantumof80hasahigherpriority
thananinteractivethreadwithatimequantumof120.

True

Systemsusingaonetoonemodel(suchasWindowsXP,Solaris9,and
Linux)schedulethreadsusingprocesscontentionscope(PCS).

False

Amulticoresystemallowstwo(ormore)threadsthatareincomputecycles
True
toexecuteatthesametime.
____schedulingisapproximatedbypredictingthenextCPUburstwithan
exponentialaverageofthemeasuredlengthsofpreviousCPUbursts.

SJF

______allowsathreadtorunononlyoneprocessor.

Processoraffinity

InLittle'sformulan=xW,whatdoesrepresent?

averagearrivalratefornewprocessesinthequeue

WhatisthenumericpriorityofaWindowsXPthreadinthe
HIGH_PRIORITY_CLASSwithABOVE_NORMALrelativepriority?

14

InSolaris,ifaninteractivethreadwithpriority25iswaitingforI/O,whatis
itspriorityrecalculatedtowhenitiseligibletorunagain?

52

InRRscheduling,thetimequantumshouldbesmallwithrespecttothe
contextswitchtime.

False

Loadbalancingalgorithmshavenoimpactonthebenefitsofprocessor
affinity.

False

VirtualizationdoesnotallowasingleCPUsystemtoappearasa
multiprocessorsystem.

False

InLinux,tasksthatarenotrealtimehavedynamicprioritiesthatarebased
nice
ontheir____valuesplusorminusthevalue5.
InLittle'sformulan=xW,whatdoesnrepresent?

averagequeuelength

WhatisthenumericpriorityofaWindowsXPthreadinthe
HIGH_PRIORITY_CLASSwithABOVE_NORMALrelativepriority?

14

nSolaris,ifaninteractivethreadwithpriority15usesitsentiretime
quantum,whatisitspriorityrecalculatedto?

InSolaris,whatisthetimequantum(inmilliseconds)ofaninteractive
threadwithpriority35?

80

http://www.studystack.com/flashcard1147054

3/7

12/5/2014

FlashcardsaboutCOP4610Midterm

The_____modelmapsmanyuserlevelthreadstoonekernelthread.

manytoone

A_____usesanexistingthreadratherthancreatinganewoneto
completeatask.

threadpool

Inmultithreadedprograms,thekernelinformsanapplicationaboutcertain
eventsusingaprocedureknownasa(n)____.

upcall

A____providesanAPIforcreatingandmanagingthreads.

threadlibrary

Whichofthefollowingstatementsregardingthreadsisfalse?

SharingisautomaticallyprovidedinJavathreads.

Deferredcancellationispreferredoverasynchronouscancellation.

True

Eachthreadhasitsownregistersetandstack.

True

Virtuallyallcontemporaryoperatingsystemssupportkernelthreads.

True

AthreadiscomposedofathreadID,programcounter,registerset,and
heap.

False

The____multithreadingmodelmultiplexesmanyuserlevelthreadstoa
smallerorequalnumberofkernelthreads.

manytomanymodel

InPthreads,aparentusesthepthread_join()functiontowaitforitschild
threadtocomplete.WhatistheequivalentfunctioninWin32?

WaitForSingleObject()

ThemostcommontechniqueforwritingmultithreadedJavaprogramsis
_____.

implementingtheRunnableinterfaceanddefiningitsrun()method

Signalscanbeemulatedinwindowsthrough____.

asynchronousprocedurecalls

Threadspecificdataisdatathat____.

iscopiedandnotsharedwiththeparentprocess

Virtuallyallcontemporaryoperatingsystemssupportkernelthreads.

True

Linuxdistinguishesbetweenprocessesandthreads.

False

Whichofthefollowingwouldbeanacceptablesignalhandlingschemefor
amultithreadedprogram?

DeliverthesignaltothethreadtowhichthesignalappliesDeliver
thesignaltoeverythreadintheprocessDeliverthesignalto
certainthreadsintheprocessAssignaspecificthreadtoreceive
allsignalsfortheprocess

Monitorsareatheoreticalconceptandarenotpracticedinmodern
programminglanguages

False

Adeadlockfreesolutioneliminatesthepossibilityofstarvation.

False

Mutexlocksandbinarysemaphoresareessentiallythesamething.

True

Ascheduleinwhicheachtransactionisexecutedatomicallyiscalleda(n)
____.

serialschedule

Asemaphore____.

isessentiallyanintegervariable

Aracecondition____.

resultswhenseveralthreadstrytoaccessandmodifythesame
dataconcurrently

_____isnotatechniqueforhandlingcriticalsectionsinoperatingsystems
onmodernarchitctures

Peterson'ssolution

Atransaction_____.

performsasinglelogicalfunction

A(n)_______referstowhereaprocessisaccessing/updatingshareddata

criticalsection

Raceconditionsarepreventedbyrequiringthatcriticalregionsbe
protectedbylocks

true

Athreadwillimmediatelyacquireadispatcherlockthatisthesignalstate

True

UNIXdoesnotallowuserstoescalateprivilegestogainextrapermissions
forarestrictedactivity.

False

Aclusteredsystem____.

gatherstogethermultipleCPUstoaccomplishcomputationalwork

_____provide(s)aninterfacetotheservicesprovidedbyanoperating
system.

Systemcalls

Themajordifficultyindesigningalayeredoperatingsystemapproachis
____.

appropriatelydefiningthevariouslayers

ApplicationprogrammerstypicallyuseanAPIratherthandirectoryinvoking
True
systemcalls.
Somelevelofhardwaresupportisrequiredtoprovidevirtualization.

True

Ablockingsend()andblockingreceive()isknownasa(n)
_________________

rendezvous

OrdinarypipesinUNIXrequireaparentchildrelationshipbetweenthe
communicatingprocesses.

True

TheMachoperatingsystemtreatssystemcallswithmessagepassing.

True

ThelistofprocesseswaitingforaparticularI/Odeviceiscalleda(n)____.

devicequeue

http://www.studystack.com/flashcard1147054

4/7

12/5/2014

FlashcardsaboutCOP4610Midterm

OrdinarypipesinWindowsrequireaparentchildrelationshipbetweenthe
communicatingprocesses.

true

Ina(n)____temporaryqueue,thesendermustalwaysblockuntilthe
recipientreceivesthemessage.

zerocapacity

Whichofthefollowingwouldbeanacceptablesignalhandlingschemefor
amultithreadedprogram?

Deliverthesignaltothethreadtowhichthesignalapplies.Deliver
thesignaltoeverythreadintheprocess.Deliverthesignaltoonly
certainthreadsintheprocess.

nmultithreadedprograms,thekernelinformsanapplicationaboutcertain
eventsusingaprocedureknownasa(n)____.

upcall

The_____modelallowsauserlevelthreadtobeboundtoonekernel
thread.

twolevel

Pthreadsrefersto____.

WRONG:animplementationforthreadbehavior.POSIXstandard
defininganAPIforthreadcreationandsynchronization??

tispossibletocreateathreadlibrarywithoutanykernellevelsupport.

True

Atraditional(orheavyweight)processhasasinglethreadofcontrol.

True

LWPis____.

placedbetweenuserandkeenerthreads

____isathreadlibraryforSolaristhatmapsmanyuserlevelthreadsto
onekernelthread.

GreenThreads

InLittle'sformulan=xW,whatdoesnrepresent?

averagequeuelength

Whichofthefollowingistrueofmultilevelqueuescheduling?

Eachqueuehasitsownschedulingalgorithm.

Themostcomplexschedulingalgorithmisthemultilevelfeedbackqueue
algorithm.

true

Ascheduleinwhicheachtransactionisexecutedatomicallyiscalleda(n)
____.

serialschedule

AssumeanadaptivemutexisusedforaccessingshareddataonaSolaris
Conditionvariablesandsemaphoresareneverusedinplaceofan
systemwithmultiprocessingcapabilities.Whichofthefollowingstatements
adaptivemutex.
isnottru
HowmanyphilosophersmayeatsimultaneouslyintheDiningPhilosophers
2
problemwith5philosophers?
Atransaction____.

performsasinglelogicalfunction

Asolutiontothecriticalsectionproblemdoesnothavetosatisfywhichof
thefollowingrequirements?

atomicity

Whatisthepurposeofthemutexsemaphoreintheimplementationofthe
boundedbufferproblemusingsemaphores?

Itensuresmutualexclusion.

Raceconditionsarepreventedbyrequiringthatcriticalregionsbe
protectedbylocks.

true

Thevalueofacountingsemaphorecanrangeonlybetween0and1.

False

Athreadwillimmediatelyacquireadispatcherlockthatisthesignaled
state.

True

Adeadlockfreesolutioneliminatesthepossibilityofstarvation.

False

Atransaction____.

performsasinglelogicalfunction

A___typepresentsasetofprogrammerdefinedoperationsthatare
providedmutualexclusionwithinit.

monitor

_____canbeusedtopreventbusywaitingwhenimplementinga
semaphore.

block??waitingqueues

InPeterson'ssolution,the____variableindicatesifaprocessisreadyto
enteritscriticalsection.

flag[i]

Asemaphore____.

isessentiallyanintegervariable

Thefirstreaderswritersproblem____.

requiresthatnoreaderwillbekeptwaitingunlessawriterhas
alreadyobtainedpermissiontousetheshareddatabase.

requiresthatnoreaderwillbekeptwaitingunlessawriterhasalready
obtainedpermissiontousetheshareddatabase.

False

Monitorsareatheoreticalconceptandarenotpracticedinmodern
programminglanguages

False

Mutexlocksandcountingsemaphoresareessentiallythesamething.

False

EveryobjectinJavahasassociatedwithitasinglelock.

True

Mutexlocksandbinarysemaphoresareessentiallythesamething.

True

Aracecondition____.

resultswhenseveralthreadstrytoaccessandmodifythesame
dataconcurrently

_____isnotatechniqueforhandlingcriticalsectionsinoperatingsystems
http://www.studystack.com/flashcard1147054

Peterson'ssolution
5/7

12/5/2014

FlashcardsaboutCOP4610Midterm

onmodernarchitectures.
WindowsXP,whenaccessingaglobalvariableonauniprocessorsystem,
____.

masksinterruptsforallinterrupthandlersthatmayalsoaccessthe
variable

Monitorsareatheoreticalconceptandarenotpracticedinmodern
programminglanguages

False

Athreadwillimmediatelyacquireadispatcherlockthatisthesignaled
state.

true

EveryobjectinJavahasassociatedwithitasinglelock.

True

Thevalueofacountingsemaphorecanrangeonlybetween0and1.

False

WhichofthefollowingstatementsisNOTtrue?

WRONGAcountingsemaphorecanneverbeusedasabinary
semaphore.WRONGAbinarysemaphorecanneverbeusedasa
countingsemaphore.

Whenusingsemaphores,aprocessinvokesthewait()operationbefore
accessingitscriticalsection,followedbythesignal()operationupon
completionofitscriticalsection.Considerreversingtheorderofthesetwo
operationsfirstcallingsignal(),

Severalprocessescouldbeactiveintheircriticalsectionsatthe
sametime.

Aninstructionthatexecutesatomically____.

executesasasingle,uninterruptibleunit

Thelocalvariablesofamonitorcanbeaccessedbyonlythelocal
procedures.

True

Raceconditionsarepreventedbyrequiringthatcriticalregionsbe
protectedbylocks.

True

Whatisthepurposeofthemutexsemaphoreintheimplementationofthe
boundedbufferproblemusingsemaphores?

Itensuresmutualexclusion.

Thefirstreaderswritersproblem____.

requiresthatnoreaderwillbekeptwaitingunlessawriterhas
alreadyobtainedpermissiontousetheshareddatabase.

A(n)_______referstowhereaprocessisaccessing/updatingshareddata. criticalsection
Aracecondition____.

resultswhenseveralthreadstrytoaccessandmodifythesame
dataconcurrently

Mutexlocksandbinarysemaphoresareessentiallythesamething.

True

Thevalueofacountingsemaphorecanrangeonlybetween0and1.

False

Adeadlockfreesolutioneliminatesthepossibilityofstarvation.

False

Aspinlock____.

doesnotrequireacontextswitchwhenaprocessmustwaitona
lock

EveryobjectinJavahasassociatedwithitasinglelock.

True

WindowsXP,whenaccessingaglobalvariableonauniprocessorsystem,
____.

masksinterruptsforallinterrupthandlersthatmayalsoaccessthe
variable

Monitorsareatheoreticalconceptandarenotpracticedinmodern
programminglanguages

False

A(n)_______referstowhereaprocessisaccessing/updatingshareddata. criticalsection
Theexec()systemcallcreatesanewprocess.

False

_____is/arenotatechniqueforpassingparametersfromanapplicationto
asystemcall.

Cache

_____isnotoneofthemajorcategoriesofsystemcalls.

Security

ManyoperatingsystemmergeI/Odevicesandfilesintoacombinedfile
becauseofthesimilarityofsystemcallsforeach.

True

Abootblock____.

typicallyonlyknowsthelocationandlengthoftherestofthe
bootstrapprogram

Thevirtualmachine[VM]conceptisdesignedtoinsulatevarioussystem
resourcesfromprocessesrunningontheVM.

True

Aprocesscontrolblock____.

includesinformationontheprocess'sstate

SharedmemoryisamoreappropriateIPCmechanismthanmessage
passingfordistributedsystems.

False

_____isnotconsideredachallengewhendesigningapplicationsfor
multicoresystems.

Ensuringthereisasufficientnumberofcores

WindowsXPusesthe____.

onetoonemodelmanytoonemodelonetomanymodelmanyto
manymodel

Cancellationpointsareassociatedwith____cancellation.

deferredasynchronousdeferredsynchronous

Thesinglebenefitofathreadpoolistocontrolthenumberofthreads.

False

InJava,datasharedbetweenthreadsissimplydeclaredglobally.

False

The_____modelmapseachuserlevelthreadtoonekernelthread.

onetoone

http://www.studystack.com/flashcard1147054

6/7

12/5/2014

FlashcardsaboutCOP4610Midterm

__________involvesthedecisionofwhichkernelthreadtoscheduleonto
whichCPU.

Systemcontentionscope

ASolarisinteractivethreadwithpriority15hasahigherrelativeprioritythan
False
aninteractivethreadwithpriority20
The______occursinfirstcomefirstservedschedulingwhenaprocess
withalongCPUburstoccupiestheCPU.

Convoyeffect

Whichofthefollowingistrueofcooperativescheduling?

AprocesskeepstheCPUuntilitreleasestheCPUeitherby
terminatingorbyswitchingtothewaitingstate.

Roundrobin(RR)schedulingdegeneratestofirstcomefirstserved(FCFS)
True
schedulingifthetimequantumistoolong.
Createdby:gumaturanaon20130110

Copyright20012014StudyStackLLCAllrightsreserved.

badsites

http://www.studystack.com/flashcard1147054

7/7

También podría gustarte