欢迎来到天天文库
浏览记录
ID:51506440
大小:207.58 KB
页数:9页
时间:2020-03-25
《实时操作系统基本概念.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ByMatsPettersson,IARSystemsBasicConceptsforRealTimeOperatingSystemsThisarticlewillexplainsomeRealTimeOperatingSystems(RTOS)basics.ThematerialpresentedhereisnotintendedasacompletecoverageofdifferentRTOSandtheirfeatures.Forthepurposesofsimplification,Iwillbrieflycoverthemostimpor
2、tantfeaturesofarepresentativeRTOS.AfterweexplorewhatconstitutesanRTOSandwhywemightwanttouseone,I’llexplaineachofthebasiccomponentsofatypicalRTOSandshowhowthesebuildingblocksareintegratedintothesystem.ForthefewcodeexamplesinthisarticlewewilluseThreadXfromExpressLogic.Thread-orie
3、nteddesignDesigningapplicationsforanembeddedapplicationisalmostalwayschallenging,tosaytheleast.Onewaytodecreasethecomplexityofyourapplicationistouseathread-orienteddesignanddivideaprojectintomoremanageablepieces(orthreads).Eachthreadisthenresponsibleforsomepartoftheapplication.
4、Withsuchasystemyouwouldliketobeabletospecifythatsomethreadismoreimportantthanothers.Thatis,somethreadshavereal-timerequirements.Theyhavetorespondquicklyandcorrectly.IfyoursystememploysaprofessionalRTOS,featuresthatprioritizethreadsarealreadypartofthepackage.Inadditiontothreadpr
5、ioritization,acleanandwell-testedAPIisincludedthateasescommunicatebetweendifferentthreads.SoifwetouseaprofessionalRTOSwewillhavethetoolsto:•Ensurethattime-criticalpartsofthecodeexecutewithintheirreal-timeconstraints.Perhapsequallyimportantly,thereal-timebehaviorofthehigh-priori
6、tythreadsisnotaffectedbythenumberorprocessingoflessimportant,lower-prioritythreads.•Makecomplexapplicationseasiertodevelopandmaintain.It’seasiertodevelopandmaintainsmallerthreads,thantohavetodealwiththeentireapplicationasawhole.Inaddition,changestotheprocessingoflowerpriorityth
7、readsdonotaffectthereal-timeprocessingofhigher-prioritythreads.•Distributedifferentpartsoftheapplicationamongseveraldevelopers.EachdevelopercanberesponsibleforoneormorethreadswithintheapplicationandacleanApplicationProgrammingInterface(API)willbeavailableforcommunicationbetween
8、thedifferentmodules/threadsastheyaredeveloped.Applicat
此文档下载收益归作者所有