Unlock instant, AI-driven research and patent intelligence for your innovation.

Multi-thread event distribution method and system

A multi-threading and event technology, applied in the field of data processing, can solve the problems of slow processing speed and low efficiency of the event distribution mechanism, and achieve the effect of increasing speed and improving processing efficiency

Inactive Publication Date: 2017-09-01
WUHAN NOTE EXCHANGE CENT CO LTD
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides a multi-thread event distribution method and system, which solves the technical problems of slow processing speed and low efficiency of the event distribution mechanism in the prior art

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-thread event distribution method and system
  • Multi-thread event distribution method and system
  • Multi-thread event distribution method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] A multi-threaded event distribution method 1000, such as figure 1 Shown, including:

[0067] Step 1100: The client sends a client event to the connection server.

[0068] Step 1200: The connection server obtains the client event. When the client event is a remote call event and there is no remote call processor corresponding to the client event in the connection server, the client event is sent to the message server.

[0069] Step 1300: When the application server obtains the client event from the message server, processes the client event and obtains the corresponding server event, connects to the server to obtain the server event, and processes the server event according to the priority order of the server event, and sends it to the client The end returns the processing result.

[0070] Among them, such as figure 2 As shown, step 1300 includes:

[0071] Step 1310: When the application server obtains the client event from the message server, processes the client event and obta...

Embodiment 2

[0076] A multi-threaded event distribution method 1000, such as image 3 Shown, including:

[0077] Step 1100: The client sends a client event to the connection server.

[0078] Step 1200: The connection server obtains the client event. When the client event is a remote call event and there is no remote call processor corresponding to the client event in the connection server, the client event is sent to the message server.

[0079] Step 1310: When the application server obtains the client event from the message server, processes the client event and obtains the corresponding server event, the cache engine in the connection server monitors and obtains the server event from the message server.

[0080] Step 1320: Prioritize the processing of message topics according to the pre-registered server events, and the cache engine stores the server events in different priority message queues, where the priority message queue includes a low priority message queue, a normal message queue and a hi...

Embodiment 3

[0097] The present invention also provides a multi-threaded event distribution system 2000, such as Figure 4 As shown, it includes: a connection server, a message server, an application server and at least one client. Among them, the client is used to send client events to the connection server; the connection server is used to obtain client events, when the client event is a remote call event, and there is no remote call processor corresponding to the client event in the connection server When, the client event is sent to the message server; the application server is used to get the client event from the message server, process the client event and get the corresponding server event; connect to the server, it is also used to get the server event, and follow the server event The priority order of processing the server event, and returns the processing result to the client.

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 relates to a multi-thread event distribution method and system. The method comprises the steps that a client sends client events to a connection server; the connection server obtains the client events, and when the client events are remote call events and remote call processors corresponding to the client events do not exist in the connection server, the client events are sent to a message server; and when an application server obtains the client events from the message server, processes the client events and obtains corresponding server events, the connection server obtains the server events, processes the server events according to a priority sequence of the server events, and returns a processing result to the client. According to the method and the system, the server events are subjected to priority classification and are processed according to the sequence of priorities from high to low, and an independent thread is adopted for each processing, so that the event processing speed is greatly increased.

Description

Technical field [0001] The present invention relates to the field of data processing, in particular to a method and system for distributing multithreaded events. Background technique [0002] The event distribution mechanism is an important part of the system developed based on Java. There are many types of events, but the prior art event distribution mechanism does not classify events, nor can it use independent threads to process events, so the processing speed is slow and the processing efficiency is not high. Summary of the invention [0003] The invention provides a multithreaded event distribution method and system, which solves the technical problems of slow processing speed and low efficiency of the event distribution mechanism in the prior art. [0004] The technical solution of the present invention to solve the above technical problems is as follows: A multi-threaded event distribution method includes the following steps: [0005] Step 1. The client sends a client event t...

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/48G06F9/54
CPCG06F9/4881G06F9/547
Inventor 方敏
Owner WUHAN NOTE EXCHANGE CENT CO LTD