Unlock instant, AI-driven research and patent intelligence for your innovation.

Request processing method and device

A request processing and request queue technology, applied in the computer field, can solve the problem of low request processing efficiency

Inactive Publication Date: 2018-01-12
INSPUR SOFTWARE CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Since each thread needs to obtain requests sequentially, the request processing efficiency of the existing implementation is not high

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 processing method and device
  • Request processing method and device
  • Request processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0036] Such as figure 1 As shown, the embodiment of the present invention provides a request processing method, which may include the following steps:

[0037] Step 101: Determine a connection queue including at least one connection item, wherein each connection item corresponds to a request queue.

[0038] Step 102: Execute for each thread in the pre...

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 request processing method and device. The request processing method comprises the steps that a connecting queue including at least one connecting item is determined, wherein the connecting items correspond to request queues; for each thread in a preset thread pool, one target connecting item in an idle state in the connecting queue is determined when it is determined thata current thread is in an idle state; the request queue corresponding to the target connecting item is processed by utilizing the current thread, and the current thread and the target connecting itemare marked as that they are in a non-idle state. Any thread can process one request queue, and accordingly the threads do not need to sequentially obtain requests from the same request queue. Therefore, the request processing efficiency can be improved by adopting the scheme.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a request processing method and device. Background technique [0002] With the widespread use of the Internet, large-scale concurrent scenarios are becoming more and more common. Each user can initiate a request to the server by logging into the browser client. [0003] At present, any thread can lock the request queue to obtain a request therefrom, and unlock it after the request is obtained, and the unlocked request queue can be locked again, and so on, so that each thread obtains the request. After each thread gets the request, it can process the request at the backend. [0004] Since each thread needs to obtain requests sequentially, the request processing efficiency of the existing implementation is not high. Contents of the invention [0005] The invention provides a request processing method and device, which can improve the request processing efficiency. ...

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
IPC IPC(8): G06F9/48
Inventor 葛东遥
Owner INSPUR SOFTWARE CO LTD