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

A server-side multi-thread management method based on cs architecture

A management method and server-side technology, applied in the direction of multi-program device, instrument, program control design, etc., can solve the problems of difficult expansion of server-side services, affect the running speed of the server-side, prolong the response time of the client-side, etc., so as to facilitate the addition of new services, ease of cross-platform use, and the effect of highlighting substantive features

Active Publication Date: 2020-03-10
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Under the CS (Client / Server) architecture, to achieve different tasks on the server side (Server side), it is necessary to start multiple processes corresponding to their respective services, that is, multi-threaded processing is mainly used on the server side to process the respective tasks of different clients. In the prior art, different threads are usually started to deal with the requests from different clients, and there are cases where multiple threads are started to process the same requests from different clients, which is to a certain extent Affects the running speed of the server, which in turn prolongs the response time to the client's request to a certain extent
[0003] In addition, there are multi-thread management solutions in the prior art, but all of them make it difficult to expand the server-side service. That is, if the server-side adds services, the process is cumbersome, and the expansion is troublesome. Once expanded, the code is bloated

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
  • A server-side multi-thread management method based on cs architecture
  • A server-side multi-thread management method based on cs architecture

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach 1

[0028] Such as figure 1 As shown, a kind of server-side multi-thread management method based on CS framework of the present invention comprises steps;

[0029] A. Obtain the request information sent by each client in real time;

[0030] B. Determine and classify the request mode classification of each request information currently acquired in step A;

[0031] C. Based on the classification of the request methods currently divided in step B, correspondingly call the corresponding pre-set thread to execute the corresponding service, and correspondingly obtain the processing results corresponding to the classification of the request methods currently obtained in step B;

[0032] D. Correspondingly return the corresponding processing results currently acquired in step C to each client described in step A.

[0033] Among them, in order to illustrate the present invention more clearly, take 5 clients (client 1, client 2, client 3, client 4 and client 5) sending 5 request informati...

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 server-side multithread management method based on CS architecture. The method comprises the following steps: A, acquiring request information sent by each client in real time; B, judging and dividing a request way classification of each currently acquired request information in the step A; C, correspondingly calling a preset corresponding thread to execute a relevant service based on the currently divided request way classification in the step B, and correspondingly acquiring a processing result respectively corresponding to each currently divided request way classification in the step B; and D, correspondingly returning the respectively corresponding relevant processing result to each client in the step A. The request information comprises a header protocol and a data packet. The step B comprises correspondingly judging and dividing the request way classification corresponding to each currently acquired request information in the step A based on the header protocol of each currently acquired request information in the step A. By use of the management method provided by the invention, the running speed at the server-side can be improved, and the convenience of service expansion at the server-side can be improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a server-side multi-thread management method based on a CS architecture. Background technique [0002] Under the CS (Client / Server) architecture, to achieve different tasks on the server side (Server side), it is necessary to start multiple processes corresponding to their respective services, that is, multi-threaded processing is mainly used on the server side to process the respective tasks of different clients. In the prior art, different threads are usually started to deal with the requests from different clients, and there are cases where multiple threads are started to process the same requests from different clients, which is to a certain extent Affects the operating speed of the server, which in turn prolongs the response time to the client's request to a certain extent. [0003] In addition, there are multi-thread management solutions in the prior art, but all of them...

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): H04L29/06G06F9/50
CPCG06F9/5033G06F2209/5015H04L69/22
Inventor 代振宇
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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