Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for realizing interprocess asynchronous communication based on Java

A technology of asynchronous communication and implementation method, applied in the field of asynchronous communication between processes based on Java, can solve the problem that the process number cannot uniquely identify the process, and achieve the effect of simplifying the encapsulation and parsing

Inactive Publication Date: 2009-05-27
ZHEJIANG UNIV
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the network environment, the process number assigned independently by each host cannot uniquely identify the process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing interprocess asynchronous communication based on Java
  • Method for realizing interprocess asynchronous communication based on Java
  • Method for realizing interprocess asynchronous communication based on Java

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In conjunction with the accompanying drawings, the present invention will be further described below.

[0039] A method for implementing asynchronous communication between processes based on Java, the specific implementation method is as follows:

[0040] (1) Realization of communication service process:

[0041] The communication service process is a transfer station for communication. The design adopts the strategy of "slow receiving" and "fast sending", and makes full use of the multi-thread mechanism provided by Java. It is a process containing multiple threads and maintains three core data structures: Communication structure table, process group index table and sending thread instance table;

[0042] The communication structure table records all sockets connected to the gateway and the object input (ObjectInput) and object output (Object Out) established on it. The process group index table uses the target process group ID as the key to point to the sending thread...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention involves the area of inter-process communication techniques, which is to provide a method for asynchronous inter-process communication based on JAVA. The method includes the following steps: (1) the implementation of communication service procedure; (2) implementation of intra-process communication service; (3) message design; (4) implementation of communication process. The invention adopts concentrated communication, and introduces message trigger mechanism in the inter-communication with upper applications. While receiving messages, the communication system will invoke callback functions to process. Meanwhile, messages are encapsulated to be objects, and are transmitted with Java's serialization mechanism. Processes only communicate with service programs. Processes know where service programs are, and service programs keep information of all processes.

Description

technical field [0001] The present invention relates to the technical field of inter-process communication, and more specifically, relates to a method for realizing asynchronous communication between processes based on Java. Background technique [0002] The concept of process communication originally originated from a stand-alone system. Since each process runs in its own address range, in order to ensure that two communicating processes do not interfere with each other and work in harmony, the operating system provides corresponding facilities for process communication, such as the pipe (pipe) in UNIX BSD ), named pipe (namedpipe) and soft interrupt signal (signal), UNIX system V message (message), shared storage area (shared memory) and semaphore (semaphore), etc., but they are all limited to use between native processes communication. The inter-network process communication needs to solve the problem of mutual communication between different host processes (the same ma...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54H04L29/06
Inventor 胡威陈天洲谢斌杨扬
Owner ZHEJIANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products