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

UNIX环境下的消息中间件应用
引用本文:刘冬冬,王戴木,牛磊,郭博. UNIX环境下的消息中间件应用[J]. 阜阳师范学院学报(自然科学版), 2014, 0(3): 46-50
作者姓名:刘冬冬  王戴木  牛磊  郭博
作者单位:阜阳师范学院 计算机与信息学院,安徽 阜阳,236037
基金项目:全国统计科学研究计划项目,安徽省教育厅自然科学研究项目,阜阳师范学院科技成果孵化项目资助,阜阳师范学院自然科学基金项目(2013FSKJ02ZD)资助。
摘    要:设计了一种在UNIX环境下基于SYSTEM V IPC的消息中间件模型。模型引入了邮箱的概念并通过MyQ对进行消息传递的每个进程分配一个全局唯一的邮箱号,进程从自己的邮箱中接收消息以及发送消息到目标进程的邮箱。具体实现是MyQ通过共享内存传递消息内容,为每个进程创建一个消息队列用于接收通知消息,并由信号灯进行并发访问控制。这样可以提高消息传递效率以及有效解决大数据量传递情况下消息队列堵死的问题。

关 键 词:进程  MyQ  邮箱

Application of messaging middleware in UNIX environment
LIU Dong-dong,WANG Dai-mu,NIU Lei,GUO Bo. Application of messaging middleware in UNIX environment[J]. Journal of Fuyang Teachers College:Natural Science, 2014, 0(3): 46-50
Authors:LIU Dong-dong  WANG Dai-mu  NIU Lei  GUO Bo
Affiliation:LIU Dong-dong;WANG Dai-mu;NIU Lei;GUO Bo;School of Computer and Information,Fuyang Teachers College;
Abstract:A SYSTEM V IPC messaging middleware model is presented in UNIX environment. This model introduces the concept of mailbox and through MyQ assigns a globally unique number for each mailbox messaging process. The process receives messages from its mailbox and sends e-mail messages to the target process. Specific implementation is that MyQ passes messages through shared memory contents and creates a message queue for each process to receive notification messages,and that concurrent access is controlled by lights. This can not only improve the message-passing efficiency but also solve the problem that message queue is blocked when large amounts of data are transferred.
Keywords:process  MyQ  mailbox
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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