JIMI 发表于 20:50

基于UNIX共享内存的进程间通信模块的设计与实现

论文编号:DZXX167  论文字数:10185,页数:26
摘要
 本文研究Linux下如何通过共享内存技术实现应用程序间的通信。详细介绍了Linux开发环境,系统V共享内存模型,读写锁,对象封装模型,内存分配等的设计。在后台服务的设计上采用固定分配内存的方案,并设计高效算法、同步机制来管理这个模块,并且在Linux下采用C语言实现了共享内存的有效管理。
 共享内存机制使得进程间可以更加频繁高效地交换数据,有效地提高了大量数据处理的性能。
 
关键词:共享内存、IPC、同步、进程间通信
ABSTRACT
 This article study that how to realize Inter-process communication by shared memory in the Linux operating system.It introduces the design of Linux development environment,System v shared-memory model,Read-write lock ,Object Package model,memory alloction and so on.I use the plan of fixed alloction of memory in the design of backround service, design efficient algorithms, synchronization to mange this model ,and achieve effective management of shared memory  Using C language in the linux operating system.
 Shared memory mechanism make inter-process can be more frequent exchange of data, effectively improving the performance of large amounts of data processing.
 
Keywords:shared-memory、IPC、synchronization、Inter-process communication
目  录
摘要 II
ABSTRACT III
第1章 引言 1
1.1 研究的背景 1
1.2 研究的内容 1
第2章 Linux开发环境 2
2.1 vim编辑器 2
2.2 gcc编译器 2
2.3 链接库 3
2.3.1 静态库 3
2.3.2 共享库 3
第3章 系统分析 5
3.1 需求分析 5
3.2 主要目标 5
3.3 解决方案 5
3.4 实现方式 6
3.4.1 系统V原理 6
3.4.2 系统V 模型 7
3.5 可行性分析 8
第4章 具体设计 9
4.1内存空间的设计 9
4.2 数据结构的设计 10
4.3 详细功能的设计 10
4.3.1 共享内存的实现 10
4.3.2 记录加锁功能 10
4.3.3 记录实现模块 11
4.4 同步机制的设计 11
4.4.1 同步的必要性 11
4.4.2 同步的的实现思路 12
4.4.3 进程间读写锁的设计 12
4.5 共享对象C++模型的设计 13
4.5.1 共享内存封装技术概述 13
4.5.2 C++共享内存封装模型 13
第5章 总结 17
5.1 设计上的不足 17
5.2 感想 17
致谢 18
参考文献 19
附录 源代码 20
页: [1]
查看完整版本: 基于UNIX共享内存的进程间通信模块的设计与实现