您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 其它相关文档 > Chapter-3-Q&A
OperatingSystemsChapter3–ProcessDescriptionandControlPage1of6Chapter3–ProcessDescriptionandControlTrue/FalseQuestions:1.T/F–Theprincipalfunctionoftheprocessoristoexecutemachineinstructionsresidinginmainmemory.ANS:T2.T/F–Aprocesstraceisalistingofthesequenceofinstructionsthatexecuteforthatprocess.ANS:T3.T/F–Theprincipalresponsibilityoftheoperatingsystemistocontroltheexecutionofprocesses.ANS:T4.T/F–Whenoneprocessspawnsanother,thespawningprocessisreferredtoasthechildprocessandthespawnedprocessisreferredtoastheparentprocess.ANS:F(oppositeistrue)5.T/F–Round-Robinprocessingreferstoamethodofthreadprioritizationforscheduling.ANS:F(notprioritized)6.T/F–TheprimarydifferencebetweentheTwo-StateProcessModelandtheFive-StateProcessModelisthatthelattersplitstheRunningstateintotwonewstates:ReadyandBlocked.ANS:F(splitstheNotRunningstate)7.T/F–Onesolutiontotheproblemoflimitedmainmemoryspaceisswapping,whichinvolvesmovingallorpartofaprocessfrommainmemorytosecondarymemory.ANS:T8.T/F–Inordertodefinethecontrolstructures(e.g.,tables)thattheO/Sneedstomanageprocessesandresources,itmusthaveaccesstoconfigurationdataduringinitialization.ANS:T9.T/F–TheProcessImagereferstothebinaryformoftheprogramcode.ANS:F(referstoprocesselements:program,data,stack&attributes)10.T/F–TheportionoftheProcessControlBlockthatconsistsofthecontentsoftheprocessorregistersiscalledtheProcessControlInformation.ANS:F(processorstateinformationportionofthePCBcontainsregisters)OperatingSystemsChapter3–ProcessDescriptionandControlPage2of611.T/F–Theless-privilegedprocessorexecutionmodeisoftenreferredtoaskernelmode.ANS:F(usermode)12.T/F–Theprimaryprocesstablecontainsoneentryperprocess,unlesstheprocessspawnsanewprocess,inwhichcasethetablecontainsmultipleentriesfortheparentprocess.ANS:F(onlyoneentryfortheparentprocess)13.T/F–Onekindofsysteminterrupt,thetrap,relatestoanerrororexceptionconditioninthecurrentlyrunningprocess.ANS:T14.T/F–IntheNonprocessKernelapproachtodefiningtherelationshipbetweentheO/SandtheUserProcess,theO/Scodeisexecutedasaseparateentitythatoperatesinprivilegedmode.ANS:T15.T/F–AtypicalUNIXsystememploystwoRunningstates,toindicatewhethertheprocessisexecutinginusermodeorkernelmode.ANS:TMultipleChoiceQuestions:1.Thebehaviorofaprocessorcanbecharacterizedbyexamining:a.Asingleprocesstraceb.Multipleprocesstracesc.Theinterleavingoftheprocesstracesd.AlloftheaboveANS:C2.Thebehaviorofanindividualprocesscanbecharacterizedbyexamining:a.Asingleprocesstraceb.Multipleprocesstracesc.Theinterleavingoftheprocesstracesd.AlloftheaboveANS:A3.ThebasicTwo-StateProcessModeldefinestwopossiblestatesforaprocessinrelationshiptotheprocessor:a.RunningandExecutingb.RunningandNotRunningc.ExecutingandWaitingd.NoneoftheaboveANS:B4.Thereareanumberofconditionsthatcanleadtoprocesstermination,including:OperatingSystemsChapter3–ProcessDescriptionandControlPage3of6a.Normalcompletionb.Boundsviolationc.Parentterminationd.AlloftheaboveANS:D5.IntheFive-StateProcessModel,thefollowingrepresentsavalidstatetransition:a.Running-Blockedb.New-Runningc.New-Blockedd.AlloftheaboveANS:A6.InaProcessModelthatimplementstwosuspendstates,avalidstatetransitionisrepresentedby:a.Ready/Suspend-Readyb.Running-Ready/Suspendc.Ready-Ready/Suspendd.AlloftheaboveANS:D7.Theschedulingstrategywhereeachprocessinthequeueisgivenacertainamountoftime,inturn,toexecuteandthenreturnedtothequeue,unlessblockedisreferredtoas:a.Prioritizationb.Round-Robinc.LIFOd.AlloftheaboveANS:B8.AMemoryTableisanO/ScontrolstructurethatisusedbytheO/Sto:a.ManageI/Odevicesb.Manageprocessesc.Provideinformationaboutsystemfilesd.NoneoftheaboveANS:D(usedtokeeptrackofmain“real”andsecondary“virtual”memory)9.TheProcessImageelementthatcontainsthecollectionofattributesneededbytheO/Stocontrolaparticularprocessiscalledthe:a.UserDatab.SystemStackc.ProcessControlBlockd.NoneoftheaboveANS:COperatingSystemsChapter3–ProcessDescriptionandControlPage4of610.TheProcessImageelementthatcontainsthemodifiablepartoftheuserspaceiscalledthe:a.UserProgramb.SystemStackc.ProcessControlBlockd.NoneoftheaboveANS:D(UserData)11.Theprocessorexecutionmodethatuserprogramstypicallyexecuteinisreferredtoas:a.Usermodeb.Systemmodec.Kernelmoded.NoneoftheaboveANS:A12.Onestepintheprocedureforcreatinganewprocessinvolves:a.Initializingtheprocesscontrolblockb.Allocatingspacefortheprocessc.Assigningauniqueidentifierd.AlloftheaboveANS:D13.Aprocessswitchmayoccurwhenthesystemencountersaninterruptcondition,suchasthatgeneratedbya:a.Memoryfaultb.Supervisorcallc.Trapd.AlloftheaboveANS:D14.IntheProcessBasedO/S:a.Majorkernelfunctionsareorganizedasseparatefunctionsb.TheUserProcessImageincludesakernelstackc.O/Scodeanddataarecontainedinthesharedaddressspaced.NoneoftheaboveANS:A15.InatypicalUNIXsystem,theelementoftheprocessimagethatcontainstheprocessorstatusinformationisthe:a.System-levelcontextb.Registercontextc.User-levelcontextd.AlloftheaboveANS:BOperatingSystemsChapter3–ProcessDescriptionandControlPage5of6Fill-In-The-BlankQuestions:1.Thelistingofasequenceofinstructionsthatexecuteforaparticularprocessiscalleda______
本文标题:Chapter-3-Q&A
链接地址:https://www.777doc.com/doc-5872301 .html