9/29/2015
EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
Embeddedsystemsinterviewquestionsandanswers
Search
Interview Currentaffairs Civilservices Banking Engineering MBA GD Placementpapers HR CV Coverletter Aptitude English Onlinetest
Askquestion! [Link]
ComputerArchitecture:AQuantitativeApproach
InterviewQuestionsPDF
EmbeddedSystems
C++PDF
[Link],[Link]
Tapablanda
64,95
EmbeddedSystemsinterviewquestionsandanswers
Interviewquestions
[Link]
VLSI
[Link]
Embeddedsystemsinterviewtest(15questions)
AJAX
C#.NET
Part1Part2Part3Part4Part5
[Link]
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/[Link]
Networking
examplecouldbethecaseofaprogramstatecontinuouslybeingcheckedforanyexceptionalerrorsthat
Softwareengineering
mightjustoccurduringruntimesuchasmemoryoutageordividebyzeroetc.,
Microsoftsolutionframework
[Link]
isputonhold..
UML
XML
HTML
Alsocircuitsbeingresponsibleforindicatingthataparticularcomponentisactive/aliveduringitsoperation
bymeansofLED's.
Howdoescombinationoffunctionsreducememoryrequirementsinembedded
systems?
SOAP
CSS
Webservices
VBScript
JavaScript
[Link]
1/6
9/29/2015
EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
Theamountofcodethathastobedealtwithisreducedthuseasingtheoverheadandredundancyis
eliminatedincaseifthereisanythingcommonamongthefunctions.
Jobinterviews
Memoryallocationisanotheraspectthatisoptimizedanditalsomakessensetogroupasetoffunctions
relatedinsomewayasonesingleunitratherthanhavingthemtobedispersedinthewholeprogram.
Workingfromhome
ArticlesNishantKumar
Incaseofinteractivesystemsdisplayofmenulistandreadinginthechoicesofuser'scouldbe
encapsulatedasasingleunit.
AvastmajorityofHighPerformanceEmbeddedsystemstodayuseRISCarchitecture
why?
Accordingtotheinstructionsetsused,[Link]
standsfor'ReducedInstructionSetComputing'.ThedesignphilosophyofRISCarchitectureissuchthat
onlyoneinstructionisperformedoneachmachinecyclethustakingverylesstimeandspeedingupwhen
comparedtotheirCISCcounterparts.
Heretheuseofregistersisoptimisedasmostofthememoryaccessoperationsarelimitedtostoreand
loadoperations.
Fewerandsimpleaddressingmodes,andsimpleinstructionformatsleadstogreaterefficiency,
optimisationofcompilers,reorganisationofcodeforbetterthroughputintermsofspaceandtime
[Link].
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
[Link].
Itisanimportantpartofanyembeddedsystems,andthereasonfortheiruseisthattheycanbeusedfor
burstydatatransfersinsteadofsinglebyteapproaches.
Ithastowaitforthesystemsresourcessuchasthesystembusincaseitisalreadyincontrolofit.
WhatisEndiannessofasystemandhowdodifferentsystemscommunicatewitheach
other?
Endiannessbasicallyreferstotheorderingofthebyteswithinwordsorlargerbytesofdatatreatedasa
singleentity.
Whenweconsideraseveralbytesofdatasayforinstance4bytesofdata,XYZQthelowerbyteifstored
inaHigheraddressandothersinsuccessivelydecreasingaddresses,thenitreferstotheBigEndianand
theviceversaofthisreferstoLittleEndianarchitecture.
Intel80x86usuallyfollowsLittleEndianandotherslikeIBMsystemsfollowBigEndianformats.
Ifthedataisbeingtransmittedcarehastobetakensoastoknowastowhichbyte,whetherthehigheror
thelowerbyteisbeingtransmitted.
Henceacommonformatpriortocommunicationhastobeagreedupontoavoidwrong
[Link]
2/6
9/29/2015
EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
interpretation/calculations.
UsuallylayermodulesarewrittensoastoautomatetheseconversioninOperatingsystems.
Howaremacrosdifferentfrominlinefunctions?
Macrosarenormallyusedwheneverasetofinstructions/[Link]
smallprogramstocarryoutsomepredefinedactions.
Wenormallyusethe#definedirectiveincaseweneedtodefinethevaluesofsomeconstantssoincase
achangeisneededonlythevaluecanbechangedandisreflectedthroughout.
#definemul(a,b)(a*b)
Themajordisadvantageofmacrosisthattheyarenotreallyfunctionsandtheusualerrorcheckingand
steppingthroughofthecodedoesnotoccur.
Inlinefunctionsareexpandedwheneveritisinvokedratherthanthecontrolgoingtotheplacewherethe
functionisdefinedandavoidsalltheactivitiessuchassavingthereturnaddresswhenajumpis
[Link].
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)
[Link]
oftypepid_t.
Ifthefunctionsucceedsitreturnsthepidofthechildprocesscreatedtoitsparentandchildreceivesa
zerovalueindicatingitssuccessfulcreation.
Onfailure,a1willbereturnedintheparent'scontext,nochildprocesswillbecreated,anderrnowillbe
set
Thechildprocessnormallyperformsallitsoperationsinitsparentscontextbuteachprocess
[Link]
3/6
9/29/2015
EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
independentlyofoneanotherandalsoinheritssomeoftheimportantattributesfromitsuchasUID,
currentdirectory,rootdirectoryandsoon.
SignificanceofwatchdogtimerinEmbeddedSystems
Watchdogtimerisbasicallyatimingdevicethatissetforpredefinedtimeintervalandsomeeventshould
occurduringthattimeintervalelsethedevicegeneratesatimeoutsignal.
Oneapplicationwhereitismostwidelyusediswhenthemobilephonehangsandnoactivitytakes
place,inthosecaseswatchdogtimerperformsarestartofthesystemandcomestotherescueofthe
users.
Itisusedtoresettotheoriginalstatewheneversomeinappropriateeventstakeplacesuchastoomany
[Link]
usuallyoperatedbycounterdevices.
IfyoubuysomeRTOS,whatarethefeaturesyoulookforin?
Deterministicoperatingsystemhavingguaranteedworstcaseinterruptlatencyandcontextswitchtimes.
Documentationprovidingfortheminimum,average,andmaximumnumberofclockcyclesrequiredby
eachsystemcall
Interruptresponsetimesshouldbeveryminute.
Contextswitchtimeshouldbeverylow.
Compatibilitywithseveralplugindevices.
Overallitshouldbeveryreliable.
Whyisjavamostlyusedinembeddedsystems?
Javawasmainlydesignedandconceputalisedforcodethatcanworkondifferentplatformswithoutany
hasslesandalsoforbeingsecureenoughsoastonotharmorcorruptothermodulesofcode.
Featureslikeexceptionhandling,simplesyntaxandAutomaticGarbagecollectionallworkinitsfavouras
thelanguageforuseinES's.
AlsothatitiswidelyusedintheformofJavaappletsmakesitverypopularconfiningittothelimitsof
[Link].
ItsuseisalsobeingexploitedinenterprisesystemsintheformofJ2EE,J2SE
J2MEincaseofmobileapplications.
Differentiatebetweenmutexesvssemaphores
Semaphoresisasynchronisationtooltoovercomethecriticalsectionproblem.
AsemaphoreSisbasicallyanintegervariablethatapartfrominitialisationisaccessesonlythrough
atomicoperationssuchaswait()andsignal().
Semaphoreobjectbasicallyactsasacountertomonitorthenumberofthreadsaccessingaresource.
[Link]
[Link],iteitherwaitsforthethreadtofinishorawakenedto
releasethelockfromitsinactivestate.
WhatarethecommonlyfounderrorsinEmbeddedSystems?
Damageofmemorydevicesduetotransientcurrentandstaticdischarges.
Malfunctioningofaddresslinesduetoashortinthecircuit
MalfunctioningofDatalines.
Somememorylocationsbeinginaccessibleinstorageduetogarbageorerrors.
ImproperinsertionofMemorydevicesintothememoryslots
Faultycontrolsignals.
Whatistheneedforhavingmultibytedatainputandoutputbuffersincaseofdevice
ports?
Itsnormallythecasethatsomedevicestransfertheoutputeitherinaburstyorasequentialmannerand
[Link],allthedataenteredisstoredinabufferand
givenatatimeoronecharacteratatime.
Incaseofnetworkingtheremaybeseveralrequeststoaccessthesameresourceandalltheseare
queuedinabufferandservicedintheordertheyarereceived
Hencetoavoidtheinput/outputunitsfromgettingoverloadedwithrequests,weusemultibytebuffers.
LatestC++interviewquestions
[Link]
4/6
9/29/2015
EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
Whataretheadvantagesofthrow.....catchinC++?
ExplainthedifferencebetweenStackandQueue
WhatisthedifferencebetweenMutexandBinarysemaphore?
Whatistheimportanceofmutablekeyword?
Whatdoyoumeanbybinding?[Link]
DefineaccessprivilegesinC++.
C++COMandActiveX:InterviewQuestions
LatestDataStructureinterviewquestions
ExplainthedifferencebetweenStackandQueue
WhatisStack?Explainitsuses.
[Link]
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
[Link]. Termsofuse |FollowusonFacebook!
Bookmarkto:
[Link]
5/6
9/29/2015
EmbeddedsystemsinterviewquestionsEmbeddedsystemsFAQ
[Link]
6/6