The invention discloses a method for realizing
data processing and interaction, which is applied to a
client. The method comprises the following steps: taking a request command out of a new request command
linked list and inserting into a positive
processing command
linked list by a command
processing thread, splitting the request command, and inserting data packets formed by splitting into a sending packet
linked list; taking the data packets out of the sending packet listed
list for sending by sending threads; inserting the data packets into a receiving packet linked
list by receiving threads if the receiving threads receive the data packets from a service; judging whether the data packets in the receiving packet linked
list can assemble into a
complete response command or not by a data
packet processing thread, and if so, taking out the data packets for
assembly, inserting the response command after the completion of
assembly into a response command linked list and deleting the corresponding request command in the positive
processing command linked list according to the response command, wherein the sending threads and the receiving threads are multiple, and all the threads can perform parallel execution. According to the method disclosed by the invention, the
bandwidth utilization rate of physical connection can be improved, and the number of logical connections can be further optimized.