首页 | 本学科首页   官方微博 | 高级检索  
     

用VxWorks的信号量机制实现任务同步
引用本文:丛伟,王勇,于宏坤.用VxWorks的信号量机制实现任务同步[J].微机发展,2004,14(7):43-44.
作者姓名:丛伟  王勇  于宏坤
作者单位:丛伟(空军工程大学,工程学院,陕西,西安,710038)       王勇(空军工程大学,工程学院,陕西,西安,710038)       于宏坤(空军工程大学,工程学院,陕西,西安,710038)
摘    要:为了保证诸任务对临界critical资源resource的互斥访问,VxWorks提供了任务同步机制。二进制信号量是VxWorks系统中实现任务同步的一种重要手段,它保证了任务在并发时结果的一致性。简要介绍二进制信号量,阐述用二进制信号量解决任务互斥和同步的方法,并给出二进制信号量应用在某数据采集系统中的程序框架。某数据采集系统中有效地利用了VxWorks的信号量机制,实现了8个接收通道的数据采集、数据存储以及数据查询等任务对缓冲区的共享。

关 键 词:VxWorks  信号量机制  任务同步  临界资源  互斥访问  二进制信号量  系统吞吐量  资源利用率
文章编号:1005-3751(2004)07-0043-02
修稿时间:2003年11月17

VxWorks Semaphore Applied in Task Synchronization
CONG Wei,WANG Yong,YU Hong-kun.VxWorks Semaphore Applied in Task Synchronization[J].Microcomputer Development,2004,14(7):43-44.
Authors:CONG Wei  WANG Yong  YU Hong-kun
Abstract:Task synchronization for VxWorks to access critical resource mutually is applied.Binary semaphore is an important method to realizing synchronization in VxWorks.The result consistent is improved when tasks are executed.The paper introduces binary-semaphore,researches the techniques of solving mutex and synchronization,and presents the program frame in X-data gathering system,which use semaphore to control the data gathering,stroing and quering tasks of 8-receiveing channels sharing the buffer.
Keywords:semaphore  task  synchronization  mutex  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号