these two method are often used in OS and parallel and distributed system and many other place in computer.
one example of shared memory is http://blog.163.com/zhe_wang_2009/blog/static/172282121201174486887/
And, Message passing is a way of invoking behavior through some intermediary service or infrastructure. Rather than directly invoke a process, subroutine, or function by name as in conventional programming, message passing sends a message to a process (which may be an actor or object) and relies on the process and the supporting infrastructure to select and invoke the actual code to run.Message passing is used ubiquitously in modern computer software. It is used as a way for the objects that make up a program to work with each other and as a way for objects and systems running on different computers (e.g., the Internet) to interact. Message passing may be implemented by various mechanisms, including channels.
本文探讨了共享内存和消息传递两种计算机系统中常见的进程间通信方式。共享内存通过允许多个进程访问同一块内存区域来促进数据交换;而消息传递则通过发送消息而非直接调用函数或过程来实现进程间的交互。这两种方式广泛应用于操作系统、并行及分布式系统。
2296

被折叠的 条评论
为什么被折叠?



