实时操作系统入门讲座.pdf
上传人:qw****27 上传时间:2024-09-12 格式:PDF 页数:36 大小:1.2MB 金币:15 举报 版权申诉
预览加载中,请您耐心等待几秒...

实时操作系统入门讲座.pdf

实时操作系统入门讲座.pdf

预览

免费试读已结束,剩余 26 页请下载文档后查看

15 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

RTOSissuesforsafetransportCorporateapplicationsoverviewDrKenTindellCEOnorthernreal-timeapplicationscontents1WhyuseanRTOS?2RequirementsforusinganRTOS3PerspectiveonRTOSusetoday2costpressures1Productioncost(e.g.automotive)Savingjust5¢onacommoncomponentcansaveamilliondollarsayear(whichbecomesanextramilliondollarsofprofit)2Developmentcost(e.g.aerospace)Highabsolutecosts(typically$1B)andahighfractionoftotallife-cyclecostsCertificationisamajorpartofdevelopmentcosts3theneedfordesigncorrectness1AstrongdemandforcorrectnessInaerospacesystemshundredsofpeoplecanbeinjuredinasingleeventcausedbyadesignfailureAutomotivesystemsrackupbillionsofflyinghourssothenumberofeventsistypicallymuchlarger2Designcorrectnessisvital“Ifitcangowrong,thenwhenrunningitforbillionhoursitwillgowrong”4thereal-timecontrolissue1Wideuseofreal-timecontrolfunctions..withcontrolfunctionsbecomingdistributedacrossseveralcontrolunits2Needtobesureeverythingrunsontime,everytimeE.g.timeoutsforfaultdetectionimposeaharddeadlinefornormaloperationWecallthesesystems‘hardreal-time’5hardreal-time1Achievehardreal-timebyup-frontdesigneffortNeedtoknowup-frontthatalldeadlineswillbemetNogoodfindingoutafterdeploymentthattherearetimingfaults2MustnotrelyontestingtodetecttimingfaultsTestingregimesimplycannotobtaincoverageclosetothebillionsofhoursofoperationinreallifeMustusedesignanalysistobesureofcorrecttimingbehavior6hardreal-timeprocessing1Threestagesintheevolutionofhardreal-timeprocessingfromsimplecyclicscheduling....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-casetimingbehaviorisgoingtobeEasytoimplement2..butnotveryefficientEverythinghastorunatthesame(fast)rateCan’thandlesporadiceve