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

Cross-process callback execution method and device, equipment and storage medium

An execution method and cross-process technology, applied in the direction of program control device, execution paradigm, program control design, etc., can solve the problems of poor code maintainability and scalability, increase the difficulty of program developers, and affect the efficiency of resource use, etc. Achieve the effect of improving program development efficiency, simplifying code writing, and improving operating efficiency

Pending Publication Date: 2020-11-03
广州方硅信息技术有限公司
View PDF1 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] First of all, the multi-thread relationship between the main thread and the sub-thread itself has the problem of the efficiency of creating threads and switching threads. Therefore, various threads need to occupy the limited CPU, memory and other resources of the terminal electronic equipment, which affects the efficiency of the use of these resources.
[0009] Secondly, when implementing the program, the maintainability and scalability of the code are poor, which is inconsistent with the original intention of the above solution to improve development efficiency
[0010] In addition, due to the need to consider the relationship between threads, it obviously increases the development difficulty of program developers.

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 callback execution method and device, equipment and storage medium
  • Cross-process callback execution method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary, and are only used to explain the present application, and cannot be construed as a limitation to the present application.

[0043] Those skilled in the art can understand that, unless specifically stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of this application refers to the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements...

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 callback execution method, device and equipment and a storage medium, and the method comprises the steps: responding to an interface call request, and recognizing a parameter which is correspondingly carried by a programmed annotation and represents a callback method; constructing a callback proxy object for a callback method based on the parameters, and generating callback feature information; initiating interface calling by calling an interface proxy object pre-constructed by a service process, and transmitting calling running information and callbackfeature information required by running of the interface proxy object to the service process, so the service process calls the callback proxy object through the callback feature information when running an instance object of the interface proxy object; executing callback; and responding to the interface calling request according to result data returned after the service process runs the instance object. According to the method and the device, the problem of effective and efficient calling of the callback method in cross-process communication is solved, the hardware operation efficiency duringcross-process callback is improved, and the related program development efficiency is improved.

Description

Technical field [0001] This application relates to the application development technology of the Android operating system, in particular to a cross-process callback execution method, and also to devices, electronic equipment and non-volatile storage media corresponding to the method. Background technique [0002] In response to the problem of cross-process interface creation and invocation of the Android operating system, the applicant proposed a cross-process interface invocation implementation in the CN111400070A patent announcement published on July 10, 2020. [0003] The calling implementation method includes the following steps: in the application, the service process and the client process communicating across processes define the implementation class and the interface class of the same interface respectively in the way of programming annotations, and agree on the interface identifier of the interface; After the program is installed and running, the service process registers ...

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
IPC IPC(8): G06F9/448G06F9/445
CPCG06F9/4482G06F9/44526
Inventor 关安杰
Owner 广州方硅信息技术有限公司
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