如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
RTOSissuesforsafetransportCorporateapplicationsoverviewDrKenTindellCEOnorthernreal-timeapplicationscontents1WhyuseanRTOS?2RequirementsforusinganRTOS3PerspectiveonRTOSusetoday2costpressures1Productioncost(e.g.automotive)Savingjust5¢onacommoncomponentcansaveamilliondollarsayear(whichbecomesanextramilliondollarsofprofit)2Developmentcost(e.g.aerospace)Highabsolutecosts(typically$1B)andahighfractionoftotallife-cyclecostsCertificationisamajorpartofdevelopmentcosts3theneedfordesigncorrectness1AstrongdemandforcorrectnessInaerospacesystemshundredsofpeoplecanbeinjuredinasingleeventcausedbyadesignfailureAutomotivesystemsrackupbillionsofflyinghourssothenumberofeventsistypicallymuchlarger2Designcorrectnessisvital“Ifitcangowrong,thenwhenrunningitforbillionhoursitwillgowrong”4thereal-timecontrolissue1Wideuseofreal-timecontrolfunctions..withcontrolfunctionsbecomingdistributedacrossseveralcontrolunits2Needtobesureeverythingrunsontime,everytimeE.g.timeoutsforfaultdetectionimposeaharddeadlinefornormaloperationWecallthesesystems‘hardreal-time’5hardreal-time1Achievehardreal-timebyup-frontdesigneffortNeedtoknowup-frontthatalldeadlineswillbemetNogoodfindingoutafterdeploymentthattherearetimingfaults2MustnotrelyontestingtodetecttimingfaultsTestingregimesimplycannotobtaincoverageclosetothebillionsofhoursofoperationinreallifeMustusedesignanalysistobesureofcorrecttimingbehavior6hardreal-timeprocessing1Threestagesintheevolutionofhardreal-timeprocessingfromsimplecyclicscheduling....tomajor/minorcyclicscheduling....topre-emptiveRTOSscheduling7InterrupttimeFreetimevoidmain(void){do_init();while(1){do_task_1();do_task_2();do_task_3();do_task_4();do_task_5();busy_wait_cycle();}}cyclicscheduling1Asimpletechnique..Easytoseewhattheworst-casetimingbehaviorisgoingtobeEasytoimplement2..butnotveryefficientEverythinghastorunatthesame(fast)rateCan’thandlesporadiceve