Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for processing of server service requests

A business request and processing method technology, applied in the directions of multi-programming devices and resource allocation, can solve the problems of long business request processing delay, reduced server operation efficiency, and server unresponsiveness, etc., to enhance business request processing performance, improve Business request processing performance and the effect of optimizing system resource allocation

Active Publication Date: 2013-12-18
重庆超体科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The multi-threaded concurrent business request processing method usually adopted by existing servers is that whenever a request arrives, the server creates a new thread to process the newly arrived business request, and then destroys the corresponding thread after the processing is completed; Although the method can complete the multi-threaded concurrent processing of many business requests, if a large number of business requests arrive at the server in a relatively short period of time, too many business request processing threads are likely to "monopoly" occupy the system resources of the server. As a result, the operating efficiency of the server is suddenly reduced, and the business request processing delay is long or even unresponsive; not only that, but when a large number of business request processing is performed concurrently, the server also needs to create and destroy a large number of threads continuously , which undoubtedly further increases the time-consuming for the server to execute business request processing, and the creation and destruction of a large number of threads itself further consumes server system resources, which is more likely to cause serious consequences such as server unresponsiveness and business service interruption

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
  • Method and device for processing of server service requests
  • Method and device for processing of server service requests
  • Method and device for processing of server service requests

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] In this embodiment, a pair of search servers that provide data search services are taken as an example, and the server service request processing method of the present invention is used to process the data search service request, so as to illustrate the specific application and beneficial effects of the method of the present invention. After the search server receives the data search service request, it needs to analyze the data search service request to obtain the search keywords, and perform logical operations on the search keywords to obtain the corresponding index conditions, and then read a large number of data indexes stored in the search server Write matching operation, from which the data that meets the index conditions is searched and returned to the requester, and the search service request processing is completed. It can be seen that the specific processing task flow of the search server to perform data search service request processing is relatively complicat...

Embodiment 2

[0060] Since the server usually needs to perform initialization processing on more system data when starting up and running, its initialization itself needs to consume more system resources; When a lot of idle threads are created, system resources will be further consumed, resulting in slow execution of server initialization processing and failure to start to a normal running state for a long time, affecting the startup operation of the server. In order to reduce this adverse effect, this embodiment provides a more optimized server service request processing method. When the server starts to run, first create a part of standby threads, for example, create N idle standby threads, N figure 2 Shown:

[0061] S21, judging whether there is an unprocessed service request in the request queue at the current moment; if so, execute step S22; otherwise, execute step S25;

[0062] S22, judging whether there is an idle standby thread at the current moment; if so, execute step S23; otherwi...

Embodiment 3

[0068] Correspondingly, the present invention also provides a server service request processing device, which can be integrated in the server, or can be used as an independent device outside the server. The structure of the device is as image 3 shown, including:

[0069] Creation module 10 is used to create a limited number of idle idle threads in advance;

[0070] The queuing module 20 is used for queuing the received service requests to form a request queue during the operation of the server;

[0071] Scheduling module 30, is used for distributing and invoking idle threads to process unprocessed business requests in the request queue;

[0072] The state management module 40 is used to release the idle thread that is allocated and invoked to an idle state after the service request processing and execution is completed, for subsequent invocation by the server.

[0073] Specifically, the creation module 10 may include a first creation unit, configured to create Nmax idle st...

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 method and a device for processing of server service requests. The method includes: setting up unoccupied standby threads in limited quantity in advance through a server; queuing the received service requests to form a request array during operation of the server and distributing and calling the unoccupied standby threads to process the unprocessed service requests in the request array; and re-releasing the threads into the occupied state for subsequent calling by the server after the service requests are processed by the distributed and called standby threads. Using the method and the device for processing of server service requests can guarantee the server to keep higher service request processing efficiency during operation, improve the service request processing performance of the server and enable the service request processing performance of the server to be used more optimally and completely. Further, the method is widely applicable to servers of any services and enables the servers to provide quicker and efficient services so as to improve service experience of users and loyalty to service products.

Description

technical field [0001] The present invention relates to the field of computer communication network technology and server technology, in particular to a server service request processing method and device. Background technique [0002] A server refers to a high-performance computer that provides external business services to a management resource in a computer communication network. There are many types of servers, such as data servers, file servers, web servers, streaming media servers, search servers, etc., they listen to business requests from computer clients or mobile communication clients in the computer communication network, and respond to and process the business requests , and then provide various business services for computer clients or mobile communication clients, enriching network applications. Servers in computer communication networks are faced with a huge number of business requests that need to be processed at any time. The server's ability to process bus...

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 Patents(China)
IPC IPC(8): G06F9/50
Inventor 王忻
Owner 重庆超体科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products