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

Asynchronous invoking method based on component interface

A technique for asynchronously calling methods and asynchronously calling

Inactive Publication Date: 2012-10-03
KORTIDE LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the existing technology, the implementation process of asynchronous calls is relatively complicated
The implementation of asynchronous calls requires writing a lot of code, which increases duplication of labor
Moreover, the use of multi-threading to implement asynchronous calls is prone to loopholes, causing certain security risks
The existence of these problems has brought great restrictions to the realization of asynchronous calls in componentized software systems

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
  • Asynchronous invoking method based on component interface
  • Asynchronous invoking method based on component interface
  • Asynchronous invoking method based on component interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0010] The invention utilizes the callback mechanism of the componentized software system and the sandwich wall technology unique to the component to realize the asynchronous call based on the component interface.

[0011] In the componentized software system, there is already a mature callback model. This model is: A sends a call message to B, and returns after the delivery is completed; B's loop processing thread will execute the corresponding operation after discovering the call message.

[0012] In addition, in a componentized software system, each component has a sandwich wall, and all calls to component methods will first enter the sandwich wall.

[0013] When a method is called synchronously, the call information is passed through the call stack, and the method returns to the caller after execution. When a method is called asynchronously, the caller is returned immediately, and the caller may return at this point. If the parameters passed by the caller when calling thi...

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 provides an asynchronous invoking method based on a component interface, which comprises the following steps: packing invoking information in a cavity wall of a target component; delivering an asynchronous invoking message to the target component; and then, directly returning back to an invoking party. According to the asynchronous invoking message, the invoked asynchronous interface method is executed in a moment after the invoking returns. The invention can conveniently and reliably realize the asynchronous invoking based on the component interface.

Description

technical field [0001] The invention relates to a calling method in a componentized software system, in particular to an asynchronous calling method based on a component interface in a componentized software system. Background technique [0002] Asynchronous invocation is a method of invocation as opposed to synchronous invocation. If it is a synchronous call, the caller has to wait for the calling task to complete before returning. If the call is asynchronous, the caller will return quickly, but the calling task may not be executed at this time, but will be executed at a later time. With asynchronous calls, other tasks can continue without waiting for the calling task to complete. [0003] When calling to perform some time-consuming operations, such as disk read and write, and network data transmission, the asynchronous call method is usually used. The programmer creates a worker thread to wait for disk read and write or network data transmission, so as to release the CP...

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/46
Inventor 陈榕宋世军
Owner KORTIDE LTD
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