摘要
针对传统的共享内存区管理方式存在的内存资源浪费、使用效率低等问题,提出了一种可滑动的动态共享内存缓冲池技术来实现线程间的大批量数据通讯,即为所有线程申请一整块空间作为存放数据的缓冲池,建立一定数量的单向指针链表,每个指针链表代表一个数据缓冲区.管理内存时,可按需要动态地增减每个指针链表的节点数,使每个数据缓冲区占用的内存按需滑动.理论分析与测试结果表明,该技术提高了整个内存缓冲区的利用率和数据传递的效率.
In order to make full use of share memory to improve the data communication efficiency between threads, the use of a slidable dynamic share memory buffer pool is proposed to realize the large volume of data communication between threads, this means, a whole piece of space is applied as the memory buffer pool for all threads, a certain number of unidirectional index queues are constructed, and each index queue represents a data buffet zone. The number of nodes in each index queue can be increased or decreased as requirement for memory management so that the memory occupied by each data buffet zone can be slid appropriately. Theoretical analysis and test results show that the use of slidable dynamic share memory buffer pool improves the utilization of the whole memory buffet zone and the data communication efficiency.
出处
《哈尔滨工业大学学报》
EI
CAS
CSCD
北大核心
2004年第3期380-383,共4页
Journal of Harbin Institute of Technology