Remote procedure call method and system, terminal and storage medium
A remote procedure call and communication medium technology, which is applied in the field of computer remote procedure call, can solve the problems of increasing the CPU burden of the client and unfavorable clients, etc., and achieve the effect of avoiding complexity and code redundancy, reducing occupation, and reducing burden
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] figure 1 It is a schematic flowchart of a remote procedure call method in an embodiment of the present invention. The remote procedure call method described in this embodiment is applied to the client.
[0060] Such as figure 1 As shown, the method 100 includes:
[0061] Step 110, initiate a corresponding number of RPC requests;
[0062] Step 120, determine the type of communication medium;
[0063] Step 130, when it is determined that the type of the communication medium is non-blocking, generate the communication identification information corresponding to each RPC request;
[0064] Step 140, storing the generated communication identification information in a preset waiting queue;
[0065] Step 150, using different threads to send each RPC request to the server, the number of threads and the RPC requests are equal and one-to-one correspondence; when each thread sends an RPC request, it sends the RPC request corresponding to it. communication identification infor...
Embodiment 2
[0109] figure 2 It is an embodiment of the remote procedure call system of the present invention. The remote procedure call system in this embodiment is applied to the client.
[0110] see figure 2 , the system 200 includes:
[0111] The RPC request initiation unit 201 initiates a corresponding number of RPC requests;
[0112] The communication medium type determining unit 202, determines the type of the communication medium;
[0113]The communication identification generating unit 203, when determining that the type of the communication medium is non-blocking, generates each RPC requesting corresponding communication identification information;
[0114] The storage unit 204 stores the generated communication identification information in a preset waiting queue;
[0115] The RPC request sending unit 205 adopts different threads to send each RPC request to the server, and the threads are equal to the number of RPC requests and correspond one-to-one; when each thread send...
Embodiment 3
[0123] image 3 It is another remote procedure call method described in the present invention. The remote procedure call method is applied to the server and used in conjunction with the method 100 described in Embodiment 1 to answer the remote procedure call of the client.
[0124] see image 3 , the method 300 includes:
[0125] Step 301, receiving the RPC request and the corresponding communication identification information sent by the client;
[0126] Step 302, analyzing the received RPC request, and correspondingly determining the target method to be invoked in each RPC request;
[0127] Step 303, execute the target method, and obtain the call return information corresponding to each target method;
[0128] Step 304: Return the call return information and communication identification information corresponding to the received RPC request as the RPC request result to the client; each RPC request corresponds to one RPC request result.
[0129] In the following, the metho...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com