网站大量收购独家精品文档,联系QQ:2885784924

Linux操作系统源代码分析——进程间通信.PDF

  1. 1、本文档共69页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux操作系统源代码分析——进程间通信

Linux 操作系统源代码分析——进程间通信 lover_P 摘要 Linux 操作系统提供进程间通信 (IPC )机制,用来保证正在执行的进程在内核的协调下能够 共享资源、同步以及交换数据等。Linux 支持大量进程间通信机制,包括信号、等待队列、管道 以及Unix 系统V 中提供的进程间通信机制,如消息队列、信号量和共享内存。 本文将对涉及Linux 进程间通信的系统调用的源代码(Linux 版本2.4.18 )进行深入但不完全 的分析。本文所包含的内容(章节)有: 消息队列 包括对系统调用msgget()、msgsnd()、msgrcv()、msgctl()的源代码 的分析。 信号量 包括对系统调用semget()、semop()、semctl()的源代码的分析。 信号 包括对系统调用signal()函数的源代码的分析。 管道 包括对系统调用pipe()函数的源代码的分析。 此外,属于Linux 进程间通信机制,但本文为提到的内容有:等待队列和共享内存。 关键字 Linux 操作系统 源代码分析 进程间通信 1 Linux 操作系统源代码分析——进程间通信 lover_P Abstract Linux provides InterProcess Communication (IPC) mechanism in order to ensure the running process could share the sources, synchronize with each other, and interchange data, etc. Linux provides many IPC mechanisms such as signal, waiting queue, pipe , and the IPC mechanisms that in the UNIX SystemV, such as message queue, semaphore, and shared memory. This paper analyses the source codes that refer to the IPC system invocation in depth but incomplete. Things that is contained in this paper includes: Message queue – includes the analysis of the system invocation msgget(), msgsnd(), msgrcv(), and msgctl(). Semaphore – includes the analysis of the system invocation semget(), semop(), and semctl(). Signal – includes the analysis of the system invocation signal(). Pipe – includes the analysis of the system invocation pipe(). Things that belongs to the IPC mechanism but not be contained in this paper includes: waiting queue and shared memory. Keywords Linux Operating system Source code analysis IPC

文档评论(0)

shaofang00 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档