Vx Works is a real-time .multitasking embedded operating system, it had been used in many fields such as aerospace, aeronautics and communication. With the continuous complexity of function and improvement of performance requirements of embedded systems, the rational design of multitask procedure plays an important role in embedded system software. Analyze multitasking schedule under VxWorks, introduce the key point of multitasking programming on multitasking priority allocation, the communication mode between tasks and interrupt handling, present multitasking programming procedure and methods with an application example of PC communication, the design is reasonable and reliable in practice, which can also give some reference in design of multitasking programming based on VxWorks.%VxWorks是一种嵌入式实时多任务操作系统,以其良好的可靠性和卓越的实时性被广泛地应用在航天、航空、通信等领域中.随着嵌入式系统功能的不断复杂和性能需求的不断提高,多任务程序的合理设计对嵌入式系统软件的稳定、可靠运行起着重要的作用.文中对VxWorks下的多任务调度机制进行分析,然后介绍多任务程序设计过程中任务优先级的设置、多任务间通信、中断处理等关键要点,结合FC通信的应用实例给出多任务程序设计的步骤和方法,在实际应用中验证了设计的合理性和可靠性,为基于VxWorks的多任务程序设计提供一定的参考.
展开▼