Multi-threaded event processing component
An event processing, multi-threading technology, applied in data processing applications, multi-programming devices, electrical digital data processing, etc., can solve the problems of simple interface packaging, high development and maintenance costs, and failure to meet CPU-intensive development requirements. To achieve the effect of simplifying costs, improving event processing capabilities, and reducing complexity
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2020-06-19
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to financial software technology, in particular to a low-delay, high-concurrency multi-thread parallel event processing component applied in the field of financial futures. Background technique
[0002] In the financial futures market, there is an urgent need for low-latency, high-concurrency multi-threaded parallel processing. On the one hand, it must meet the low-latency requirements in extremely fast trading scenarios; Require. In terms of the usage characteristics of CPU and IO, there are two common application scenarios: one is CPU-intensive, which mainly occurs in scenarios with a large amount of calculation. In this scenario, threads generally use the semaphore mechanism to Trigger the delivery of messages; one is IO-intensive, which is mainly for common application scenarios such as network data reading and writing, disk IO data reading and writing, etc. In this scenario, the wake-up of threads is mainly triggered through...
Examples
Embodiment Construction
[0033] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. Note that the aspects described below in conjunction with the drawings and specific embodiments are only exemplary, and should not be construed as limiting the protection scope of the present invention.
[0034] figure 1 A schematic diagram of an embodiment of the multi-threaded event processing component of the present invention is shown. The multi-threaded event processing component of this embodiment includes: a network receiving thread module, an event thread module, a network event queue module, an internal event queue module, an event processing thread module and a timer event module.
[0035] The output end of the network receiving thread module is connected to the input end of the network event queue module, the output end of the event thread module is connected to the input end of the internal event queue module, and the output end of...