zoukankan      html  css  js  c++  java
  • InterProcess Communication

    There are two fundamental models of interprocess communication:

    (1) shared memory: singal, semaphore, monitor, memory-mapped file.

    (2) message passing: socket(the primitive way, Direct or communications), pipe(Indirect communications), MSMQ, RPC (COM, DCOM, .Net Remoting, WCF, CORBA, Java RMI, etc., are just RPC systems

    So far we have discussed two different types of interprocess communication: semaphores and monitors. These methods work well on computers with shared memory, but they are not effective on distributed systems. Semaphores and monitors provide no machine to machine communication capability. The last method we will discuss,Message passing, solves this problem. Two primitives, SEND and RECEIVE are used in the message passing scheme. The SEND primitive sends a message to a destination process while the RECEIVE primitive receives a message from a specified source process. Message Passing works on distributed systems because these messages can be sent from machine to machine through a network.

    For message passing, 

    • Exchange messages over a communication link
    • Methods for implementing the communication link and primitives (send/receive): 
      1. Direct or Indirect communications (Naming)
      2. Symmetric or Asymmetric communications
      3. Automatic or Explicit buffering
      4. Send-by-copy or send-by-reference
      5. fixed or variable sized messages

    /Files/silva/ipc.ppt

    https://files.cnblogs.com/silva/Monitors,IPC,andRPC.ppt

  • 相关阅读:
    Runner站立会议07
    Runner站立会议06
    “记计帐”需求分析
    Runner站立会议03
    Runner站立会议02
    2016年秋季个人阅读计划
    梦断代码阅读笔记03
    进度条15
    梦断代码阅读笔记02
    软件工程概论课程总结
  • 原文地址:https://www.cnblogs.com/silva/p/1877828.html
Copyright © 2011-2022 走看看