Multi-core and multi-thread message order preservation method and system
A message order-preserving and multi-threading technology, applied in the field of network communication, can solve problems such as message out-of-order, network communication blockage, resource waste, etc., and achieve the effect of preventing out-of-order phenomena
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0030] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0031] figure 1 It is a flow chart of a multi-core and multi-thread message order preservation method according to an embodiment of the present invention; refer to figure 1 , the method includes:
[0032] S1: Receive the message obtained by the network card and mark the message according to the order in which the message is received;
[0033] Wherein, the manner of marking the message may specifically be:
[0034] A single network card device directly marks the serial number, starting from 0 and adding 1 to the serial number of each message;
[0035] Multi-NIC devices mark the current timestamp;
[0036] S2: each CPU obtains its own message, and processes the message ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 