The communication method between JAVA processes (IPC)

The main methods of JAVA inter-process communication are as follows:
  (1) Pipes (Pipe): Pipes can be used for communication between related processes, allowing one process to communicate with another process that has a common ancestor with it.
  (2) Named pipe: Named pipe overcomes the limitation that the pipe has no name. In addition to the functions that the pipe has, it also allows communication between unrelated processes.
  (3) Signal (Signal): Signal is a more complex communication method, used to notify the receiving process that a certain event has occurred. In addition to inter-process communication, the process can also send a signal to the process itself.
  (4) Message (Message) queue: The message queue is a linked list of messages, including the Posix message queue system V message queue.
  (5) Shared memory: allows multiple processes to access the same memory space, which is the fastest available form of IPC. It is designed for the low operating efficiency of other communication mechanisms.
  (6) Memory mapping (mapped memory): Memory mapping allows any multiple inter-process communication, and each process using this mechanism implements it by mapping a shared file to its own process address space.
  (7) Semaphore: Mainly used as a means of synchronization between processes and between different threads of the same process.
  (8) Socket: A more general inter-process communication mechanism that can be used for inter-process communication between different machines.
CSDN: The communication method between JAVA processes (IPC)

Guess you like

Origin blog.csdn.net/m0_38127487/article/details/113913410