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

Pending Publication Date: 2020-06-19
上海金融期货信息技术有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current common solutions, such as the libevent open source library, realize the unified and simple abstraction of events, and solve the event management under the condition of IO multiplexing. For IO-intensive applications, the complexity of the code is reduced to a certain extent. , but for application developers, there are two shortcomings: one is that the interface package is too simple, the development and maintenance costs are high, and the other is that it fails to meet the CPU-intensive development requirements

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
  • Multi-threaded event processing component
  • Multi-threaded event processing component
  • Multi-threaded event processing component

Examples

Experimental program
Comparison scheme
Effect test

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

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

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

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 Applications(China)
IPC IPC(8): G06F9/54G06Q40/04
CPCG06F9/546G06Q40/04
Inventor 张海荣李思昌
Owner 上海金融期货信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products