Supercharge Your Innovation With Domain-Expert AI Agents!

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

Inactive Publication Date: 2020-02-04
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that the method of using the receiving thread or listening thread to wait for the response information in real time until the server sends the response information relatively increases the burden on the client's CPU, which is not conducive to the smooth progress of the client's remote procedure call in the long run

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
  • Remote procedure call method and system, terminal and storage medium
  • Remote procedure call method and system, terminal and storage medium
  • Remote procedure call method and system, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

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 a remote procedure call method, a remote procedure call system, a terminal and a storage medium. The remote procedure call system, the terminal and the storage medium areremoteprocedure call method is directly or based on or matched with the remote procedure call method for a client. The remote procedure call method comprises the following steps: initiating an RPC request;determining the type of the communication medium; when it is judged that the type of the communication medium is non-blocking, generating communication identification information of each RPC request is generated; storing the generated communication identification information in a preset waiting queue; sending each RPC request and the corresponding communication identification information to the server by adopting different threads, and suspending each thread finishing sending the RPC request and the communication identification information; after an RPC request result returned by the server isreceived, analyzing corresponding call return information and communication identification information are analyzed respectively; judging whether the analyzed communication identification informationis stored in a waiting queue or not; if so, activating a corresponding thread; and then the activated thread continuinges to execute the corresponding processing service. The method and the device system are used for reducing occupation of CPU resources of the client so as to ensure smooth remote procedure call.

Description

technical field [0001] The invention relates to the field of computer remote procedure call, in particular to a remote procedure call method, system, terminal and storage medium. Background technique [0002] RPC (Remote Procedure Call Protocol), that is, the remote procedure call protocol, is a protocol that requests services from remote computer programs through the network without knowing the underlying network technology. It adopts the client / server mode. The end that requests the service is the client, and the end that provides the service is the server. [0003] At present, when RPC is used for remote procedure calls, the client first uses the sending thread to send the RPC request to the server, and then uses the receiving thread or listening thread to wait for the response information in real time until the server sends the response information, and then the call execution continues. In this way, each RPC request corresponds to a thread waiting for a response in rea...

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 Applications(China)
IPC IPC(8): G06F9/54
CPCG06F9/547
Inventor 王唯融
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More