IPC message processing method, system, storage medium and device
By using the weight distribution mechanism of multi-threads and circular linked lists in IPC message processing, the problem of low IPC message processing efficiency in the existing technology is solved, efficient and stable message processing is achieved and system concurrency is improved.
Patent Information
- Application Number
- CN202210912744.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-31
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-07-31
AI Technical Summary
Both the synchronous and asynchronous methods of IPC message processing in the prior art have problems of low processing capabilities and low processing efficiency.
The first process on the IPC message sending end creates a first thread and sends the IPC message to the message linked list. The second process on the IPC message receiving end creates a second thread and a circular linked list. The second thread scans the message linked list and responds to detecting the IPC message. Send it to the circular linked list and distribute it based on the weight of the IPC message in the circular linked list.
It realizes the synchronization mode and asynchronous mode of IPC message processing to complement each other. It has both the feedback mechanism of synchronous processing and the non-blocking characteristics of asynchronous processing, making the sending and receiving processing of IPC messages more efficient and stable, and improving the business processing capabilities and system processing efficiency.
Smart Images

Figure CN115098283B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to an IPC message processing method, system, storage medium and device. Background Art
[0002] There are usually multiple ways to share information between processes. One is to access the file system through the kernel, the second is to share through shared information residing in the content, and the third is to share through process shared memory areas.
[0003] IPC (Inter-Process Communication) message processing methods can be divided into synchronous and asynchronous methods. The synchronous method will block the function process until the message processing is completed and the result is returned, and the process will continue to run. Figure 1 FIG. 1 is a schematic diagram of an asynchronous processing method of IPC messages provided according to the prior art. Figure 1 As shown, the asynchronous method will not block the function process. After sending the message, the process continues to run and does not care about the result of the message execution.
[0004] Therefore, both the synchronous and asynchronous methods for IPC message processing are currently insufficient, resulting in low processing capability and efficiency. Summary of the invention
[0005] In view of this, the purpose of the present invention is to propose an IPC message processing method, system, storage medium and device to solve the problem that both the synchronous and asynchronous methods of IPC message processing in the prior art are insufficient, resulting in low processing capability and processing efficiency.
[0006] Based on the above purpose, the present invention provides an IPC message processing method, comprising the following steps:
[0007] Create a first thread through a first process at the IPC message sending end, and send the IPC message to the message linked list through the first thread;
[0008] A second thread and a circular linked list are created by a second process at the IPC message receiving end, and the second thread scans the message linked list, and in response to detecting that there is an IPC message in the message linked list, the IPC message is sent to the circular linked list;
[0009] The IPC messages are distributed and processed based on the weights of the IPC messages in the circular linked list through the second thread.
[0010] In some embodiments, distributing the IPC message based on the weight of the IPC message in the circular linked list by the second thread includes:
[0011] Obtain the IPC message in the circular linked list through the second thread, and allocate a corresponding amount of resources to the IPC message according to the weight of the obtained IPC message;
[0012] In response to the completion of resource allocation, the acquired IPC message is handed over to the business module for processing through the second thread.
[0013] In some embodiments, allocating a corresponding amount of resources to the acquired IPC message according to its weight includes:
[0014] A corresponding amount of resources is allocated to the obtained IPC message according to the weight of the instance message in the obtained IPC message.
[0015] In some embodiments, the method further comprises:
[0016] A third thread is created through the first process, and a timeout processing function and a callback function are registered to the third thread.
[0017] In some embodiments, the method further comprises:
[0018] In response to the circular linked list being full, a first completion signal indicating that the linked list is full is sent to the third thread through the IPC message receiving end, so that the third thread triggers callback processing based on the callback function.
[0019] In some embodiments, the method further comprises:
[0020] In response to completing the distribution processing of the IPC message through the second process, a second completion signal is sent to the IPC message sending end to notify the IPC message sending end to perform callback processing through the third thread.
[0021] In some embodiments, the method further comprises:
[0022] In response to the incomplete distribution processing of the IPC message through the second process, an abnormal completion signal or a timeout signal is sent to the IPC message sending end to notify the IPC message sending end to perform special callback processing through the third thread.
[0023] Another aspect of the present invention further provides an IPC message processing system, comprising:
[0024] A sending module, configured to create a first thread through a first process of an IPC message sending end, and send the IPC message to a message linked list through the first thread;
[0025] a scanning module configured to create a second thread and a circular linked list through a second process of the IPC message receiving end, and the second thread scans the message linked list, and in response to detecting that there is an IPC message in the message linked list, sends the IPC message to the circular linked list; and
[0026] The processing module is configured to distribute and process the IPC messages based on the weights of the IPC messages in the circular linked list through the second thread.
[0027] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer program instructions, and the computer program instructions implement the above method when executed by a processor.
[0028] According to another aspect of the present invention, a computer device is provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and the computer program executes the above method when executed by the processor.
[0029] The present invention has at least the following beneficial technical effects:
[0030] The IPC message processing method of the present invention creates a first thread through a first process at an IPC message sending end, and sends the IPC message to a message linked list through the first thread, creates a second thread and a circular linked list through a second process at an IPC message receiving end, and the second thread scans the message linked list, and when detecting that an IPC message exists in the message linked list, sends the IPC message to the circular linked list, and distributes and processes the IPC message based on the weight of the IPC message in the circular linked list through the second thread, thereby taking advantage of the strengths of the existing synchronous and asynchronous methods of IPC message processing, having both the feedback of the IPC message synchronous processing mechanism and the non-blocking characteristics of the IPC message asynchronous processing method, making the sending and receiving processing of the IPC message more efficient and stable, improving the business processing capability, and improving the concurrency of the business to a certain extent, thereby improving the system processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A schematic diagram of an IPC message asynchronous processing method provided according to the prior art;
[0033] Figure 2 A schematic diagram of an IPC message processing method provided according to an embodiment of the present invention;
[0034] Figure 3 A schematic diagram of the structure of an IPC message processing method provided according to an embodiment of the present invention;
[0035] Figure 4A schematic diagram of an IPC message processing system provided according to an embodiment of the present invention;
[0036] Figure 5 A schematic diagram of a computer-readable storage medium for implementing an IPC message processing method provided according to an embodiment of the present invention;
[0037] Figure 6 The present invention is a schematic diagram of the hardware structure of a computer device for executing an IPC message processing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0039] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, other steps or units inherent to a process, method, system, product or device that includes a series of steps or units.
[0040] Based on the above purpose, a first aspect of an embodiment of the present invention provides an embodiment of an IPC message processing method. Figure 2 FIG. 1 is a schematic diagram of an embodiment of an IPC message processing method provided by the present invention. Figure 2 As shown, the embodiment of the present invention includes the following steps:
[0041] Step S10: Create a first thread through the first process of the IPC message sending end, and send the IPC message to the message linked list through the first thread;
[0042] Step S20: creating a second thread and a circular linked list through a second process of the IPC message receiving end, and having the second thread scan the message linked list, and in response to detecting that there is an IPC message in the message linked list, sending the IPC message to the circular linked list;
[0043] Step S30: Distribute and process the IPC messages based on the weights of the IPC messages in the circular linked list through the second thread.
[0044] IPC (Inter-Process Communication) refers to the interaction between data of two processes.
[0045] The IPC message processing method of the embodiment of the present invention creates a first thread through a first process at the IPC message sending end, and sends the IPC message to a message linked list through the first thread, creates a second thread and a circular linked list through a second process at the IPC message receiving end, and the second thread scans the message linked list, and when detecting that there is an IPC message in the message linked list, sends the IPC message to the circular linked list, and distributes and processes the IPC message based on the weight of the IPC message in the circular linked list through the second thread, thereby taking advantage of the existing synchronous and asynchronous methods of IPC message processing, having both the feedback of the IPC message synchronous processing mechanism and the non-blocking characteristics of the IPC message asynchronous processing method, making the sending and receiving processing of the IPC message more efficient and stable, improving the business processing capability, and improving the concurrency of the business to a certain extent, thereby improving the system processing efficiency.
[0046] In some embodiments, distributing and processing IPC messages based on the weights of the IPC messages in the circular linked list through the second thread includes: obtaining the IPC messages in the circular linked list through the second thread, and allocating a corresponding amount of resources to the obtained IPC messages according to the weights of the obtained IPC messages; in response to the completion of resource allocation, handing over the obtained IPC messages to the business module for processing through the second thread.
[0047] In some embodiments, allocating a corresponding amount of resources to the acquired IPC message according to the weight of the acquired IPC message includes: allocating a corresponding amount of resources to the acquired IPC message according to the weight of the instance message in the acquired IPC message.
[0048] In some embodiments, the method further includes: creating a third thread through the first process, and registering the timeout processing function and the callback function to the third thread.
[0049] In some embodiments, the method further includes: in response to the circular linked list being full, sending a first completion signal indicating that the linked list is full to the third thread through the IPC message receiving end, so that the third thread triggers callback processing based on the callback function.
[0050] In some embodiments, the method further includes: in response to completing the distribution processing of the IPC message through the second process, sending a second completion signal to the IPC message sending end to notify the IPC message sending end to perform callback processing through the third thread.
[0051] In some embodiments, the method further includes: in response to the incomplete distribution processing of the IPC message by the second process, sending an abnormal completion signal or a timeout signal to the IPC message sender to notify the IPC message sender to perform special callback processing through a third thread.
[0052] Figure 3Schematic diagram of the structure of the IPC message processing method provided according to an embodiment of the present invention. Figure 3 As shown, first, the sender of the IPC message (process A) is divided into two threads: thread A1 (i.e., the first thread) is responsible for sending the IPC message body, and thread A2 (i.e., the third thread) is responsible for the callback and timeout processing of the IPC message. The receiver of the IPC message (process B) has only one thread B1 (i.e., the second thread), but a polling task list is added and the weight is set. The reason for using one thread B1 is that it can simply and effectively ensure the continuity of message processing.
[0053] 1. The main implementation process of the sender of IPC message is as follows:
[0054] (1) Process A creates thread A1, which is responsible for sending the IPC message body. The message body mainly includes the main instance msg (i.e. instance message), timeout time and callback function;
[0055] (2) After thread A1 sends the IPC message, it continues to wait for the next message to be sent;
[0056] (3) Process A creates thread A2, which mainly handles the timeout function and the callback function.
[0057] (4) Register the timeout processing function and callback function to thread A2 and trigger them through signals.
[0058] 2. The main implementation process of the receiving end of the IPC message is as follows:
[0059] (1) Process B creates thread B1, which is responsible for receiving and distributing IPC messages;
[0060] (2) Create a circular linked list with weights. The weights represent the priority of the messages. Thread B1 polls the IPC messages in the circular linked list and processes them in sequence. Specifically, after thread B1 takes out the IPC message, it will be placed in the circular linked list and wait for distribution and processing.
[0061] (3) During the distribution process, the allocable resources are determined according to the weight. The larger the weight, the more resources can be allocated, but the execution order in the linked list will not be changed.
[0062] (4) When the circular linked list is full, the receiving end sends a completion signal indicating that the linked list is full, triggering a callback process, which can attempt to resend or give up sending;
[0063] (5) When the message is distributed and processed, the corresponding resources will be allocated to it according to the weight of the instance msg and handed over to the business module for processing. The larger the weight, the more resources can be allocated; msg (message, message structure) is the main structure of the IPC message, including the sent ID, cached data and other contents.
[0064] (6) After the message processing is completed or times out, a corresponding signal is sent to notify the sender to perform corresponding processing.
[0065] This embodiment combines the advantages and disadvantages of synchronous and asynchronous IPC message sending and processing, organically combines the advantages of synchronous and asynchronous IPC message processing, and adds special linked lists and weight allocation, so that the sending and receiving processing of IPC messages is more efficient and stable.
[0066] A second aspect of the embodiments of the present invention further provides an IPC message processing system. Figure 4 FIG. 1 is a schematic diagram of an embodiment of an IPC message processing system provided by the present invention. Figure 4 As shown, an IPC message processing system includes: a sending module 10, configured to create a first thread through a first process at an IPC message sending end, and send the IPC message to a message linked list through the first thread; a scanning module 20, configured to create a second thread and a circular linked list through a second process at an IPC message receiving end, and the second thread scans the message linked list, and in response to detecting the existence of an IPC message in the message linked list, sends the IPC message to the circular linked list; and a processing module 30, configured to distribute and process the IPC message based on the weight of the IPC message in the circular linked list through the second thread.
[0067] In some embodiments, the processing module 30 is further configured to obtain the IPC message in the circular linked list through the second thread, and allocate a corresponding amount of resources to it according to the weight of the obtained IPC message; in response to the completion of resource allocation, the obtained IPC message is handed over to the business module for processing through the second thread.
[0068] In some embodiments, the processing module 30 includes an allocation module configured to allocate a corresponding amount of resources to the acquired IPC message according to the weight of the instance message in the acquired IPC message.
[0069] In some embodiments, the system further includes a registration module configured to create a third thread through the first process, and register the timeout processing function and the callback function to the third thread.
[0070] In some embodiments, the system further includes a first callback module configured to send a first completion signal indicating that the linked list is full to the third thread through an IPC message receiving end in response to the circular linked list being full, so that the third thread triggers callback processing based on the callback function.
[0071] In some embodiments, the system also includes a second callback module configured to send a second completion signal to the IPC message sender in response to completing the distribution processing of the IPC message through the second process to notify the IPC message sender to perform callback processing through a third thread.
[0072] In some embodiments, the system also includes a third callback module, which is configured to send an abnormal completion signal or a timeout signal to the IPC message sender in response to the incomplete distribution processing of the IPC message through the second process, so as to notify the IPC message sender to perform special callback processing through the third thread.
[0073] The IPC message processing system of the embodiment of the present invention creates a first thread through a first process at the IPC message sending end, and sends the IPC message to a message linked list through the first thread, creates a second thread and a circular linked list through a second process at the IPC message receiving end, and the second thread scans the message linked list, and when detecting the existence of an IPC message in the message linked list, sends the IPC message to the circular linked list, and distributes and processes the IPC message based on the weight of the IPC message in the circular linked list through the second thread, thereby taking advantage of the existing synchronous and asynchronous methods of IPC message processing, having both the feedback of the IPC message synchronous processing mechanism and the non-blocking characteristics of the IPC message asynchronous processing method, making the sending and receiving processing of the IPC message more efficient and stable, improving the business processing capability, and improving the concurrency of the business to a certain extent, thereby improving the system processing efficiency.
[0074] A third aspect of the embodiments of the present invention further provides a computer-readable storage medium. Figure 5 FIG. 1 is a schematic diagram showing a computer-readable storage medium for implementing an IPC message processing method according to an embodiment of the present invention. Figure 5 As shown, the computer readable storage medium 3 stores computer program instructions 31. When the computer program instructions 31 are executed by the processor, the following steps are implemented:
[0075] Create a first thread through a first process at the IPC message sending end, and send the IPC message to the message linked list through the first thread;
[0076] A second thread and a circular linked list are created by a second process at the IPC message receiving end, and the second thread scans the message linked list, and in response to detecting that there is an IPC message in the message linked list, the IPC message is sent to the circular linked list;
[0077] The IPC messages are distributed and processed based on the weights of the IPC messages in the circular linked list through the second thread.
[0078] In some embodiments, distributing the IPC message based on the weight of the IPC message in the circular linked list by the second thread includes:
[0079] Obtain the IPC message in the circular linked list through the second thread, and allocate a corresponding amount of resources to the IPC message according to the weight of the obtained IPC message;
[0080] In response to the completion of resource allocation, the acquired IPC message is handed over to the business module for processing through the second thread.
[0081] In some embodiments, allocating a corresponding amount of resources to the acquired IPC message according to the weight of the acquired IPC message includes: allocating a corresponding amount of resources to the acquired IPC message according to the weight of the instance message in the acquired IPC message.
[0082] In some embodiments, the steps further include: creating a third thread through the first process, and registering the timeout processing function and the callback function to the third thread.
[0083] In some embodiments, the steps further include: in response to the circular linked list being full, sending a first completion signal indicating that the linked list is full to the third thread through the IPC message receiving end, so that the third thread triggers callback processing based on the callback function.
[0084] In some embodiments, the steps further include: in response to completing the distribution processing of the IPC message through the second process, sending a second completion signal to the IPC message sending end to notify the IPC message sending end to perform callback processing through the third thread.
[0085] In some embodiments, the steps further include: in response to the incomplete distribution processing of the IPC message through the second process, sending an abnormal completion signal or a timeout signal to the IPC message sender to notify the IPC message sender to perform special callback processing through the third thread.
[0086] It should be understood that, in the absence of mutual conflicts, all the embodiments, features and advantages described above for the IPC message processing method according to the present invention are also applicable to the IPC message processing system and storage medium according to the present invention.
[0087] A fourth aspect of the embodiments of the present invention further provides a computer device, including: Figure 6 The memory 402 and the processor 401 are shown, and the memory 402 stores a computer program, and when the computer program is executed by the processor 401, the method of any one of the above embodiments is implemented.
[0088] like Figure 6 FIG. 1 is a schematic diagram of the hardware structure of a computer device for executing an IPC message processing method provided by the present invention. Figure 6 Taking the computer device shown in FIG. 4 as an example, the 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, the memory 402, the input device 403 and the output device 404 may be connected via a bus or other means. Figure 6The example of the bus connection is taken as an example. The input device 403 can receive input digital or character information, and generate key signal input related to user settings and function control of the IPC message processing system. The output device 404 can include display devices such as display screens.
[0089] The 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 IPC message processing method in the embodiment of the present application. The memory 402 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of the IPC message processing method, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 402 may optionally include a memory remotely arranged relative to the processor 401, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0090] The processor 401 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 402, that is, implements the IPC message processing method of the above method embodiment.
[0091] Finally, it should be noted that the computer-readable storage medium (e.g., memory) herein may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. As an example and not by way of limitation, a nonvolatile memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. A volatile memory may include a random access memory (RAM), which may act as an external cache memory. As an example and not by way of limitation, RAM may be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
[0092] It will also be appreciated by those skilled in the art that 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 the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0093] The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein may be implemented or executed using the following components designed to perform the functions herein: a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, 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, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and / or any other such configuration.
[0094] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0095] It should be understood that, as used herein, the singular form "a" or "an" 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 items listed in association. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments.
[0096] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. An IPC message processing method, characterized in that: The following steps are involved: Create a first thread through a first process of the IPC message sending end, and send the IPC message to the message linked list through the first thread; A second thread and a circular linked list are created by a second process at the IPC message receiving end, and the second thread scans the message linked list, and in response to detecting that the IPC message exists in the message linked list, the IPC message is sent to the circular linked list; Distributing and processing the IPC message based on the weight of the IPC message in the circular linked list through the second thread; Among them, distributing and processing the IPC message based on the weight of the IPC message in the circular linked list through the second thread includes: obtaining the IPC message in the circular linked list through the second thread, and allocating a corresponding amount of resources to it according to the weight of the obtained IPC message; in response to the completion of resource allocation, handing over the obtained IPC message to the business module for processing through the second thread.
2. The method according to claim 1, characterized in that Allocating a corresponding amount of resources to the acquired IPC message according to its weight includes: A corresponding amount of resources is allocated to the acquired IPC message according to the weight of the instance message in the acquired IPC message.
3. The method according to claim 1, characterized in that Also includes: A third thread is created through the first process, and a timeout processing function and a callback function are registered to the third thread.
4. The method according to claim 3, characterized in that Also includes: In response to the circular linked list being full, a first completion signal indicating that the linked list is full is sent to the third thread through the IPC message receiving end, so that the third thread triggers callback processing based on the callback function.
5. The method according to claim 3, characterized in that: Also includes: In response to completing the distribution processing of the IPC message through the second process, sending a second completion signal to the IPC message sending end to notify the IPC message sending end to perform callback processing through the third thread.
6. The method according to claim 3, characterized in that Also includes: In response to the second process not completing the distribution processing of the IPC message, an abnormal completion signal or a timeout signal is sent to the IPC message sending end to notify the IPC message sending end to perform special callback processing through the third thread.
7. An IPC message processing system, characterized in that: include: A sending module, configured to create a first thread through a first process of an IPC message sending end, and send the IPC message to a message linked list through the first thread; a scanning module configured to create a second thread and a circular linked list through a second process of the IPC message receiving end, and the second thread scans the message linked list, and in response to detecting that the IPC message exists in the message linked list, sends the IPC message to the circular linked list; as well as A processing module, configured to distribute and process the IPC message based on the weight of the IPC message in the circular linked list through the second thread; Among them, the processing module is also configured to obtain the IPC message in the circular linked list through the second thread, and allocate a corresponding amount of resources to it according to the weight of the obtained IPC message; in response to the completion of resource allocation, the obtained IPC message is handed over to the business module for processing through the second thread.
8. A computer-readable storage medium, characterized in that: Computer program instructions are stored, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. A computer device comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 6 is performed.
