Request processing method, system, storage medium and device

By setting a conflict flag in the CHI protocol to respond to conflicts in a timely manner, the problem of long read request processes is solved, and request processing efficiency and resource utilization are improved.

CN113867982BActive Publication Date: 2025-10-28SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111065399.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-12
Publication Date
2025-10-28
Estimated Expiration
2041-09-12

AI Technical Summary

Technical Problem

In the CHI protocol, the read request process is relatively long, which increases the data bandwidth requirements and prolongs the resource release time, affecting the overall protocol efficiency and performance.

Method used

By setting a conflict flag at the sending end and generating a conflict response after the conflict flag is set, the conflict of requests can be detected in a timely manner, avoiding the need to wait for the request to reach the receiving end before discovering the conflict.

Benefits of technology

It saves request processing time, improves request processing efficiency, and reduces resource usage time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113867982B_ABST
    Figure CN113867982B_ABST
Patent Text Reader

Abstract

This invention provides a request processing method, system, storage medium, and device. The method includes: sending a first request to a receiving end via a first sending end, and sending a second request to the receiving end via a second sending end; in response to the receiving end receiving the second request, sending a first listening message to the first sending end based on the receiving end's listening directory, and obtaining a listening result that the first sending end has issued the first request based on the first listening message, and setting a first conflict flag on the first sending end based on the listening result; in response to the setting of the first conflict flag on the first sending end, generating a first conflict response and sending the first conflict response to the receiving end; in response to the receiving end receiving the first conflict response and the first request not being processed, processing the second request. This invention saves request processing time and improves request processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information technology, and in particular to a request processing method, system, storage medium, and device. Background Technology

[0002] With the widespread application of multi-core processors in the data domain, the efficiency of system buses is receiving increasing attention. In the existing CHI protocol coherent system bus, after the sender (rn) releases a read request, it receives a response from the receiver (hn). Then, rn sends a packet response, sending the response message to hn. The CHI protocol is the fifth generation of AMBA and can be considered an evolution of the ACE protocol. It uses packets to transmit all information, with each packet containing different information across various domains. Essentially, it still aims to solve the data consistency problem between multiple CPUs (rn).

[0003] The main drawback of existing technologies is the long read request process, which includes read request, read response, and response confirmation. This process increases the bandwidth requirements for data and prolongs the time for hn to release read request resources, making it impossible to release the resources allocated by hn, thereby affecting the efficiency and performance of the overall protocol. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a request processing method, system, storage medium, and device to solve the problem of long request processing time in the prior art in the CHI protocol.

[0005] To achieve the above objectives, the present invention provides a request processing method, comprising the following steps:

[0006] A first request is sent from the first sending end to the receiving end, and a second request is sent from the second sending end to the receiving end;

[0007] In response to the receiving end receiving the second request, the receiving end sends a first listening message to the first sending end based on the listening directory of the receiving end, and obtains the listening result that the first sending end has issued the first request based on the first listening message, and sets the first collision flag of the first sending end to the bit based on the listening result.

[0008] In response to the setting of the first collision flag at the first transmitting end, a first collision response is generated and sent to the receiving end;

[0009] In response to the receiving end receiving the first conflict response and the first request not being processed, the second request is processed.

[0010] In some embodiments, the method further includes:

[0011] In response to the completion of the second request processing, a processing completion message is generated and sent to the second sender.

[0012] In some embodiments, the method further includes:

[0013] In response to the receiving end receiving the first request, a second listening message is sent to the second sending end.

[0014] In some embodiments, the method further includes:

[0015] In response to the completion message arriving at the second sender before the second listening message, the second sender generates a listening response based on the second listening message and sends the listening response to the receiver.

[0016] The receiving end sends the listening response to the first sending end, and the first sending end generates a first conflict request based on the listening response and the result of setting the first conflict flag, and sends the first conflict request to the receiving end.

[0017] In response to the receiving end receiving the first conflict request, an invalid conflict response is generated based on the first conflict request and sent to the first sending end.

[0018] In some embodiments, the method further includes:

[0019] In response to the second listening message arriving at the second sender before the message is processed, the second collision flag of the second sender is set, and the second sender generates a second collision response and sends it to the receiver.

[0020] In response to the receiving end receiving the second conflict response and the second request having been processed, the request source and request code ID of the second request are recorded;

[0021] In response to the completion of recording at the receiving end, the second sending end generates a second conflict request and sends the second conflict request to the receiving end;

[0022] In response to the receiving end receiving the second conflict request, a conflict monitoring message is sent to the second sending end;

[0023] In response to the second sending end receiving a conflict monitoring message, it sends a conflict monitoring response based on the second request to the receiving end, and the receiving end processes the first request based on the received conflict monitoring response.

[0024] In some embodiments, the method further includes:

[0025] In response to the completion of the second request processing, the resources of the receiving end used during the processing of the second request are released.

[0026] In some embodiments, sending a first listening message to a first sending end based on the listening directory of the receiving end includes:

[0027] By querying the receiver's listening directory, the receiver obtains the result of listening to the first sender, and sends the first listening message to the first sender based on the result.

[0028] Another aspect of the present invention provides a request processing system, comprising:

[0029] The request sending module is configured to send a first request to the receiving end through a first sending end, and to send a second request to the receiving end through a second sending end;

[0030] The conflict flag setting module is configured to respond to the receiving end receiving a second request, send a first listening message to the first sending end based on the listening directory of the receiving end, obtain the listening result that the first sending end has issued a first request based on the first listening message, and set the first conflict flag setting of the first sending end based on the listening result.

[0031] The collision response module is configured to respond to a first collision flag setting at the first transmitting end, generate a first collision response, and send the first collision response to the receiving end; and

[0032] The request processing module is configured to process a second request in response to the receiving end receiving a first conflict response and the first request not being processed.

[0033] In another aspect, the present invention provides a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement any of the methods described above.

[0034] In another aspect, the present invention provides a computer device including a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, performs any of the methods described above.

[0035] The present invention has at least the following beneficial technical effects:

[0036] This invention sets a conflict flag at the sending end and generates a conflict response after the conflict flag is set, which is then sent to the receiving end. This allows the receiving end to know in a timely manner whether there is a conflict in the request, avoiding the need to wait for each request to arrive at the receiving end to know that a conflict has occurred when there is a conflict between requests in the prior art. This saves request processing time and improves request processing efficiency. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is a schematic diagram of a request processing method provided according to an embodiment of the present invention;

[0039] Figure 2 This is a schematic diagram of a request processing system provided according to an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of a computer-readable storage medium for implementing a request processing method according to an embodiment of the present invention;

[0041] Figure 4 This is a schematic diagram of the hardware structure of a computer device for executing a request processing method according to an embodiment of the present invention. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to specific examples and the accompanying drawings.

[0043] It should be noted that all uses of "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two different entities or different parameters with the same name. Therefore, "first" and "second" are merely for convenience of expression and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, such as other steps or units inherent in a process, method, system, product, or device that includes a series of steps or units.

[0044] Based on the above objectives, a first aspect of the present invention provides an embodiment of a request processing method. Figure 1 The diagram shown is a schematic representation of an embodiment of the request processing method provided by the present invention. Figure 1 As shown, the embodiments of the present invention include the following steps:

[0045] Step S10: Send a first request to the receiving end through the first sending end, and send a second request to the receiving end through the second sending end;

[0046] Step S20: In response to the receiving end receiving the second request, the receiving end sends a first listening message to the first sending end based on the listening directory of the receiving end, and obtains the listening result that the first sending end has issued the first request based on the first listening message, and sets the first conflict flag of the first sending end to the bit based on the listening result.

[0047] Step S30: In response to the first collision flag being set at the first transmitting end, a first collision response is generated and sent to the receiving end;

[0048] Step S40: In response to the receiving end receiving the first conflict response and the first request not being processed, process the second request.

[0049] This invention provides an embodiment of the invention that sets a conflict flag at the sending end and generates a conflict response to the receiving end after the conflict flag is set. This allows the receiving end to know in a timely manner whether there is a conflict in the request, avoiding the need to wait for each request to arrive at the receiving end to know that a conflict has occurred when there is a conflict between requests in the prior art. This saves request processing time and improves request processing efficiency.

[0050] In some embodiments, the method further includes: generating a processing completion message in response to the completion of the second request processing, and sending the processing completion message to the second sender.

[0051] In some embodiments, the method further includes: in response to the receiving end receiving the first request, sending a second listening message to the second sending end.

[0052] In some embodiments, the method further includes: in response to a processing completion message arriving at a second sending end before a second listening message, generating a listening response based on the second listening message at the second sending end, and sending the listening response to a receiving end; the receiving end sending the listening response to a first sending end, generating a first conflict request based on the listening response and the result of setting a first conflict flag at the first sending end, and sending the first conflict request to the receiving end; in response to the receiving end receiving the first conflict request, generating an invalid conflict response based on the first conflict request, and sending the invalid conflict response to the first sending end.

[0053] In some embodiments, the method further includes: in response to the second listening message arriving at the second sending end before the processed message, setting the second conflict flag of the second sending end, and generating a second conflict response and sending it to the receiving end; in response to the receiving end receiving the second conflict response and the second request having been processed, recording the request source and request code ID of the second request; in response to the receiving end completing the recording, generating a second conflict request by the second sending end and sending the second conflict request to the receiving end; in response to the receiving end receiving the second conflict request, sending a conflict listening message to the second sending end; in response to the second sending end receiving the conflict listening message, sending a conflict listening response based on the second request to the receiving end, and processing the first request by the receiving end based on the received conflict listening response.

[0054] In this embodiment, ID represents an identification number and is unique. The request code ID is the identification number of each request in the request source.

[0055] In some embodiments, the method further includes: releasing the resources of the receiving end used during the processing of the second request in response to the completion of the second request processing.

[0056] In this embodiment, after the second request is processed, the resources used by the receiving end are released, and then the first request uses those resources for processing.

[0057] In some embodiments, sending a first listening message to a first sending end based on the listening directory of the receiving end includes: obtaining the result of the receiving end listening to the first sending end by querying the listening directory of the receiving end, and sending a first listening message to the first sending end based on the result.

[0058] The following is an exemplary embodiment based on the above embodiments:

[0059] 1) rn0 (first sender) sends a read request req0 (first request) to hn (receiver), and rn1 (second sender) sends a read request req1 (second request) to hn;

[0060] 2) If req1 arrives at hn first and finds that hn's listening directory needs to listen to rn0, then hn sends the first SNP listening message to rn0. Since rn0 has a req0 read request that is being sent, a conflict occurs. Therefore, the first conflict flag in rn0 will be set, and the first conflict response will be returned. When hn receives the first conflict response sent by rn0 and req0 has not yet been executed, it sends the response of req1. At this time, req1 releases resources in hn and begins to process the request of req0.

[0061] 3) When hn receives the req0 request, it sends the second SNP listening message to rn1. If the second SNP listening message arrives at rn1 later than the response message (processing completion message) of req1, then rn1 returns a listening response. After receiving the listening response returned by rn1, hn sends a response to req0 of rn0. After receiving the response, rn0 sends the first conflict request because the first conflict flag is set. Since req1 and req0 have already been completed by hn, hn directly returns an invalid conflict response to this first conflict request.

[0062] 4) If the second SNP listening message arrives at rn1 faster than the response message (processing completion message) of req1, a conflict occurs because rn1 has not yet received a response to its req1 request. In this case, the second conflict flag in rn1 will be set, and a second conflict response will be returned. When hn receives the second conflict response from rn1 and rn1 has already completed its execution, it will record the request source and request code ID of req1 in hn. After rn1 receives the response, it sends a second conflict request. After hn receives this second conflict request, it sends a conflict listening message to rn1. After rn1 receives the conflict listening message, it sends a conflict listening response. After hn receives rn1's req1 conflict listening response, it sends a response to req0.

[0063] A second aspect of the present invention also provides a request processing system. Figure 2 The diagram shown is a schematic representation of an embodiment of the request processing system provided by the present invention. Figure 2 As shown, a request processing system includes: a request sending module 10, configured to send a first request to a receiving end via a first sending end, and to send a second request to the receiving end via a second sending end; a conflict flag setting module 20, configured to, in response to the receiving end receiving the second request, send a first listening message to the first sending end based on the listening directory of the receiving end, and obtain a listening result that the first sending end has issued the first request based on the first listening message, and set a first conflict flag of the first sending end based on the listening result; a conflict response module 30, configured to, in response to the first conflict flag of the first sending end being set, generate a first conflict response and send the first conflict response to the receiving end; and a request processing module 40, configured to, in response to the receiving end receiving the first conflict response and the first request not being processed, process the second request.

[0064] In some embodiments, the system further includes a processing completion message sending module, configured to generate a processing completion message in response to a second request for processing completion, and send the processing completion message to a second sending end.

[0065] In some embodiments, the system further includes a second listening message sending module configured to send a second listening message to a second sending end in response to the receiving end receiving a first request.

[0066] In some embodiments, the system further includes an invalid conflict module configured to, in response to a completed message arriving at the second sender before a second listening message, generate a listening response based on the second listening message at the second sender and send the listening response to the receiver; the receiver sends the listening response to the first sender; the first sender generates a first conflict request based on the listening response and the result of setting a first conflict flag, and sends the first conflict request to the receiver; in response to the receiver receiving the first conflict request, generate an invalid conflict response based on the first conflict request and send the invalid conflict response to the first sender.

[0067] In some embodiments, the system further includes a first request processing module configured to, in response to a second listening message arriving at the second sending end before the processed message arrives, set a second conflict flag at the second sending end, and generate a second conflict response and send it to the receiving end; in response to the receiving end receiving the second conflict response and the second request having been processed, record the request source and request code ID of the second request; in response to the receiving end completing the recording, generate a second conflict request at the second sending end and send the second conflict request to the receiving end; in response to the receiving end receiving the second conflict request, send a conflict listening message to the second sending end; in response to the second sending end receiving the conflict listening message, send a conflict listening response based on the second request to the receiving end, and have the receiving end process the first request based on the received conflict listening response.

[0068] In some embodiments, the system further includes a resource release module configured to release the resources of the receiving end used during the processing of the second request in response to the completion of the second request processing.

[0069] In some embodiments, the conflict flag setting module 20 includes a first listening message sending module, configured to obtain the result of the receiving end listening to the first sending end by querying the listening directory of the receiving end, and send a first listening message to the first sending end based on the result.

[0070] A third aspect of the present invention also provides a computer-readable storage medium. Figure 3 A schematic diagram of a computer-readable storage medium for implementing a request processing method according to an embodiment of the present invention is shown. Figure 3 As shown, the computer-readable storage medium 3 stores computer program instructions 31. When executed by the processor, the computer program instructions 31 perform the following steps:

[0071] A first request is sent from the first sending end to the receiving end, and a second request is sent from the second sending end to the receiving end;

[0072] In response to the receiving end receiving the second request, the receiving end sends a first listening message to the first sending end based on the listening directory of the receiving end, and obtains the listening result that the first sending end has issued the first request based on the first listening message, and sets the first collision flag of the first sending end to the bit based on the listening result.

[0073] In response to the setting of the first collision flag at the first transmitting end, a first collision response is generated and sent to the receiving end;

[0074] In response to the receiving end receiving the first conflict response and the first request not being processed, the second request is processed.

[0075] In some embodiments, the steps further include: generating a processing completion message in response to the completion of the second request processing, and sending the processing completion message to the second sender.

[0076] In some embodiments, the steps further include: in response to the receiving end receiving the first request, sending a second listening message to the second sending end.

[0077] In some embodiments, the steps further include: in response to the completion message arriving at the second sender before the second listening message, the second sender generates a listening response based on the second listening message and sends the listening response to the receiver; the receiver sends the listening response to the first sender, the first sender generates a first conflict request based on the listening response and the result of setting the first conflict flag, and sends the first conflict request to the receiver; in response to the receiver receiving the first conflict request, the receiver generates an invalid conflict response based on the first conflict request and sends the invalid conflict response to the first sender.

[0078] In some embodiments, the steps further include: in response to the second listening message arriving at the second sending end before the processed message, setting the second conflict flag at the second sending end, and generating a second conflict response and sending it to the receiving end; in response to the receiving end receiving the second conflict response and the second request having been processed, recording the request source and request code ID of the second request; in response to the receiving end completing the recording, generating a second conflict request at the second sending end and sending the second conflict request to the receiving end; in response to the receiving end receiving the second conflict request, sending a conflict listening message to the second sending end; in response to the second sending end receiving the conflict listening message, sending a conflict listening response based on the second request to the receiving end, and processing the first request based on the received conflict listening response.

[0079] In some embodiments, the step further includes: releasing the resources of the receiving end used during the processing of the second request in response to the completion of the second request processing.

[0080] In some embodiments, sending a first listening message to a first sending end based on the listening directory of the receiving end includes: obtaining the result of the receiving end listening to the first sending end by querying the listening directory of the receiving end, and sending a first listening message to the first sending end based on the result.

[0081] It should be understood that, where there is no conflict, all the embodiments, features and advantages described above for the request processing method according to the present invention are equally applicable to the request processing system and storage medium according to the present invention.

[0082] A fourth aspect of the present invention also provides a computer device, including as follows: Figure 4 The memory 402 and processor 401 shown are provided. The memory 402 stores a computer program that, when executed by the processor 401, implements the method of any of the above embodiments.

[0083] like Figure 4 The diagram shown is a hardware structure schematic of an embodiment of a computer device for executing a request processing method provided by the present invention. Figure 4 Taking the computer device shown as an example, this computer device includes a processor 401 and a memory 402, and may also include an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 can be connected via a bus or other means. Figure 4 Taking a bus connection as an example, input device 403 can receive input digital or character information, and generate key signal inputs related to user settings and function control of the request processing system. Output device 404 may include display devices such as a display screen.

[0084] Memory 402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions / modules corresponding to the request processing method in the embodiments of this application. Memory 402 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created by the use of the request processing method, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 402 may optionally include memory remotely located relative to processor 401, and these remote memories can be connected to the local module via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0085] The processor 401 executes various functional applications and data processing of the server by running non-volatile software programs, instructions, and modules stored in the memory 402, thereby implementing the request processing method of the above method embodiment.

[0086] Finally, it should be noted that the computer-readable storage medium (e.g., memory) described herein can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. By way of example, and not limitation, non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which can act as external cache memory. By way of example, and not limitation, RAM can be obtained in various forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices disclosed herein are intended to include, but are not limited to, these and other suitable types of memory.

[0087] Those skilled in the art will also understand that the various exemplary logic blocks, modules, circuits, and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability between hardware and software, the functionality of various illustrative components, blocks, modules, circuits, and steps has been generally described. Whether this functionality is implemented as software or as hardware depends on the specific application and the design constraints imposed on the system as a whole. Those skilled in the art can implement the functionality in various ways for each specific application, but such implementation decisions should not be construed as departing from the scope of the embodiments disclosed herein.

[0088] The various exemplary logic blocks, modules, and circuits described herein can be implemented or performed using the following components designed to perform the functions herein: general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP, and / or any other such configuration.

[0089] The above are exemplary embodiments disclosed in this invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments of this invention as defined by the claims. The functions, steps, and / or actions of the methods according to the disclosed embodiments described herein do not need to be performed in any particular order. Furthermore, although the elements disclosed in the embodiments of this invention may be described or claimed individually, they may be understood as multiple unless explicitly limited to a singular number.

[0090] It should be understood that, as used herein, the singular form "a" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the associatedly listed items. The embodiment numbers disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0091] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of different aspects of the invention exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.

Claims

1. A request processing method, characterized in that, Includes the following steps: A first request is sent to a receiving end through a first sending end, and a second request is sent to the receiving end through a second sending end; In response to the receiving end receiving the second request, the receiving end sends a first listening message to the first sending end based on the listening directory of the receiving end, and obtains the listening result that the first sending end has issued the first request based on the first listening message, and sets the first conflict flag of the first sending end to a bit based on the listening result. In response to the first collision flag being set at the first transmitting end, a first collision response is generated and sent to the receiving end; In response to the receiving end receiving the first conflict response and the first request not being processed, the second request is processed, and in response to the completion of the processing of the second request, a processing completion message is generated and sent to the second sending end; In response to the receiving end receiving the first request, the second sending end sends a second listening message; In response to the processing completion message arriving at the second sending end before the second listening message, the second sending end generates a listening response based on the second listening message and sends the listening response to the receiving end; The receiving end sends the monitoring response to the first sending end, and the first sending end generates a first conflict request based on the monitoring response and the result of the first conflict flag being set, and sends the first conflict request to the receiving end. In response to the receiving end receiving the first conflict request, an invalid conflict response is generated based on the first conflict request, and the invalid conflict response is sent to the first sending end.

2. The method according to claim 1, characterized in that, Also includes: In response to the second listening message arriving at the second sending end before the processed completion message, the second collision flag of the second sending end is set, and the second sending end generates a second collision response and sends it to the receiving end; In response to the receiving end receiving the second conflict response and the second request having been processed, the request source and request code ID of the second request are recorded; In response to the completion of recording at the receiving end, the second sending end generates a second conflict request and sends the second conflict request to the receiving end; In response to the receiving end receiving the second conflict request, a conflict monitoring message is sent to the second sending end; In response to the second sending end receiving the conflict monitoring message, it sends a conflict monitoring response based on the second request to the receiving end, and the receiving end processes the first request based on the received conflict monitoring response.

3. The method according to claim 1, characterized in that, Also includes: In response to the completion of the second request processing, the resources of the receiving end used during the processing of the second request are released.

4. The method according to claim 1, characterized in that, Sending a first monitoring message to the first sending end based on the monitoring directory of the receiving end includes: By querying the listening directory of the receiving end, the result of the receiving end listening to the first sending end is obtained, and a first listening message is sent to the first sending end based on the result.

5. A request processing system, characterized in that, include: The request sending module is configured to send a first request to a receiving end through a first sending end, and to send a second request to the receiving end through a second sending end; The conflict flag setting module is configured to respond to the receiving end receiving the second request, send a first listening message to the first sending end based on the listening directory of the receiving end, obtain the listening result of the first sending end having issued the first request based on the first listening message, and set the first conflict flag of the first sending end based on the listening result. A collision response module is configured to generate a first collision response and send the first collision response to the receiving end in response to the first collision flag setting bit of the first transmitting end. as well as The request processing module is configured to: process the second request in response to the receiving end receiving the first conflict response and the first request not being processed; generate a processing completion message and send the processing completion message to the second sending end in response to the completion of processing of the second request; send a second listening message to the second sending end in response to the receiving end receiving the first request; generate a listening response based on the second listening message and send the listening response to the receiving end in response to the receiving end receiving the listening response to the first sending end; generate a first conflict request based on the listening response and the result of the first conflict flag being set in the first sending end and send the first conflict request to the receiving end in response to the receiving end receiving the first conflict request; generate an invalid conflict response based on the first conflict request and send the invalid conflict response to the first sending end in response to the receiving end receiving the first conflict request.

6. A computer-readable storage medium, characterized in that, The system stores computer program instructions that, when executed by a processor, implement the method as described in any one of claims 1-4.

7. A computer device, comprising a memory and a processor, characterized in that, The memory stores a computer program, which, when executed by the processor, performs the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Data processing method for cache and related elements, equipment and system

    CN109840216A