Check patentability & draft patents in minutes with Patsnap Eureka AI!

Cross-process fast big data transmission method and device, equipment and computer program

A technology for fast transmission and big data, applied in the field of inter-process communication and message transmission, it can solve the problems of synchronization and mutual exclusion of read and write data, and decrease in communication efficiency, and achieve the effect of improving communication efficiency and improving the degree of intelligence.

Active Publication Date: 2021-12-07
TERMINUSBEIJING TECH CO LTD
View PDF14 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when multiple processes use shared memory to communicate, it will involve the synchronization and mutual exclusion of reading and writing data, which leads to a decrease in the overall communication efficiency

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
  • Cross-process fast big data transmission method and device, equipment and computer program
  • Cross-process fast big data transmission method and device, equipment and computer program
  • Cross-process fast big data transmission method and device, equipment and computer program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] This embodiment provides a method for quickly transferring large data across applications, for example, it can be applied to the Android system. When multi-process communication requires rapid transmission of large data, for example, the host process needs to transmit the preview data of the camera to the service process. Calculate (camera preview data is generally 1280×720, and the average frame is about 30ms), such as figure 1 shown, including the following steps:

[0054] S1. Establish a waiting task set according to the first-in-first-out principle, each waiting task element in the waiting task set corresponds to one service process in one or more than two service processes, that is, each service process corresponds to a waiting task ;

[0055] S2. Each of the one or more host processes uses the shared memory area to write a set of data, and the file descriptor of the shared memory area is passed to one or more service processes through the binder mechanism;

[00...

Embodiment 2

[0076] Corresponding to Embodiment 1, this embodiment provides a device for quickly transferring large data across processes, such as Figure 4 shown, including:

[0077] The waiting task set creation unit 1 is used to establish a waiting task set according to the first-in-first-out principle, and each waiting task element in the waiting task set corresponds to one service process in one or more than two service processes;

[0078] Data writing unit 2, used for each host process in one or more than two host processes to use the shared memory area to write a set of data, and the file descriptor of the shared memory area is passed to one or more than two service processes through the binder mechanism ;

[0079] The label information obtaining unit 3 is used to obtain the label information of a group of data correspondingly written by each host process, and the label information includes the data type, the data representation object, the location of the data collection place and...

Embodiment 3

[0099] This embodiment provides a device for rapidly transferring large data across processes, including:

[0100] one or more processors;

[0101] storage means for storing one or more programs;

[0102] When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method for rapidly transferring large data across applications in Embodiment 1.

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 discloses a cross-process fast big data transmission method and device, equipment and a computer program, and relates to the technical field of inter-process communication and message transmission. The method comprises the following steps: establishing a waiting task set according to a first-in first-out principle; enabling each host process in the one or more than two host processes to write a group of data by utilizing the shared memory area, and transmitting file descriptors of the shared memory area to one or more than two service processes through a binder mechanism; obtaining label information of a group of data correspondingly written by each host process; according to all the label information, by utilizing a neural network for calculation, obtaining the label information of one or more than two groups of interested data of the waiting task corresponding to each service process; and enabling each service process corresponding to one or more than two currently running waiting tasks to read one or more than two groups of interested data from the shared memory region through the file descriptor. The invention has the advantages of being high in data transmission efficiency and high in multi-process read-write intelligent degree.

Description

technical field [0001] The present invention relates to the technical field of inter-process communication and message transmission, in particular to a method, device, device and computer program for rapidly transmitting large data across processes, and in particular to a method and device for rapidly transmitting large data across processes based on an Android system application , equipment, storage media and computer programs. Background technique [0002] At present, some Android apps use a multi-process method for interaction, with clear layers, which can also ensure the stability of the host process. The most commonly used method of Android multi-process communication is the binder mechanism, while the traditional socket, pipeline, message and other methods are relatively inefficient. Binder transfers data with a size limit (1M), and binder needs to copy the data once (from the sending process to the kernel space), which is not very efficient. Therefore, binder is not...

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 Applications(China)
IPC IPC(8): G06F9/54G06N3/04G06N3/08
CPCG06F9/543G06F9/544G06N3/04G06N3/08
Inventor 邓耀宁
Owner TERMINUSBEIJING TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More