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

CN111309494APending Publication Date: 2020-06-19上海金融期货信息技术有限公司
4 Cites 3 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2020-06-19

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a multi-thread event processing component, which realizes unified management of events by unifying external event definition basic types, packaging high-concurrency lockless queues, unifying semaphore and IO multiplexing wake-up mechanisms, and realizes low-delay and high-concurrency access of thread communication while reducing development difficulty and cost. According tothe technical scheme, through a unified event model, underlying event management and thread notification management mechanisms are decoupled, the cost of application developers for multi-thread eventdevelopment is reduced, and the event processing capacity of applications is improved. Compared with an existing event processing method, on one hand, the consistency problem of underlying network communication and internal event communication is solved; by means of the embedded memory pool model, the lock-free queue and other mechanisms, the event processing efficiency of the application programis greatly improved, the complexity of the system is lowered, and meanwhile high concurrency and low delay are guaranteed.
Need to check novelty before this filing date? Find Prior Art

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...