Request processing method, device and apparatus and readable storage medium

The invention discloses a request processing method, which comprises the following steps of: when a request sent by a client is received, judging whether a preset processing thread of a current request in a fixed thread pool is idle or not; if not, judging whether the request is an ordered request o...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: ZHANG CHANGBIAO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a request processing method, which comprises the following steps of: when a request sent by a client is received, judging whether a preset processing thread of a current request in a fixed thread pool is idle or not; if not, judging whether the request is an ordered request or an unordered request; when the request is an ordered request, processing the request by utilizinga thread in an ordered thread pool; and when the request is an out-of-order request, processing the request by utilizing the thread in the out-of-order thread pool. According to the invention, requestqueuing and waiting can be avoided, and the request processing efficiency of the server is improved. Correspondingly, the invention also discloses a request processing device and equipment and a readable storage medium, which also have the above technical effects. 本发明公开了一种请求处理方法,包括:当接收到客户端发送的请求,则判断处于固定线程池中的当前请求的预设处理线程是否空闲;若否,则判断请求为有序请求还是无序请求;当请求为有序请求,则利用有序线程池中的线程处理请求;当请求为无序请求,则利用无序线程池中的线程处理请求。本发明能够避免请求排队等待,提高服务端对于请求的处理效率。