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

一种新的队列结构形式-双头共享队列
引用本文:王芃,孙旺,许硕. 一种新的队列结构形式-双头共享队列[J]. 铁路计算机应用, 2014, 23(11): 51-54
作者姓名:王芃  孙旺  许硕
作者单位:中国铁道科学研究院 通信信号研究所,北京,100081
摘    要:通过对铁路高安全高可靠的应用环境下的双CPU结构进行分析,发现当两颗CPU需要共享数据时,由于现有简单队列具有同一数据只能够离队一次的特点,即便队列控制权完全被两颗CPU共享,依然不能实现对队列中的数据的共享。通过对这一缺陷成因的分析,本文对简单队列有针对性的做出了改进,提出了双头共享队列的方案,该方案在保持队列顺序特性不变的情况下,有效解决了简单队列中数据仅能离队一次的问题,使之能够适应双CPU结构的应用场景,提高了数据使用效率。

关 键 词:数据结构   队列   双CPU系统   双口RAM
收稿时间:2014-12-15

New queue solution-shared queue with two heads
WANG Peng,SUN Wang,XU Shuo. New queue solution-shared queue with two heads[J]. Railway Computer Application, 2014, 23(11): 51-54
Authors:WANG Peng  SUN Wang  XU Shuo
Affiliation:( Signal &Communication Institute, China Academy of Railway Sciences, Beijing 100081, China )
Abstract:Through the analysis of the dual CPU structure, which was commonly used in the high safety and reliability railway application scenarios, it was found that even if the queue control right was totally shared by two CPUs, because the existing characteristic was that the same data could be only popped out once, the sharing of the data in the queue still couldn’t be implemented. By analyzing the cause of this defect, this paper made improvement to the simple queue, and proposed a solution with two heads in one shared queue. This solution could not only keep the queue order characteristics, but also effectively solve the problem that the same data could be only popped out once, which made the queue structure more adapted to the application scene of dual CPU, and improved the use efifciency of data.
Keywords:data structure  queue  dual CPU  dual port RAM
本文献已被 维普 等数据库收录!
点击此处可从《铁路计算机应用》浏览原始摘要信息
点击此处可从《铁路计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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