Method and device for processing user request

A user request and processor technology, applied in multi-programming devices, program startup/switching, resource allocation, etc., can solve the problems of long development cycle, rising cost, affecting business expansion, etc.

Active Publication Date: 2016-08-17
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF1 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, expanding the physical memory will lead to an increase in cost. If you consider how to reduce memory usage, the development cycle will become longer, and the development of small memory will affect business expansion.

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 user request
  • Method and device for processing user request
  • Method and device for processing user request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0024] figure 1 is a flowchart of a method for processing a user request according to an exemplary embodiment, such as figure 1 As shown, the method is used in the server and includes the following steps.

[0025] In step S11, if there is a service process in the list of available service processes of the server that occupies the memory of the server exceeding a predetermined memory ...

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 relates to a method for processing a user request, and the method is applied to a server. The method comprises the steps that when a memory occupying the server exists in an available process list of the server and exceeds a service process of a scheduled memory threshold, the service process is deleted from the available process list; the service process is finished; a new service process is created and added to the available service process list; the user request received by the server is processed according the a currently available service process list. In this way, operation of garbage collection is reduced, the service response time is shortened, and therefore the immediacy of a response is improved, the high availability of service is guaranteed, and the user experience is improved.

Description

technical field [0001] The invention relates to the field of server process operation, in particular to a method and device for processing user requests. Background technique [0002] At present, more and more servers are developed using languages ​​with garbage collectors (such as Go, Java) to improve development efficiency and reduce maintenance costs. When using a garbage collector, it is necessary to stop the program response (Stop the world) to run garbage collection. Due to the uncertainty of the timing of garbage collection, it is often triggered frequently when the program load is heavy, which affects the real-time performance of business response. For many server platforms, it will affect the real-time response and reduce the user experience. For example, for e-commerce platforms, it will affect the number of orders. [0003] The above problems can be solved by making the server expand the physical memory as much as possible, optimizing the memory usage of the pro...

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/48G06F9/50
Inventor 马鑫李伟金帅
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD
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