Master-slave architecture server, service processing method thereof and service processing system thereof
Patent Information
- Authority / Receiving Office
- CN Β· China
- Current Assignee / Owner
- TAOBAO CHINA SOFTWARE
- Publication Date
- 2016-02-17
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The present application relates to the field of computer technology, and in particular to a master-slave architecture server, a method for processing business, and a system for processing business. Background technique
[0002] Currently, many servers have a multi-core central processing unit (CPU) and support a Symmetric Multi-Processing (Symmetric Multi-Processing, SMP) architecture. In order to make full use of CPU resources, many high-performance servers adopt a master-slave architecture. The schematic diagram of the master-slave architecture is shown in figure 1 As shown, the parent process first parses and loads the configuration file, creates a socket and binds the listening port, and then creates multiple child processes, each of which inherits the resources of the parent process. The number of sub-processes is the same as the number of cores of the CPU. In order to prevent sub-processes from migrating between CPUs, sub-processes can also be b...