期刊文献+

基于无锁数据结构的FIFO队列算法 被引量:8

FIFO Queue Algorithm Based on Lock-free Data Structure
下载PDF
导出
摘要 现代商用多核处理器缺少硬件支持的处理核间通信机制,多个处理核间必须通过加锁保护的共享内存传递数据。为此,设计一种基于软件的无锁队列作为核间通信机制,通过无锁数据结构提高软件队列的性能。当数据到达速率较低时,队列自适应地减小队列长度,从而占用较小的内存空间,进而更好地利用处理器高速缓存;当数据到达速率较高时,队列自适应地增加队列长度,以避免数据丢失。实验结果表明,在数据到达速率变化较大的实际应用场景中,该队列较FastForward、MCRingBuffer和B-Queue队列具有更高的数据处理性能。 Modern commercial multicore processors lack a hardware-supported mechanism for processing inter-core communication,and multiple processing cores must pass data through locked shared memory. Therefore,a software-based lock-free queue is designed as an inter-core communication mechanism,to improve the performance of the software queue through the data structure without lock. When the data arrival rate is lower,the queue adaptively reduces the queue length,thus taking up less memory space and making better use of processor cache;When the data arrival rate is higher,the queue adaptively increases the queue length to avoid data loss. Experimental results show that this queue has higher data processing performance than FastForward,MCRingBuffer and B-Queue queues in practical application scenarios w here the data arrival rate changes greatly.
作者 王俊昌 王振 付雄 WANG Junchang1,2 ,WANG Zhen1,2,FU Xiong1,2(1.School of Computer Science, Nanjing University of Posts and Telecommunications, Nanjing 210023, China;2.Jiangsu Key Laboratory of Big Data Security and Intelligent Processing, Nanjing 210023, Chin)
出处 《计算机工程》 CAS CSCD 北大核心 2018年第8期315-320,共6页 Computer Engineering
基金 国家自然科学基金(61602264)
关键词 无锁数据结构 多核处理 流水线并行 自适应调整 CPU核间通信 lock-free data structure multi-core processing pipeline parallelism self-adjustment CPU core-to-core communication
  • 相关文献

参考文献3

二级参考文献38

共引文献17

同被引文献45

引证文献8

二级引证文献36

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部