Request callback method and apparatus, and client device

A technology for client devices and server devices, applied in the field of request callback methods, devices and client devices, can solve problems such as low efficiency and high performance overhead, and achieve the effects of reducing workload, reducing performance overhead, and avoiding data confusion

Active Publication Date: 2020-04-10
GUANGZHOU HUADUO NETWORK TECH
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The commonly used method of detecting the time point when multiple asynchronous requests are completed has high performance overhead and low efficiency

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
  • Request callback method and apparatus, and client device
  • Request callback method and apparatus, and client device
  • Request callback method and apparatus, and client device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0023] In order to realize certain functions, the client needs to send multiple asynchronous requests to the server, and the multiple asynchronous requests are usually sent by different threads. The client needs to perform subsequent operations uniformly when the server completes the multiple asynchronous requests. For this situation, the client needs to determine the time point when multiple asynchronous requests are all completed. In some implementations, the thread that sends an asynchronous request in the client usually sets the flag bit of the asynchronous request when the asynchronous request is completed, and reads the values ​​of the flag bits of other asynchron...

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 request callback method and apparatus, and a client device, and relates to the technical field of computers. The method comprises the following steps: sequentially detectingwhether each asynchronous request is responded by the server-side equipment or not for each asynchronous request which is sent to the server-side equipment and needs to be called back in a unified manner; if the currently detected asynchronous request is responded by the server-side equipment, detecting whether the next asynchronous request is responded by the server-side equipment or not; if thecurrently detected asynchronous request is not responded by the server-side equipment currently, waiting for the server-side equipment to respond to the currently detected asynchronous request, and detecting whether the next asynchronous request is responded by the server-side equipment or not when determining that the currently detected asynchronous request is responded by the server-side equipment; and when it is determined that each asynchronous request is responded by the server device, executing unified callback on each asynchronous request. In this way, the performance overhead of calling back each asynchronous request by the client device can be reduced.

Description

technical field [0001] The present application relates to the field of computer technology, and more specifically, to a request callback method, device and client device. Background technique [0002] In order to realize a certain function, the client needs to send multiple asynchronous requests to the server, and perform a specific operation uniformly when the multiple asynchronous requests are completed. Therefore, there is a need to detect the point in time at which multiple asynchronous requests issued complete. The commonly used method of detecting the time point when multiple asynchronous requests are completed has high performance overhead and low efficiency. Contents of the invention [0003] In view of the above problems, the present application proposes a request callback method, device, and client device to improve the above problems. [0004] In the first aspect, the embodiment of the present application provides a request callback method, which is applied to...

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): H04L29/08G06F9/52
CPCG06F9/522H04L67/60
Inventor 陈智颖余平
Owner GUANGZHOU HUADUO NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products