Asynchronous communication method, electronic device and storage medium
Implementing asynchronous communication between Java and native languages through JNI solves the system complexity problem caused by synchronous communication in cross-language communication, simplifies asynchronous communication and memory management, and improves work efficiency.
WO2025202750A1PCT designated stage Publication Date: 2025-10-02CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
Patent Information
- Application Number
- PCT/IB2025/051636
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-27
- Filing Date
- 2025-02-14
- Publication Date
- 2025-10-02
Smart Images

Figure IB2025051636_02102025_PF_FP_ABST
Abstract
Provided in one or more embodiments of the present disclosure are an asynchronous communication method, an electronic device and a storage medium. The method is applied to an asynchronous communication system, and comprises: in response to receiving task-related information that is provided by a first task object during the execution of a target task, a first communication object initiating a cross-language call request to a second communication object by means of a JNI, which request includes the information, and sending to the first task object an interrupt notification for the target task, wherein the reception of the interrupt notification is used by the first task object as a prerequisite for executing other tasks; in response to the cross-language call request, the second communication object providing the task-related information to a second task object for processing, so as to obtain a processing result, and initiating a cross-language callback request to the first communication object by means of the JNI, which request includes the corresponding processing result; and in response to the cross-language callback request, the first communication object returning the processing result to the first task object, such that the first task object continues to execute the target task on the basis of the processing result.
Need to check novelty before this filing date? Find Prior Art
Citation Information
Patent Citations
Terminal
CN104618952A
Method and system for performing a JAVA interrupt
US20080134212A1
Batch dispatch of JAVA native interface calls
US20120167067A1
Cross-address space offloading of multiple class work items
US20180032358A1