基于生产者-消费者模型的同步机制分析  被引量:1

Analysis of Synchronization Mechanism Based on Producer-consumer Model

在线阅读下载全文

作  者:许星辰[1] 王力权[1] 

机构地区:[1]中国电子科技集团公司第54研究所,河北石家庄050081

出  处:《计算机与网络》2010年第7期55-57,共3页Computer & Network

摘  要:介绍了生产者-消费者模型在程序开发中经常要考虑的情景。其设计涉及了多任务操作系统中的同步机制,即操作系统为避免多个任务访问相同资源时可能引发的竞争所进行的并发控制,包括任务的互斥、同步。讨论了需要互斥的根本原因及同步的机制,并在Linux内核空间、用户空间及VxWorks下实现生产者-消费者模型中的同步机制。Producer-consumer model is classical scene in the program development. Its design concerns synchronization mechanism which deals with the competition and synchronization caused by multi-tasks accessing the critical regions in multi-tasks operating system to achieve accurate program execution. The paper discusses the causes of competition and the difference of synchronization mechanism between Linux and VxWorks. Under the model of producer-consumer, the synchronization mechanism application is implemented.

关 键 词:LINUX操作系统 VXWORKS操作系统 同步机制 互斥 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象