跪求,新手,到底RPC和IPC有撒区别

problem_maker 2012-05-22 08:52:57
我知道RPC是远程调用,
IPC是实现进程通讯.

那RPC不也实现了进程的通讯吗?

难道说是RPC激活了远程的进程,而IPC是客户机和服务机进程都在跑的情况?


急,目前加班学习中...
...全文
458 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
fuvyuv 2014-07-02
  • 打赏
  • 举报
回复
据我了解,ipc即进程间通讯有很多方式,如共享内存,管道,当然也包含socket等等,而rpc更倾向于一个进程使用另外一个进程的代码,主要是让调用者感觉系统调用在本地,忽略网络通信相关的东西。
problem_maker 2012-05-22
  • 打赏
  • 举报
回复
英文G了一下,知道了一点。
RPC是IPC的一种。
The biggest difference is that IPC can be presented in any form. It can be in the form of shared memory, it can be in the form of a byte stream, it can be in the form of messages. IPC is some way to send information from one process to another. RPC is specifically a way for one thread to call a function that will be executed by another thread, typically in another process or even on another machine. RPC is technically a form of IPC. (One way processes can communicate with each other is by having one process call a procedure in another process.)
problem_maker 2012-05-22
  • 打赏
  • 举报
回复
新哥,这快我还是不太明白呀
不断修行 2012-05-22
  • 打赏
  • 举报
回复
这两个是一个层次的么?
qq120848369 2012-05-22
  • 打赏
  • 举报
回复
赶鸭子上架,楼主很乱。
problem_maker 2012-05-22
  • 打赏
  • 举报
回复
没人知道吗?
problem_maker 2012-05-22
  • 打赏
  • 举报
回复
跪求了,各位老大

23,128

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧