os interview questions
DESCRIPTION
notesTRANSCRIPT
-
22/07/2015 OSInterviewQuestionsInterviewQuestionsandAnswers23351
http://placement.freshersworld.com/powerpreparation/technicalinterviewpreparation/osinterviewquestions23351 1/5
P3Home>InterviewPreparation>TechnicalInterviewPrep>OSInterviewQuestions>OSInterviewQuestions
Morefromthislesson
OSAdvanced
TechnicalInterviewPrep
TechnicalInterviewIntroduction
CInterviewQuestions
C++InterviewQuestions|Free
C#InterviewQuestions
DBMSInterviewQuestions
OSInterviewQuestions
JavaInterviewQuestions
.NetInterviewQuestions
PHPInterviewQuestions
NetworkingInterviewQuestions
SoftwareTestingInterviewQuestions
DataStructureInterviewQuestions
AlgorithmsInterviewQuestions
ElectricalInterviewQuestions
ElectronicsInterviewQuestions
MechanicalInterviewQuestions
Civil
AndroidInterviewQuestions
OSInterviewQuestions Share 189409views,1225foundituseful
LearnandpracticeTechnicalInterviewPrep,InterviewPreparation,OSInterviewQuestionsquestionsandanswerswithexplanationforinterview,placementtest,onlinetest,competitiveexaminationandentrancetest
1.Whatisanoperatingsystem?
Anoperatingsystemisaprogramthatactsasan intermediarybetweentheuserand thecomputerhardware.ThepurposeofanOSistoprovideaconvenientenvironmentinwhichusercanexecuteprogramsinaconvenientandefficientmanner.2.Whatarethedifferentoperatingsystems?
1.Batchedoperatingsystems2.Multiprogrammedoperatingsystems
3.timesharingoperatingsystems4.Distributedoperatingsystems
5.Realtimeoperatingsystems3.Whatarethebasicfunctionsofanoperatingsystem?Operatingsystemcontrolsandcoordinatestheuseofthehardwareamongthevariousapplicationsprogramsforvarioususes.Operatingsystemactsasresourceallocatorandmanager.Alsooperatingsystemiscontrolprogramwhichcontrolstheuserprogramstopreventerrorsandimproperuseofthecomputer.ItisespeciallyconcernedwiththeoperationandcontrolofI/Odevices.4.Whatiskernel?KernelisthecoreandessentialpartofcomputeroperatingsystemthatprovidesbasicservicesforallpartsofOS.5.Whatisdifferencebetweenmicrokernelandmacrokernel?Microkernelisakernelwhichrunservicesthoseareminimalforoperatingsystemperformance.Inthiskernelallotheroperationsareperformedbyprocessor.
Macro Kernel is a combination of micro and monolithic kernel. In monolithic kernel all operatingsystemcodeisinsingleexecutableimage.6.Whatisdeadlock?
Deadlockisasituationorconditionwherethetwoprocessesarewaitingforeachothertocompletesothattheycanstart.Thisresultboththeprocessestohang.7.Whatisaprocess?
Aprograminexecutioniscalledaprocess.Processesareoftwotypes:1.Operatingsystemprocesses2.Userprocesses8.Whatarethestatesofaprocess?1.New2.Running3.Waiting4.Ready5.Terminated9.Whatisstarvationandaging?StarvationisResourcemanagementproblemwhereaprocessdoesnotgettheresourcesitneedsforalongtimebecausetheresourcesarebeingallocatedtootherprocesses.
Agingisatechniquetoavoidstarvationinaschedulingsystem.
10.Whatissemaphore?Semaphoreisavariable,whosestatusreportscommonresource,SemaphoreisoftwotypesoneisBinarysemaphoreandotherisCountingsemaphore.11.Whatiscontextswitching?Transferringthecontrolfromoneprocesstootherprocessrequiressavingthestateoftheoldprocessandloadingthesavedstatefornewprocess.Thistaskisknownascontextswitching.12.Whatisathread?Athreadisaprogramlineunderexecution.Threadsometimescalledalightweightprocess,isabasicunitofCPUutilizationitcomprisesathreadid,aprogramcounter,aregisterset,andastack13.Whatisprocesssynchronization?A situation, where several processes access andmanipulate the same data concurrently and theoutcomeoftheexecutiondependsontheparticularorderinwhichtheaccesstakesplace,iscalledracecondition.Toguardagainsttheraceconditionweneedtoensurethatonlyoneprocessatatimecanbemanipulatingthesamedata.Thetechniqueweuseforthisiscalledprocesssynchronization.
14.Whatisvirtualmemory?
Virtualmemoryishardwaretechniquewherethesystemappearstohavemorememorythatitactually
7.2kLike
PlacementPapers AptitudePreparation InterviewPreparation GeneralKnowledge OnlineTest BuyNow
-
22/07/2015 OSInterviewQuestionsInterviewQuestionsandAnswers23351
http://placement.freshersworld.com/powerpreparation/technicalinterviewpreparation/osinterviewquestions23351 2/5
does.This isdonebytimesharing, thephysicalmemoryandstoragepartsof thememoryonediskwhentheyarenotactivelybeingused.
15.Whatisthrashing?
Itisaphenomenoninvirtualmemoryschemeswhentheprocessorspendsmostofitstimeswappingpages,ratherthanexecutinginstructions.Thisisduetoaninordinatenumberofpagefaults.
16.Whatisfragmentation?Tellaboutdifferenttypesoffragmentation?Whenmanyof freeblocksare too small to satisfyany request then fragmentationoccurs.Externalfragmentation and internal fragmentation are two types of fragmentation. External Fragmentationhappenswhenadynamicmemoryallocationalgorithmallocatessomememoryandasmallpieceisleftoverthatcannotbeeffectivelyused.Internalfragmentationisthespacewastedinsideofallocatedmemoryblocksbecauseofrestrictionontheallowedsizesofallocatedblocks.
17.Whatarenecessaryconditionsfordeadlock?
1.Mutualexclusion(whereatleastoneresourceisnonsharable)2.Holdandwait(whereaprocessholdsoneresourceandwaitsforotherresource)
3.Nopreemption(wheretheresourcescantbepreempted)4.Circularwait(wherep[i]iswaitingforp[j]toreleasearesource.i=1,2,n
j=if(i!=n)theni+1else1)
18.Whatiscachememory?
Cachememory israndomaccessmemory(RAM)thatacomputermicroprocessorcanaccessmorequickly than it canaccess regularRAM.As themicroprocessor processesdata, it looks first in thecachememoryandifitfindsthedatathere(fromapreviousreadingofdata),itdoesnothavetodothemoretimeconsumingreadingofdatafromlargermemory.
19.Whatislogicalandphysicaladdressesspace?Logical address space is generated from CPU it bound to a separate physical address space iscentraltopropermemorymanagement.Physicaladdressspaceisseenbythememoryunit.Logicaladdressspaceisvirtualaddressspace.Boththeseaddressspacewillbesameatcompiletimebutdifferatexecutiontime.
20.DifferentiatebetweenComplierandInterpreter?
Aninterpreterreadsoneinstructionatatimeandcarriesouttheactionsimpliedbythatinstruction.Itdoesnotperformanytranslation.Butacompilertranslatestheentireinstructions
21.WhatisThroughput,Turnaroundtime,waitingtimeandResponsetime?Throughputnumberofprocessesthatcompletetheirexecutionpertimeunit
TurnaroundtimeamountoftimetoexecuteaparticularprocessWaitingtimeamountoftimeaprocesshasbeenwaitinginthereadyqueue
Responsetimeamountoftimeittakesfromwhenarequestwassubmitteduntilthefirstresponseisproduced,notoutput(fortimesharingenvironment)
22.WhatisMemoryManagementUnit(MMU)?Hardwaredevicethatmapsvirtualtophysicaladdress.InMMUscheme,thevalueintherelocationregisterisaddedtoeveryaddressgeneratedbyauserprocessatthetimeitissenttomemory.
>Theuserprogramdealswithlogicaladdressesitneverseestherealphysicaladdresses
23.WhatisaRealTimeSystem?Arealtimeprocessisaprocessthatmustrespondtotheeventswithinacertaintimeperiod.Arealtimeoperatingsystemisanoperatingsystemthatcanrunrealtimeprocessessuccessfully
24.Whatisatrapandtrapdoor?
Trapdoor isasecretundocumentedentrypoint intoaprogramusedtograntaccesswithoutnormalmethodsofaccessauthentication.Atrapisasoftwareinterrupt,usuallytheresultofanerrorcondition.
25.Whenisasysteminsafestate?Thesetofdispatchableprocessesisinasafestateifthereexistsatleastonetemporalorderinwhichallprocessescanberuntocompletionwithoutresultinginadeadlock.
26.ExplaintheconceptoftheDistributedsystems?
Distributedsystemsworkinanetwork.Theycansharethenetworkresources,communicatewitheachother.
27.Whatiscachecoherency?InamultiprocessorsystemthereexistseveralcacheseachmaycontainingacopyofsamevariableA.Then a change in one cache should immediately be reflected in all other caches this process ofmaintainingthesamevalueofadatainallthecachesscalledcachecoherency.
28.Whatisalongtermscheduler&shorttermschedulers?
Longtermschedulersarethejobschedulersthatselectprocessesfromthejobqueueandloadthemintomemoryforexecution.TheshorttermschedulersaretheCPUschedulersthatselectaprocessfromthereadyqueueandallocatetheCPUtooneofthem.
29.Explainthemeaningofmutex.MutexistheshortformforMutualExclusionobject.Amutexallowsmultiplethreadsforsharingthesameresource.Theresourcecanbefile.Amutexwithauniquenameiscreatedatthetimeofstartingaprogram.Amutexmustbe locked fromother threads,whenany thread thatneeds the resource.
-
22/07/2015 OSInterviewQuestionsInterviewQuestionsandAnswers23351
http://placement.freshersworld.com/powerpreparation/technicalinterviewpreparation/osinterviewquestions23351 3/5
Whenthedataisnolongerused/needed,themutexissettounlock.
30.Whatiscyclestealing?
WeencountercyclestealinginthecontextofDirectMemoryAccess(DMA).EithertheDMAcontrollercanusethedatabuswhentheCPUdoesnotneedit,oritmayforcetheCPUtotemporarilysuspendoperation.Thelattertechniqueiscalledcyclestealing.Notethatcyclestealingcanbedoneonlyatspecificbreakpointsinaninstructioncycle.
31.WhatisMarshalling?The process of packaging and sending interface method parameters across thread or processboundaries.
32.Whatisadaemon?
Daemon is a program that runs in the backgroundwithout users interaction. A daemon runs in amultitaskingoperatingsystem likeUNIX.Adaemon is initiatedandcontrolledby special programsknownasprocesses.
33.Whatispreemptiveandnonpreemptivescheduling?Preemptivescheduling:Thepreemptiveschedulingisprioritized.Thehighestpriorityprocessshouldalwaysbetheprocessthatiscurrentlyutilized.
NonPreemptivescheduling:Whenaprocessentersthestateofrunning,thestateofthatprocessisnotdeletedfromthescheduleruntilitfinishesitsservicetime.
34.Whatisbusywaiting?Therepeatedexecutionofaloopofcodewhilewaitingforaneventtooccuriscalledbusywaiting.TheCPUisnotengagedinanyrealproductiveactivityduringthisperiod,andtheprocessdoesnotprogresstowardcompletion.
35.Whatispagecannibalizing?
Pageswappingorpagereplacementsarecalledpagecannibalizing.
36.WhatisSMP?To achieve maximum efficiency and reliability a mode of operation known as symmetricmultiprocessing is used. In essence, with SMP any process or threads can be assigned to anyprocessor.
37.Whatisprocessmigration?
Itisthetransferofsufficientamountofthestateofprocessfromonemachinetothetargetmachine.
38.DifferencebetweenPrimarystorageandsecondarystorage?Primarymemoryisthemainmemory(Harddisk,RAM)wheretheoperatingsystemresides.
Secondarymemorycanbeexternaldevices likeCD, floppymagneticdiscsetc. secondarystoragecannotbedirectlyaccessedbytheCPUandisalsoexternalmemorystorage.
39.Definecompactions.Compactionisaprocessinwhichthefreespaceiscollectedinalargememorychunktomakesomespaceavailableforprocesses.
40.Whatareresidencemonitors?
Earlyoperatingsystemswerecalledresidencemonitors.
41.Whatisdualmodeoperation?InordertoprotecttheoperatingsystemsandthesystemprogramsfromthemalfunctioningprogramsthetwomodeoperationswereevolvedSystemmodeUsermode.
42.Whatisadevicequeue?
AlistofprocesseswaitingforaparticularI/Odeviceiscalleddevicequeue.
43.WhatarethedifferenttypesofRealTimeScheduling?Hardrealtimesystemsrequiredtocompleteacriticaltaskwithinaguaranteedamountoftime.Softrealtimecomputingrequiresthatcriticalprocessesreceivepriorityoverlessfortunateones.
44.Whatisrelativepathandabsolutepath?
AbsolutepathExactpathfromrootdirectory.RelativepathRelativetothecurrentpath.
45.Whatarethedisadvantagesofcontextswitching?Timetakenforswitchingfromoneprocesstootherispureoverhead.Becausethesystemdoesnousefulworkwhileswitching.Sooneofthesolutionsistogoforthreadingwheneverpossible.
46.Whatisadataregisterandaddressregister?
Dataregisterscanbeassignedtoavarietyoffunctionsbytheprogrammer.Theycanbeusedwithanymachineinstructionthatperformsoperationsondata.Addressregisterscontainmainmemoryaddressesofdataandinstructionsortheycontainaportionoftheaddressthatisusedinthecalculationofthecompleteaddresses.
47.WhatisDRAM?
-
22/07/2015 OSInterviewQuestionsInterviewQuestionsandAnswers23351
http://placement.freshersworld.com/powerpreparation/technicalinterviewpreparation/osinterviewquestions23351 4/5
Jobs
JOBSBYCATEGORY JOBSBYCOURSES
PlacementPreparation
SAMPLEPLACEMENTPAPERS
Readmore
Interviewtips Jobinterview Interviewpreparation
Phoneinterview InterviewpreparationTips InterviewPreparationandbasictips
4differentpartsofinterviewpreparation HowToDressForYourNextJobInterview Interviewbodylanguage
BankInterviewquestions&Answers GroupDiscussionTopics Groupdiscussiontips
TypesofGroupDiscussion HRinterviewquestions
DynamicRamstoresthedataintheformofCapacitance,andStaticRAMstoresthedatainVoltages.
48.Whatarelocalandglobalpagereplacements?
Localreplacementmeansthatanincomingpageisbroughtinonlytotherelevantprocess'addressspace.Globalreplacementpolicyallowsanypageframefromanyprocesstobereplaced.Thelatterisapplicabletovariablepartitionsmodelonly.
49.Explaintheconceptofthebatchedoperatingsystems?In batched operating system the users gives their jobs to the operator who sorts the programsaccordingtotheirrequirementsandexecutesthem.ThisistimeconsumingbutmakestheCPUbusyallthetime.
50.WhatisSCSI?
SCSISmallcomputersystemsinterfaceisatypeofinterfaceusedforcomputercomponentssuchasharddrives,opticaldrives, scannersand tapedrives. It isacompeting technology tostandard IDE(IntegratedDriveElectronics).51.Whenisasysteminsafestate?Thesetofdispatchableprocessesisinasafestateifthereexistsatleastonetemporalorderinwhichallprocessescanberuntocompletionwithoutresultinginadeadlock.
52.Whatiscyclestealing?
WeencountercyclestealinginthecontextofDirectMemoryAccess(DMA).EithertheDMAcontrollercanusethedatabuswhentheCPUdoesnotneedit,oritmayforcetheCPUtotemporarilysuspendoperation.Thelattertechniqueiscalledcyclestealing.Notethatcyclestealingcanbedoneonlyatspecificbreakpointsinaninstructioncycle.53.Whatisanidlethread?
Thespecialthreadadispatcherwillexecutewhennoreadythreadisfound.54.WhatisFtDisk?
ItisafaulttolerancediskdriverforWindowsNT.55.WhatisDispatcher?
DispatchermodulegivescontroloftheCPUtotheprocessselectedbytheshorttermschedulerthisinvolves: Switching context, Switching to user mode, Jumping to the proper location in the userprogramtorestartthatprogram,dispatchlatencytimeittakesforthedispatchertostoponeprocessandstartanotherrunning.56.Whendoesthecondition'rendezvous'arise?
Inmessagepassing,it istheconditioninwhich,both,thesenderandreceiverareblockeduntilthemessageisdelivered.57.Whatisprocessspawning?
WhentheOSattheexplicitrequestofanotherprocesscreatesaprocess,thisactioniscalledprocessspawning58.Whatarethereasonsforprocesssuspension?1)swapping2)interactiveuserrequest3)timing4)parentprocessrequest
59.WhatarethesubcomponentsofI/OmanagerinWindowsNT?1)Networkredirector/Server2)Cachemanager.3)Filesystems4)Networkdriver5)Devicedriver60.WhatisadrawbackofMVT?1)abilitytosupportmultipleprocessors2)virtualstorage3)sourceleveldebugging
FoundThisUseful?: Yes No
Career&Courses
HIGHERSTUDIESININDIA TRAININGCOURSES
-
22/07/2015 OSInterviewQuestionsInterviewQuestionsandAnswers23351
http://placement.freshersworld.com/powerpreparation/technicalinterviewpreparation/osinterviewquestions23351 5/5
IT/SoftwareJobsCoreTechnicalJobsGovernmentSectorJobsDefenceJobsResearchJobsBPOJobsBankJobsDreamJobs>5lpaWalkinsJobsManpowerConsultantsTeachingJobs13YearsExp.Jobs
ArchivedJobJobResultsJobsbyCompanyJobsbyBranchesJobsbyRolesJobsbySkillsInternshipsScholarshipsSuccessStories
BE/B.TechJobsMCAJobsMBA/PGDMJobsME/M.TechJobsM.ScJobsB.ComJobsBBA/BBMJobsBCAJobsB.ScJobsDiplomaJobsJOBSBYCITIES
JobsinAhmedabadJobsinBangaloreJobsinChennaiJobsinDelhi/NCRJobsinHyderabadJobsinKolkataJobsinMumbaiJobsinPuneJobsinGurgaonJobsinNoida
PlacementPapersSelectionProcedureCompanyProfilesLatestPapersITCompaniesNonITCompaniesBankPapers
POWER PLACEMENT
PREPARATIONAptitudePreparationGeneralKnowledgeInterviewPreparationOnlineTestsITCompaniesPreparationGATEPreparationCATPreparationBankExamPreparationPSUCompaniesPreparation
GetinTouch
M.TechMBAMCATESTPREPARATION
GREGMATCAT/MATIELTS/TOEFLGATEDefenceCivilServicesSTUDIESABROAD
USAAustraliaUKNewZealandCanadaSingapore
Java/J2EEPHP/MySQLSEO/WebDesigningAssemblyLanguageAndroidDevelopmentBlackBerryDevelopmentiPhoneDevelopmentMobileTestingWirelessTechnologyMicroSoft(MS)SQLMicrosoft(MS)AccessHTML/JavaSript/CSS/AjaxJoomla/Drupal/WordpressASPASP.NET/C#CC++
ListyourInstitutehere
CandidateServices
Freshersworld.com:TheNo.1JobsiteforFreshersinIndia
Freshersworld.com:TheNo.1JobsiteforFreshersinIndia.Getyourdreamjobwithus.TopMNCJobs&GovernmentJobsfromallaroundIndia.RegisterandgetfreejobalertsforGovt.JobsandotherSarkariNaukrijobseveryday!
AboutUs | Blog | FAQs | AdvertiseWithUs | RecruitmentSolutions | ContactUs
TermsofUse | PrivacyPolicy | Copyright | Sitemap 20002015Freshersworld.com