欢迎来到天天文库
浏览记录
ID:41462589
大小:1.93 MB
页数:498页
时间:2019-08-25
《QNX Neutrino Programmer's Guide》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、QNX®Neutrino®RealtimeOperatingSystemProgrammer’sGuideForQNX®Neutrino®6.3©2007,QNXSoftwareSystemsGmbH&Co.KG.©20002007,QNXSoftwareSystemsGmbH&Co.KG.Allrightsreserved.Publishedunderlicenseby:QNXSoftwareSystemsInternationalCorporation175TerenceMatthewsCrescentKanata,Ontario
2、K2M1W8CanadaVoice:+1613591-0931Fax:+1613591-3579Email:info@qnx.comWeb:http://www.qnx.com/PublishinghistoryJuly2004FirsteditionElectroniceditionpublished2007QNX,Neutrino,Photon,PhotonmicroGUI,Momentics,andAviagearetrademarks,registeredincertainjurisdictions,ofQNXSoftware
3、SystemsGmbH&Co.KG.andareusedunderlicensebyQNXSoftwareSystemsInternationalCorporation.Allothertrademarksbelongtotheirrespectiveowners.ContentsAboutThisBookxvWhatyoullfindinthisguidexviiRecommendedreadingxviiiTypographicalconventionsxixNotetoWindowsusersxxTechnicalsupportx
4、xi1CompilingandDebugging1ChoosingtheversionoftheOS3Makingyourcodemoreportable4Conformingtostandards4IncludingQNX-orNeutrino-specificcode7Headerfilesin/usr/include7Self-hostedorcross-development8Asimpleexample9Self-hosted10Cross-developmentwithnetworkfilesystem11Cross-devel
5、opmentwithdebugger11Cross-development,deeplyembedded12Usinglibraries15Staticlinking15Dynamiclinking15Runtimeloading16Staticanddynamiclibraries16Platform-specificlibrarylocations18September10,2007Contentsiii©2007,QNXSoftwareSystemsGmbH&Co.KG.Linkingyourmodules18Creatingsh
6、aredobjects19Debugging20Debugginginaself-hostedenvironment21Debugginginacross-developmentenvironment21TheGNUdebugger(gdb)23Theprocess-leveldebugagent23Asimpledebugsession30Configurethetarget30Compilefordebugging30Startthedebugsession30Gethelp32Samplebootimage342Programmi
7、ngOverview37Processmodel39Anapplicationasasetofprocesses40Processesandthreads41Somedefinitions41Prioritiesandscheduling43Priorityrange43BLOCKEDandREADYstates44Thereadyqueue45Suspendingarunningthread47Whenthethreadisblocked47Whenthethreadispreempted47Whenthethreadyields48
8、Schedulingalgorithms48FIFOscheduling49Round-robinscheduling50Sporadicscheduling51Whythreads?51Summary52ivConte
此文档下载收益归作者所有