摘要
μC/OS-Ⅱ是一个可移植、可裁剪的占先式多任务实时内核,且源码开放,便于学习、移植和维护。消息队列是一种广泛使用且灵活的任务间通信机制。分析了μC/OS-Ⅱ的消息队列通信机制中存在的数据安全性问题,然后通过改进消息队列通信所涉及的数据结构,同时增加消息队列测试函数OSQTest(),以提供应用程序对消息队列中消息访问是否安全的测试途径,从而提高了应用程序间通过消息队列进行通信的数据安全性。通过模拟实验证明此改进在实际应用中的有效性。
μC/OS-Ⅱ is a transplantable and curtable mttltiple - task preemptive OS kernel which has opened its code. It is easy to study and transplant and easy for maintenance. Message queue is a widely used interprocess communication mechanism. First, analyse the data protection problem in μC/OS-Ⅱ's message queue mechanism, then improve the data structure referred and add message queue test function OSQTest() which can be used to check if the access of a message in message queue is safe. All of these work can enhance the .security of data which is exchanged between application processes. And at last prove this improvement is effective by simulative experiment.
出处
《计算机技术与发展》
2009年第8期151-154,共4页
Computer Technology and Development
基金
国家科技部863计划项目(2008AA01Z105)