Вы находитесь на странице: 1из 6

9/29/2015

EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ

Embeddedsystemsinterviewquestionsandanswers
Search

Interview Currentaffairs Civilservices Banking Engineering MBA GD Placementpapers HR CV Coverletter Aptitude English Onlinetest
Askquestion! Prep.online

ComputerArchitecture:AQuantitativeApproach

InterviewQuestionsPDF
EmbeddedSystems
C++PDF

JohnL.Hennessy,DavidA.Patterson
Tapablanda

64,95

EmbeddedSystemsinterviewquestionsandanswers

Interviewquestions
ASP.NET

VLSI

ADO.NET

Embeddedsystemsinterviewtest(15questions)

AJAX
C#.NET
Part1Part2Part3Part4Part5

VB.NET
NETRemoting

Embeddedsystemsinterviewquestionsforfreshersbasicquestions

NETinterview
AdvancedEmbeddedsystemsinterviewquestionsseniorlevelquestions

WhatistheneedforaninfiniteloopinEmbeddedsystems?

C++

Howdoescombinationoffunctionsreducememoryrequirementsinembeddedsystems?

Java

AvastmajorityofHighPerformanceEmbeddedsystemstodayuseRISCarchitecturewhy?
Whydoweneedvirtualdevicedriverswhenwehavephysicaldevicedrivers?

Oops

WhatistheneedforDMACinES?

Datastructure

WhatisEndiannessofasystemandhowdodifferentsystemscommunicatewitheachother?
Howaremacrosdifferentfrominlinefunctions?

Operatingsystem

WhatcouldbethereasonsforaSystemtohavegoneblankandhowwouldyouDebugit?

Databaseconcepts

Explaininterruptlatencyandhowcanwedecreaseit?

Oracle

Howtocreateachildprocessinlinux?
SignificanceofwatchdogtimerinEmbeddedSystems

Sqlserver

IfyoubuysomeRTOS,whatarethefeaturesyoulookforin?

Biztalk

Whyisjavamostlyusedinembeddedsystems?

Sharepoint

Differentiatebetweenmutexesvssemaphores

Notificationservices

WhatarethecommonlyfounderrorsinEmbeddedSystems?

Reportingservices

Whatistheneedforhavingmultibytedatainputandoutputbuffersincaseofdeviceports?

Serviceorientedarchitecture

WhatistheneedforaninfiniteloopinEmbeddedsystems?
InfiniteLoopsarethoseprogramconstructswhereinthereisnobreakstatementsoastogetoutofthe
loop,itjustkeepsloopingoverthestatementswithintheblockdefined.

Datawarehousing

PHP

Example:

MySQL

While(BooleanTrue)ORfor()

Projectmanagement

Linux

//Code
}

Testing

Embeddedsystemsneedinfiniteloopsforrepeatedlyprocessing/monitoringthestateoftheprogram.One

Networking

examplecouldbethecaseofaprogramstatecontinuouslybeingcheckedforanyexceptionalerrorsthat

Softwareengineering

mightjustoccurduringruntimesuchasmemoryoutageordividebyzeroetc.,

Microsoftsolutionframework

Fore.g.CustomercareTelephonesystemswhereinaprerecordedaudiofileisplayedincasethedialer
isputonhold..

UML
XML
HTML

Alsocircuitsbeingresponsibleforindicatingthataparticularcomponentisactive/aliveduringitsoperation
bymeansofLED's.

Howdoescombinationoffunctionsreducememoryrequirementsinembedded
systems?

SOAP
CSS
Webservices
VBScript
JavaScript

http://www.careerride.com/embeddedsystemsinterviewquestions.aspx#Embedded1

1/6

9/29/2015

EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
Theamountofcodethathastobedealtwithisreducedthuseasingtheoverheadandredundancyis

eliminatedincaseifthereisanythingcommonamongthefunctions.
Jobinterviews

Memoryallocationisanotheraspectthatisoptimizedanditalsomakessensetogroupasetoffunctions
relatedinsomewayasonesingleunitratherthanhavingthemtobedispersedinthewholeprogram.

Workingfromhome
ArticlesNishantKumar

Incaseofinteractivesystemsdisplayofmenulistandreadinginthechoicesofuser'scouldbe
encapsulatedasasingleunit.

AvastmajorityofHighPerformanceEmbeddedsystemstodayuseRISCarchitecture
why?
Accordingtotheinstructionsetsused,computersarenormallyclassifiedintoRISCandCISC.RISC
standsfor'ReducedInstructionSetComputing'.ThedesignphilosophyofRISCarchitectureissuchthat
onlyoneinstructionisperformedoneachmachinecyclethustakingverylesstimeandspeedingupwhen
comparedtotheirCISCcounterparts.
Heretheuseofregistersisoptimisedasmostofthememoryaccessoperationsarelimitedtostoreand
loadoperations.
Fewerandsimpleaddressingmodes,andsimpleinstructionformatsleadstogreaterefficiency,
optimisationofcompilers,reorganisationofcodeforbetterthroughputintermsofspaceandtime
complexities.AllthesefeaturesmakeitthechoiceofarchitectureinmajorityoftheEmbeddedsystems.
CISCagainhavetheirownadvantagesandtheyarepreferredwhenevertheperformanceandcompiler
simplificationaretheissuestobetakencareof.

Whydoweneedvirtualdevicedriverswhenwehavephysicaldevicedrivers?
Devicedriversarebasicallyasetofmodules/routinessoastohandleadeviceforwhichadirectwayof
communicationisnotpossiblethroughtheuser'sapplicationprogramandthesecanbethoughtofasan
interfacethuskeepingthesystemsmallprovidingforminimalisticofadditionsofcode,ifany.
PhysicaldevicedriverscantperformallthelogicaloperationsneededinasystemincaseslikeIPC,
Signalsandsoon...
Themainreasonforhavingvirtualdevicedriversistomimicthebehaviourofcertainhardwaredevices
withoutitactuallybeingpresentandthesecouldbeattributedtothehighcostofthedevicesorthe
unavailabilityofsuchdevices.
Thesebasicallycreateanillusionfortheusersasiftheyareusingtheactualhardwareandenablethem
tocarryouttheirsimulationresults.
ExamplescouldbetheuseofvirtualdriversincaseofNetworksimulators,alsothesupportofvirtual
devicedriversincaseauserrunsanadditionalOSinavirtualboxkindofasoftware.

WhatistheneedforDMACinES?
Directmemoryaccessismainlyusedtoovercomethedisadvantagesofinterruptandprogamcontrolled
I/O.
DMAmodulesusuallytakethecontroloverfromtheprocessorandperformthememoryoperationsand
thisismainlybecausetocounteractthemismatchintheprocessingspeedsofI/Ounitsandthe
procesor.Thisiscomparativelyfaster.
Itisanimportantpartofanyembeddedsystems,andthereasonfortheiruseisthattheycanbeusedfor
burstydatatransfersinsteadofsinglebyteapproaches.
Ithastowaitforthesystemsresourcessuchasthesystembusincaseitisalreadyincontrolofit.

WhatisEndiannessofasystemandhowdodifferentsystemscommunicatewitheach
other?
Endiannessbasicallyreferstotheorderingofthebyteswithinwordsorlargerbytesofdatatreatedasa
singleentity.
Whenweconsideraseveralbytesofdatasayforinstance4bytesofdata,XYZQthelowerbyteifstored
inaHigheraddressandothersinsuccessivelydecreasingaddresses,thenitreferstotheBigEndianand
theviceversaofthisreferstoLittleEndianarchitecture.
Intel80x86usuallyfollowsLittleEndianandotherslikeIBMsystemsfollowBigEndianformats.
Ifthedataisbeingtransmittedcarehastobetakensoastoknowastowhichbyte,whetherthehigheror
thelowerbyteisbeingtransmitted.
Henceacommonformatpriortocommunicationhastobeagreedupontoavoidwrong

http://www.careerride.com/embeddedsystemsinterviewquestions.aspx#Embedded1

2/6

9/29/2015

EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
interpretation/calculations.
UsuallylayermodulesarewrittensoastoautomatetheseconversioninOperatingsystems.

Howaremacrosdifferentfrominlinefunctions?
Macrosarenormallyusedwheneverasetofinstructions/taskshavetoberepeatedlyperformed.Theyare
smallprogramstocarryoutsomepredefinedactions.
Wenormallyusethe#definedirectiveincaseweneedtodefinethevaluesofsomeconstantssoincase
achangeisneededonlythevaluecanbechangedandisreflectedthroughout.
#definemul(a,b)(a*b)
Themajordisadvantageofmacrosisthattheyarenotreallyfunctionsandtheusualerrorcheckingand
steppingthroughofthecodedoesnotoccur.
Inlinefunctionsareexpandedwheneveritisinvokedratherthanthecontrolgoingtotheplacewherethe
functionisdefinedandavoidsalltheactivitiessuchassavingthereturnaddresswhenajumpis
performed.Savestimeincaseofshortcodes.
inlinefloatadd(floata,floatb)
{
returna+b
}
Inlineisjustarequesttothecompileranditisuptotothecompilerwhethertosubstitutethecodeatthe
placeofinvocationorperformajumpbasedonitsperformancealgorithms.

WhatcouldbethereasonsforaSystemtohavegoneblankandhowwouldyou
Debugit?
Possiblereasonscouldbe,
PCbeingoverheated.
Dusthavingbeingaccumulatedallaround.
CPUfansnotworkingproperly.
Faultypowerconnections.
Faultycircuitboardfromwherethepowerisbeingdrawn.
SupportDriversnothavingbeinginstalled.
Debuggingstepswhichcanbetakenare:
Cleaningthesystemthoroughlyandmaintainingitinadustfreeenvironment.
Environmentthatiscoolenoughandfacilitatesforeasypassageofairshouldbeidealenough.
Bylocatingtheappropriatesupportdriversforthesysteminconsiderationandhavingtheminstalled.

Explaininterruptlatencyandhowcanwedecreaseit?
Interruptlatencybasicallyreferstothetimespananinterruptisgeneratedanditbeingservicedbyan
appropriateroutinedefined.,usuallytheinterrupthandler.
Externalsignals,someconditionintheprogramorbytheoccurrenceofsomeevent,thesecouldbethe
reasonsforgenerationofaninterrupt.
Interruptscanalsobemaskedsoastoignorethemevenifaneventoccursforwhicharoutinehastobe
executed.
Followingstepscouldbefollowedtoreducethelatency
isrsbeingsimpleandshort.
Interruptsbeingservicedimmediately
Avoidingthoseinstructionsthatincreasethelatencyperiod.
Alsobyprioritizinginterruptsoverthreads.
AvoidinguseofinappropriateAPIs.

Howtocreateachildprocessinlinux?
Prototypeofthefunctionusedtocreateachildprocessispid_tfork(void)
Forkisthesystemcallthatisusedtocreateachildprocess.Ittakesnoargumentsandreturnsavalue
oftypepid_t.
Ifthefunctionsucceedsitreturnsthepidofthechildprocesscreatedtoitsparentandchildreceivesa
zerovalueindicatingitssuccessfulcreation.
Onfailure,a1willbereturnedintheparent'scontext,nochildprocesswillbecreated,anderrnowillbe
set
Thechildprocessnormallyperformsallitsoperationsinitsparentscontextbuteachprocess

http://www.careerride.com/embeddedsystemsinterviewquestions.aspx#Embedded1

3/6

9/29/2015

EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
independentlyofoneanotherandalsoinheritssomeoftheimportantattributesfromitsuchasUID,
currentdirectory,rootdirectoryandsoon.

SignificanceofwatchdogtimerinEmbeddedSystems
Watchdogtimerisbasicallyatimingdevicethatissetforpredefinedtimeintervalandsomeeventshould
occurduringthattimeintervalelsethedevicegeneratesatimeoutsignal.
Oneapplicationwhereitismostwidelyusediswhenthemobilephonehangsandnoactivitytakes
place,inthosecaseswatchdogtimerperformsarestartofthesystemandcomestotherescueofthe
users.
Itisusedtoresettotheoriginalstatewheneversomeinappropriateeventstakeplacesuchastoomany
commandsbeinggivenatthesametimeorotheractivitiesthatresultinmalfunctioningoftheGUI.Itis
usuallyoperatedbycounterdevices.

IfyoubuysomeRTOS,whatarethefeaturesyoulookforin?
Deterministicoperatingsystemhavingguaranteedworstcaseinterruptlatencyandcontextswitchtimes.
Documentationprovidingfortheminimum,average,andmaximumnumberofclockcyclesrequiredby
eachsystemcall
Interruptresponsetimesshouldbeveryminute.
Contextswitchtimeshouldbeverylow.
Compatibilitywithseveralplugindevices.
Overallitshouldbeveryreliable.

Whyisjavamostlyusedinembeddedsystems?
Javawasmainlydesignedandconceputalisedforcodethatcanworkondifferentplatformswithoutany
hasslesandalsoforbeingsecureenoughsoastonotharmorcorruptothermodulesofcode.
Featureslikeexceptionhandling,simplesyntaxandAutomaticGarbagecollectionallworkinitsfavouras
thelanguageforuseinES's.
AlsothatitiswidelyusedintheformofJavaappletsmakesitverypopularconfiningittothelimitsof
JVM.ItisDynamicinnature.
ItsuseisalsobeingexploitedinenterprisesystemsintheformofJ2EE,J2SE
J2MEincaseofmobileapplications.

Differentiatebetweenmutexesvssemaphores
Semaphoresisasynchronisationtooltoovercomethecriticalsectionproblem.
AsemaphoreSisbasicallyanintegervariablethatapartfrominitialisationisaccessesonlythrough
atomicoperationssuchaswait()andsignal().
Semaphoreobjectbasicallyactsasacountertomonitorthenumberofthreadsaccessingaresource.
Mutexisalsoatoolthatisusedtoprovidedeadlockfreemutualexclusion.Itprotectsaccesstoevery
criticaldataitem.ifthedataislockedandisinuse,iteitherwaitsforthethreadtofinishorawakenedto
releasethelockfromitsinactivestate.

WhatarethecommonlyfounderrorsinEmbeddedSystems?
Damageofmemorydevicesduetotransientcurrentandstaticdischarges.
Malfunctioningofaddresslinesduetoashortinthecircuit
MalfunctioningofDatalines.
Somememorylocationsbeinginaccessibleinstorageduetogarbageorerrors.
ImproperinsertionofMemorydevicesintothememoryslots
Faultycontrolsignals.

Whatistheneedforhavingmultibytedatainputandoutputbuffersincaseofdevice
ports?
Itsnormallythecasethatsomedevicestransfertheoutputeitherinaburstyorasequentialmannerand
alsoduringinputentry.Ifwetaketheexampleofkeyboards,allthedataenteredisstoredinabufferand
givenatatimeoronecharacteratatime.
Incaseofnetworkingtheremaybeseveralrequeststoaccessthesameresourceandalltheseare
queuedinabufferandservicedintheordertheyarereceived
Hencetoavoidtheinput/outputunitsfromgettingoverloadedwithrequests,weusemultibytebuffers.
LatestC++interviewquestions

http://www.careerride.com/embeddedsystemsinterviewquestions.aspx#Embedded1

4/6

9/29/2015

EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
Whataretheadvantagesofthrow.....catchinC++?
ExplainthedifferencebetweenStackandQueue
WhatisthedifferencebetweenMutexandBinarysemaphore?
Whatistheimportanceofmutablekeyword?
Whatdoyoumeanbybinding?Staticvs.dynamicbinding
DefineaccessprivilegesinC++.
C++COMandActiveX:InterviewQuestions
LatestDataStructureinterviewquestions
ExplainthedifferencebetweenStackandQueue
WhatisStack?Explainitsuses.
Vectorvs.deques
WhatisNULLpointerandvoidpointerandwhatistheiruse?

Going to Study in
Barcelona?
Don't be too late to book your
accommodation!

Book Now

WriteyourcommentShareKnowledgeandExperience

SingapurChennai
From 126.00

Compare

Home| Aboutus| Sitemap| Contactus


Copyright20082015CareerRide.com.Allrightsreserved. Termsofuse |FollowusonFacebook!
Bookmarkto:

http://www.careerride.com/embeddedsystemsinterviewquestions.aspx#Embedded1

5/6

9/29/2015

EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ

http://www.careerride.com/embeddedsystemsinterviewquestions.aspx#Embedded1

6/6

Вам также может понравиться