Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device, device and computer program for fast transmission of big data across processes

Active Publication Date: 2022-04-19
TERMINUSBEIJING TECH CO LTD
View PDF14 Cites 0 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
  • Method, device, device and computer program for fast transmission of big data across processes
  • Method, device, device and computer program for fast transmission of big data across processes
  • Method, device, device and computer program for fast transmission of big data across processes

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 method, device, device and computer program for fast transmission of large data across processes, and relates to the technical field of inter-process communication and message transmission. The method includes establishing a waiting task set according to the principle of first in first out; one or more than two Each host process in the host process 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 two or more service processes through the binder mechanism; obtain a set of data written by each host process label information; according to all label information, use the neural network to calculate, and obtain the label information of one or more groups of data of interest corresponding to each service process corresponding to the waiting task; currently running one or more waiting tasks corresponding to Each service process reads one or more groups of data it is interested in from the shared memory area through the file descriptor. The invention has the advantages of high data transmission efficiency and high intelligence of multi-process reading and writing.

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 Patents(China)
IPC IPC(8): G06F9/54G06N3/04G06N3/08
CPCG06F9/543G06F9/544G06N3/04G06N3/08
Inventor 邓耀宁
Owner TERMINUSBEIJING TECH CO LTD