摘要 |
A computer-implemented method for communication includes receiving over a network multiple ordered sequences of messages. Multiple processing threads are allocated for processing the received messages. Upon receiving each new message from the network, an ordered sequence to which the new message belongs is identified. While there is at least one preceding message in the identified ordered sequence such that processing, using at least a first processing thread, of the at least one preceding message has not yet been completed, processing of the new message is deferred. Upon completion of the processing of the at least one preceding message using at least the first processing thread, a second processing thread is assigned to process the new message, and the new message is processed using the second processing thread.
|