A client-based synchronous execution method, device, equipment and storage medium

CN115292056BActive Publication Date: 2026-10-09CHINA AUTOMOTIVE INNOVATION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210898799.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-28
Publication Date
2026-10-09
Estimated Expiration
2042-07-28

AI Technical Summary

Technical Problem

处理同一组应用客户端的部分同步请求并返回同步响应信息数据后到客户端后至开始执行的时间段内,处理客户端发送的同步请求数量留有一定的余量,但对于延迟到达的同步请求并没有回应,可能会脱离同步队列,导致同步请求数据的丢失,从而导致客户端的不确定性

Benefits of technology

[0052]For a group of clients called by a set of functional modules, when some target clients send synchronization requests to the server, the server returns and temporarily retains the characteristic information to the target client group at the return time. This allows the server to accurately process and return the delayed synchronization requests of the remaining clients based on the characteristic information before synchronization is executed. This enables the late remaining clients to synchronize with the previous target clients, prevents clients from leaving the synchronization queue, reduces the loss of client synchronization times, and thus improves the robustness of deterministic synchronization execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115292056B_ABST
    Figure CN115292056B_ABST
Patent Text Reader

Abstract

The application provides a client-based synchronous execution method and device, equipment and storage medium, and relates to the field of intelligent vehicles. The method comprises the following steps: when the return time of the synchronous response information corresponding to the client group arrives, returning first synchronous response information to a target client in the client group; in the case that the number of the target client is less than a number threshold, storing feature information until the synchronous execution time; if a second synchronous request sent by a remaining client is received within a target time period, generating second synchronous response information based on the feature information and the second synchronous request; and returning the second synchronous response information to the remaining client. The server can accurately process the delayed synchronous request of the remaining client, so that the remaining client can be synchronized with the previous target client, preventing it from leaving the synchronization queue, reducing the loss of the number of client synchronization times, and improving the robustness of the deterministic execution of synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent vehicles, and more specifically, to a client-based synchronous execution method, apparatus, device, and storage medium. Background Technology

[0002] With the rapid development of electronic and electrical architecture, software functions, and even vehicle-cloud collaborative control, as well as the emergence of new applications and demands such as intelligentization, connectivity, and new energy vehicles, the Adaptive Autosar open system architecture has been proposed to support high-performance computing. Adaptive Autosar mainly includes a hardware / virtual layer, a foundation layer, a service layer, and an application layer, such as... Figure 1 As shown. EM (Execution Management), hereinafter referred to as the EM module, belongs to the service layer and is mainly responsible for system initialization and the startup and shutdown of in-vehicle applications. It works with the operating system to perform runtime scheduling of applications. The execution management process includes: when the machine starts, the operating system initializes, starts execution management, and starts other functional clusters and platform applications of the adaptive platform infrastructure through execution management; the running phase: makes the application run in the state machine as expected, and monitors changes in the state machine state and the termination of the process; the shutdown phase: terminates the process of the application instance in the operating system. Its functional diagram is shown below. Figure 2 As shown.

[0003] During the management process, the EM module needs to provide service interfaces to the vehicle's in-vehicle applications and other functions and services within Adaptive Autosar. However, due to memory limitations or other uncontrollable factors that may lead to uncontrollable application outcomes, a deterministic execution client was added to increase redundancy control. Figure 3 As shown, in the client-based synchronization process, an M out N strategy is used (within a specified time, the maximum number of clients requesting synchronization is M; if the number of synchronization requests exceeds N by the return deadline, synchronization information can be returned) to ensure client synchronization. After processing some synchronization requests from the same group of application clients and returning synchronization response data to the client, a certain margin is maintained between the time the client receives the data and the start of execution. However, delayed synchronization requests may not receive a response and could leave the synchronization queue, leading to data loss and uncertainty for the client. Summary of the Invention

[0004] To address the problems in the prior art, the present invention provides a client-based synchronous execution method, apparatus, device, and storage medium, the solution of which is as follows:

[0005] On the one hand, a client-based synchronous execution method is provided for application on the server side, including:

[0006] When the return time of the corresponding synchronization response information of the client group arrives, the first synchronization response information is returned to the target client in the client group; the client group refers to clients with the same functional modules; the first synchronization response information is generated based on the first synchronization request sent by the target client and includes the synchronization execution time instructing the same functional modules to perform synchronization operations;

[0007] If the number of target clients is less than a quantity threshold, the feature information is stored until the synchronization execution time; the quantity threshold is the total number of clients in the client group; the feature information is a portion of the information in the first synchronization response information.

[0008] If a second synchronization request is received from a remaining client within the target time period, a second synchronization response is generated based on the feature information and the second synchronization request; the target time period refers to the time interval between the return time and the synchronization execution time; the remaining clients refer to the clients in the client group other than the target client.

[0009] The second synchronization response information is returned to the remaining clients.

[0010] Optional, also includes:

[0011] Upon receiving the first synchronization request in the first synchronization request sent by the target client, the return time of the corresponding synchronization response information of the client group is determined.

[0012] Optionally, storing the feature information to the synchronization execution time includes:

[0013] Obtain the group identifier information of the client group;

[0014] The feature information is stored based on the group identifier information until the synchronization execution time.

[0015] Optionally, if a second synchronization request is received from the remaining clients within the target time period, generating second synchronization response information based on the feature information and the second synchronization request further includes:

[0016] Determine the comparison relationship between the group identifier information and the remaining clients;

[0017] Based on the comparison relationship, the client group corresponding to the remaining clients and the stored feature information are determined;

[0018] A second synchronization response is generated based on the aforementioned feature information and the second synchronization request.

[0019] Optionally, after returning the second synchronization response information to the remaining clients, the method further includes deleting information in the stored first synchronization response information that is identical to the second synchronization response information.

[0020] A client-based synchronous execution method is provided, applied to the client side, including:

[0021] Send a second synchronization request to the server within the target time period; the target time period refers to the time interval between the return time of the synchronization response information corresponding to the client group and the synchronization execution time, the synchronization execution time refers to the time in the first synchronization response information used to instruct the same functional modules in the client group to perform synchronization operations, and the first synchronization response information is generated by the server based on the first synchronization request sent by the target client in the client group;

[0022] The server receives a second synchronization response information returned by the server. The second synchronization response information is generated based on the feature information and the second synchronization request. The feature information refers to a portion of the information in the first synchronization response information and is stored by the server at the synchronization execution time when the number of target clients is less than a number threshold.

[0023] Optional, also includes:

[0024] Based on the second synchronization response information, determine the synchronization execution time for the corresponding same functional modules to perform synchronization operations;

[0025] The same functional module is instructed to perform the synchronization operation at the synchronization execution time.

[0026] On the other hand, a client-based synchronous execution device is provided, comprising:

[0027] The first sending module is used to return first synchronization response information to the target client in the client group when the return time of the corresponding synchronization response information of the client group arrives; the client group refers to clients with the same functional modules; the first synchronization response information is generated based on the first synchronization request sent by the target client and includes a synchronization execution time instructing the same functional modules to perform synchronization operations;

[0028] The storage module is used to store feature information until the synchronization execution time when the number of target clients is less than a number threshold; the number threshold is the total number of clients in the client group; the feature information refers to a portion of the information in the first synchronization response information.

[0029] The synchronization module is used to generate second synchronization response information based on the feature information and the second synchronization request if a second synchronization request is received from the remaining clients within a target time period; the target time period refers to the time interval between the return time and the synchronization execution time; the remaining clients refer to the clients in the client group other than the target client;

[0030] The second sending module is used to return the second synchronization response information to the remaining clients.

[0031] Optionally, the client-based synchronous execution device further includes:

[0032] The return time determination module is used to determine the return time of the synchronization response information corresponding to the client group when the first synchronization request in the first synchronization request sent by the target client is received.

[0033] Optionally, the storage module includes:

[0034] The identification unit is used to obtain the group identification information of the client group;

[0035] A storage unit is used to store the feature information based on the group identification information until the synchronization execution time.

[0036] Optionally, the synchronization module includes:

[0037] A comparison unit is used to determine the comparison relationship between the group identification information and the remaining clients;

[0038] A matching unit is used to determine the client group corresponding to the remaining clients and the stored feature information based on the comparison relationship;

[0039] A synchronization unit is used to generate a second synchronization response information based on the feature information and the second synchronization request.

[0040] Optionally, the client-based synchronous execution device further includes:

[0041] The cleanup module is used to delete the stored feature information after returning the second synchronization response information to the remaining clients.

[0042] A client-based synchronous execution device is provided, applied to a client, comprising:

[0043] The synchronization request sending module is used to send a second synchronization request to the server within a target time period; the target time period refers to the time interval between the return time of the synchronization response information corresponding to the client group and the synchronization execution time; the synchronization execution time refers to the time in the first synchronization response information used to instruct the same functional modules in the client group to perform synchronization operations; the first synchronization response information is generated by the server based on the first synchronization request sent by the target client in the client group.

[0044] A synchronization response information receiving module is used to receive second synchronization response information returned by the server; the second synchronization response information is generated based on feature information and the second synchronization request; the feature information refers to part of the information in the first synchronization response information, and is stored by the server in the synchronization execution time when the number of target clients is less than a number threshold.

[0045] Optionally, the client's synchronization execution device further includes:

[0046] The time determination module is used to determine the synchronization execution time for the corresponding same functional modules to perform synchronization operations based on the second synchronization response information;

[0047] An execution module is used to instruct the same functional module to perform the synchronization operation at the synchronization execution time.

[0048] On the other hand, an electronic device is provided, including a processor and a memory, wherein the memory stores at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the steps of the above method.

[0049] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction or at least one program is stored therein, the at least one instruction or the at least one program being loaded and executed by a processor to implement the steps of the above method.

[0050] On the other hand, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium, wherein a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of the above-described method.

[0051] By adopting the above technical solution, the present invention has the following beneficial effects:

[0052] For a group of clients called by a set of functional modules, when some target clients send synchronization requests to the server, the server returns and temporarily retains the characteristic information to the target client group at the return time. This allows the server to accurately process and return the delayed synchronization requests of the remaining clients based on the characteristic information before synchronization is executed. This enables the late remaining clients to synchronize with the previous target clients, prevents clients from leaving the synchronization queue, reduces the loss of client synchronization times, and thus improves the robustness of deterministic synchronization execution.

[0053] Other features and advantages of the present invention will be described in detail in the following detailed description section. Attached Figure Description

[0054] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and the same reference numerals usually represent the same parts. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0055] Figure 1 A schematic diagram of an open system architecture for an adaptive platform vehicle;

[0056] Figure 2 This is a functional diagram of the execution management module;

[0057] Figure 3 A schematic diagram of the client interface for the execution management module to call the client to perform deterministic synchronization;

[0058] Figure 4 A flowchart illustrating a client-based synchronous execution method provided in an embodiment of the present invention;

[0059] Figure 5 This is an interactive diagram illustrating the client-based synchronous execution method of the execution management module in the prior art.

[0060] Figure 6 An interactive diagram illustrating the implementation of a client-based synchronous execution method according to an embodiment of the present invention;

[0061] Figure 7 A schematic diagram of a client-based synchronous execution device provided in an embodiment of the present invention;

[0062] Figure 8 A schematic diagram of the server hardware structure for the client-based synchronous execution method provided for the implementation of this invention. Detailed Implementation

[0063] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0064] The term "an embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the invention. In the description of the invention, it should be understood that the terms "upper," "lower," "top," "bottom," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature. Moreover, the terms "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein.

[0065] In existing technologies, within the open system architecture of an adaptive platform vehicle, the Execution Management module is responsible for system initialization and the startup and shutdown of in-vehicle applications. For a group of functional modules with identical functions, each module calls a client to send a synchronization request to the Execution Management module (i.e., the server). This synchronization request is for application process synchronization. The server processes each synchronization request, generates synchronization response information, and instructs each functional module to execute the corresponding process, such as run or terminate. During the synchronization process, an M out N strategy is used (within a specified time, the maximum number of clients requesting synchronization is M; if the number of synchronization requests is greater than N by the return deadline, synchronization information can be returned) to ensure client synchronization. When two or more clients request synchronization, the server, upon receiving the first synchronization request, calculates the deadline for returning the synchronization response information. Before the deadline, if the number of clients requesting synchronization reaches the minimum required synchronization value N, the server returns the synchronization response information at the deadline. Otherwise, it returns after receiving N synchronization requests, and the synchronization operation execution time returned to the client is delayed by a certain amount of time.

[0066] like Figure 5As shown, for application 1 and application 2 in the same functional module group, application 1 calls client 1 to send a synchronization request to the server. The server receives the request and calculates the return time of the synchronization response information. Before the return time, application 2 calls client 2 to also send a synchronization request to the server. Within the return time, the server generates synchronization response information based on the synchronization requests sent by the two clients, calculates the start or termination time of the two applications, and then returns the synchronization response information. In the above process, the M out N strategy is used. Since the server does not temporarily store the synchronization response information for client 1, if the number of clients requesting synchronization is less than the minimum value N when the return time expires, it will return after receiving N synchronization requests, and the runtime of the return to the client will be delayed by a certain time. Furthermore, before the client starts executing the synchronization response information, it cannot respond to the delayed synchronization requests sent by other clients in the same functional module group, and other clients may leave the synchronization queue, resulting in the loss of synchronization information.

[0067] See Figure 4 This document illustrates a client-based synchronous execution method provided by an embodiment of the present invention. This specification provides the operational steps of the method as described in the embodiments or flowcharts, but based on conventional or uninventive methods, more or fewer operational steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual system devices or products, the method can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment) as shown in the embodiments or drawings. The client-based synchronous execution method provided by this embodiment of the present invention is applied to the server side and includes:

[0068] S401, when the return time of the corresponding synchronization response information of the client group arrives, return the first synchronization response information to the target client in the client group; the client group refers to clients with the same functional modules; the first synchronization response information is generated based on the first synchronization request sent by the target client and includes the synchronization execution time instructing the same functional modules to perform synchronization operations;

[0069] In one possible implementation, step S401 further includes determining the return time of the synchronization response information corresponding to the client group when the first synchronization request in the first synchronization request sent by the target client is received.

[0070] Specifically, for a group of functional modules with the same function, each functional module calls a client. At least one target client sends a first synchronization request to the server. When the server receives the first synchronization request, it determines the return time of the first synchronization response information. When the return time is reached, regardless of whether the number of first synchronization requests reaches the minimum value N in the M out N strategy, the server returns the first synchronization response information to the target client.

[0071] S402, if the number of target clients is less than a quantity threshold, store feature information until the synchronization execution time; the quantity threshold is the total number of clients in the client group; the feature information refers to a portion of the information in the first synchronization response information;

[0072] In one possible implementation, step S402 further includes obtaining the group identifier information of the client group; and storing the feature information based on the group identifier information until the synchronization execution time.

[0073] Specifically, the first synchronization response information includes the group identifier information of the client group called by the functional modules, the ID information of each functional module corresponding to the target client, the synchronization execution time, and the synchronized operation (run, stop). The quantity threshold is the M value in the M out N strategy. If the number of target clients is less than the M value, then after the return time of the first synchronization response information and before the client instructs the functional module to perform the synchronization operation, the server still has a certain margin to process synchronization requests. The remaining clients may send synchronization requests to the server with a delay. Therefore, the characteristic information of the client group is temporarily stored based on the group identifier information. The characteristic information is the synchronization information in the first synchronization response information other than the ID information corresponding to each functional module. This allows the server to process delayed synchronization requests based on the group identifier information and the IDs of the functional modules in the first synchronization response information, so as to prevent the remaining clients from leaving the synchronization queue.

[0074] S403, if a second synchronization request is received from a remaining client within the target time period, then a second synchronization response is generated based on the feature information and the second synchronization request; the target time period refers to the time interval between the return time and the synchronization execution time; the remaining clients refer to the clients in the client group other than the target client;

[0075] In one possible implementation, step S403 further includes the step of:

[0076] (1) Determine the comparison relationship between the group identification information and the remaining clients;

[0077] (2) Determine the client group corresponding to the remaining clients and the stored feature information based on the comparison relationship;

[0078] (3) Generate second synchronization response information based on the feature information and the second synchronization request.

[0079] Specifically, between the return time and the synchronization execution time—that is, after the return time of the first synchronization response information and before the client instructs the functional module to perform the synchronization operation—a second synchronization request is received from the remaining clients in the client group (excluding the target client). The group identifier information of each client group is searched, and the remaining clients are compared with the group identifier information to determine the client group to which the remaining clients belong and the stored feature information. Based on the feature information and the second synchronization request, a second synchronization response information is generated. The second synchronization response information includes the group identifier information, the ID information of each functional module corresponding to the remaining clients, the synchronization execution time, and the synchronized operation (run, stop). The generated second synchronization response information, together with the first synchronization response information, enables synchronization control of the process of the functional module group. This improves the server's ability to handle delayed client synchronization requests, thereby enhancing the robustness of deterministic synchronization execution, reducing the loss of client data for delayed synchronization requests, and preventing them from leaving the synchronization queue.

[0080] S404, return the second synchronization response information to the remaining clients.

[0081] In one possible implementation, step S404 is followed by deleting the stored feature information, and deleting the feature information of the client group according to the corresponding group identifier information.

[0082] In another embodiment of the invention, a client-based synchronous execution method is provided, applied to a client, comprising the following steps:

[0083] Send a second synchronization request to the server within the target time period; the target time period refers to the time interval between the return time of the synchronization response information corresponding to the client group and the synchronization execution time, the synchronization execution time refers to the time in the first synchronization response information used to instruct the same functional modules in the client group to perform synchronization operations, and the first synchronization response information is generated by the server based on the first synchronization request sent by the target client in the client group;

[0084] The server receives a second synchronization response information returned by the server. The second synchronization response information is generated based on the feature information and the second synchronization request. The feature information refers to a portion of the information in the first synchronization response information and is stored by the server at the synchronization execution time when the number of target clients is less than a number threshold.

[0085] This process is consistent with the synchronous execution method applied to the server. For a group of functional modules with the same functionality, each functional module calls a client. At least one target client sends a first synchronization request to the server. The server receives the first synchronization response information at the return time determined by the server. The first synchronization response information includes the group identifier information of the client group called by the functional modules, the ID information of each functional module corresponding to the target client, the synchronization execution time, and the synchronized operation (run, stop). The quantity threshold is the M value in the M out N strategy. If the number of target clients is less than the M value, after the return time of the first synchronization response information and before the client instructs the functional module to perform the synchronization operation, the remaining clients send a second synchronization request to the server. This allows the server to generate a second synchronization response information based on the group identifier information in the stored feature information and the second synchronization request, and then receive the second synchronization response information returned by the server. This improves the server's ability to handle delayed client synchronization requests, thereby improving the robustness of deterministic synchronization execution, reducing the loss of client data with delayed synchronization requests, and preventing them from leaving the synchronization queue.

[0086] In one possible implementation, the client-based synchronous execution method further includes:

[0087] Based on the second synchronization response information, determine the synchronization execution time for the corresponding same functional modules to perform synchronization operations;

[0088] The same functional module is instructed to perform the synchronization operation at the synchronization execution time.

[0089] Specifically, the second synchronization response information includes group identifier information, the ID information of each functional module corresponding to the remaining clients, the synchronization execution time, and the synchronized operation (run, stop). The synchronization execution time instructs the functional module to begin the synchronization operation. The target client, based on the first synchronization response information, instructs the corresponding functional module to perform the synchronization operation in the same manner as described above, ultimately completing the EM module's process control over the group of functional modules and improving the robustness of deterministic synchronization execution.

[0090] To facilitate understanding of the technical solution of this invention, the following is combined with... Figure 6 The embodiments shown are described in detail below:

[0091] See Figure 6The diagram illustrates the interaction of a client-based synchronous execution method according to an embodiment of the present invention. For application 1 and application 2 within the same functional module group, application 1 calls client 1 to send a first synchronization request to the server. Upon receiving the synchronization request, the server generates a first synchronization response based on the first synchronization request and calculates the return time of the first synchronization response. When the return time arrives, the server returns the corresponding first synchronization response to client 1 and temporarily saves the characteristic information. At this time, the server can continue to receive synchronization requests sent by clients called from other functional module groups. Before the synchronization is executed by clients in this group, the server receives a second synchronization request sent by client 2 called by application 2. Based on the second synchronization request, and the group identifier information and application process information in the temporarily saved characteristic information, the server determines the client group to which client 2 belongs, generates a second synchronization response, and returns the second synchronization response to client 2. Client 1 and client 2, based on their respective synchronization response information, instruct application 1 and application 2 to run or terminate at the synchronization execution time.

[0092] In the above process, because the server temporarily stores the feature information, even if the number of clients requesting synchronization is less than the minimum value N when the return time expires, the server still returns the first synchronization response information to the client. Furthermore, before the client starts performing the synchronization operation, the server can continue to process delayed synchronization requests from other clients in the same functional module group based on the stored feature information, preventing other clients from leaving the synchronization queue and ensuring the stability of the system.

[0093] Corresponding to the above-described client-based synchronous execution method, this embodiment of the invention also provides a client-based synchronous execution device. Since the client-based synchronous execution device provided in this embodiment corresponds to the client-based synchronous execution method provided in the above-described embodiments, the implementation methods of the aforementioned client-based synchronous execution method are also applicable to the client-based synchronous execution device provided in this embodiment, and will not be described again in this embodiment of the invention.

[0094] refer to Figure 7 The diagram shows a client-based synchronous execution device structure (applied to the server) according to an embodiment of the present invention. This device has the function of implementing the client-based synchronous execution method described in the above method embodiments. This function can be implemented in hardware or by hardware executing corresponding software. The device may include:

[0095] The first sending module 710 is used to return first synchronization response information to the target client in the client group when the return time of the corresponding synchronization response information of the client group arrives; the client group refers to clients with the same functional modules; the first synchronization response information is generated based on the first synchronization request sent by the target client and includes a synchronization execution time that instructs the same functional modules to perform synchronization operations;

[0096] Storage module 720 is used to store feature information until the synchronization execution time when the number of target clients is less than a number threshold; the number threshold is the total number of clients in the client group; the feature information refers to a portion of the information in the first synchronization response information;

[0097] The synchronization module 730 is used to generate second synchronization response information based on the feature information and the second synchronization request if a second synchronization request is received from a remaining client within a target time period; the target time period refers to the time interval between the return time and the synchronization execution time; the remaining clients refer to the clients in the client group other than the target client;

[0098] The second sending module 740 is used to return the second synchronization response information to the remaining clients.

[0099] Optionally, the client-based synchronous execution device further includes:

[0100] The return time determination module is used to determine the return time of the synchronization response information corresponding to the client group when the first synchronization request in the first synchronization request sent by the target client is received.

[0101] Optionally, the storage module includes:

[0102] The identification unit is used to obtain the group identification information of the client group;

[0103] A storage unit is used to store the feature information based on the group identification information until the synchronization execution time.

[0104] Optionally, the synchronization module 730 includes:

[0105] A comparison unit is used to determine the comparison relationship between the group identification information and the remaining clients;

[0106] A matching unit is used to determine the client group corresponding to the remaining clients and the stored feature information based on the comparison relationship;

[0107] A synchronization unit is used to generate a second synchronization response information based on the feature information and the second synchronization request.

[0108] Optionally, the client-based synchronous execution device further includes:

[0109] The cleanup module is used to delete the stored feature information after returning the second synchronization response information to the remaining clients.

[0110] A client-based synchronous execution device, applied to a client, comprising:

[0111] The synchronization request sending module is used to send a second synchronization request to the server within a target time period; the target time period refers to the time interval between the return time of the synchronization response information corresponding to the client group and the synchronization execution time; the synchronization execution time refers to the time in the first synchronization response information used to instruct the same functional modules in the client group to perform synchronization operations; the first synchronization response information is generated by the server based on the first synchronization request sent by the target client in the client group.

[0112] A synchronization response information receiving module is used to receive second synchronization response information returned by the server; the second synchronization response information is generated based on feature information and the second synchronization request; the feature information refers to part of the information in the first synchronization response information, and is stored by the server in the synchronization execution time when the number of target clients is less than a number threshold.

[0113] Optionally, the client's synchronization execution device further includes:

[0114] The time determination module is used to determine the synchronization execution time for the corresponding same functional modules to perform synchronization operations based on the second synchronization response information;

[0115] An execution module is used to instruct the same functional module to perform the synchronization operation at the synchronization execution time.

[0116] This invention also provides an electronic device, including a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the steps of the client-based synchronous execution method described above.

[0117] Memory can be used to store software programs and modules. The processor executes various functional applications by running the software programs and modules stored in the memory. Memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for functions, etc.; the data storage area can store data created based on the use of the device, etc. Furthermore, memory can include high-speed random access memory, and can also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory can also include a memory controller to provide the processor with access to the memory. The processor can be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits (ASICs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0118] The methods and embodiments provided in this invention can be executed on a computer terminal, server, or similar computing device. Taking running on a server as an example... Figure 8 This is a schematic diagram of the hardware structure of a server running a client-based synchronous execution method provided in an embodiment of the present invention, as shown below. Figure 8 As shown, the server 800 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 810 (processor 810 may include, but is not limited to, microprocessors such as MCUs or programmable logic devices such as FPGAs), a memory 830 for storing data, and one or more storage media 820 (e.g., one or more mass storage devices) for storing application programs 823 or data 822. The memory 830 and storage media 820 may be temporary or persistent storage. The program stored in the storage media 820 may include one or more modules, each module may include a series of instruction operations on the server. Furthermore, the processor 810 may be configured to communicate with the storage media 820 and execute the series of instruction operations in the storage media 820 on the server 800. Server 800 may also include one or more power supplies 860, one or more wired or wireless network interfaces 850, one or more input / output interfaces 840, and / or one or more operating systems 821, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0119] The input / output interface 840 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of server 800. In one example, the input / output interface 840 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 840 may be a radio frequency (RF) module for wireless communication with the Internet.

[0120] Those skilled in the art will understand that Figure 8 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, server 800 may also include... Figure 8 The more or fewer components shown, or having the same Figure 8 The different configurations shown.

[0121] This invention also provides a computer-readable storage medium storing at least one instruction or at least one program segment, which is loaded and executed by a processor to implement the steps of the client-based synchronous execution method described above. In this invention, the computer program includes computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable storage medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0122] This invention also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of the method described above.

[0123] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A client-based synchronous execution method, applied to a server, characterized in that, include: When the return time of the corresponding synchronization response information of the client group arrives, the first synchronization response information is returned to the target client in the client group; The client group refers to clients with the same functional modules; The first synchronization response information is generated based on the first synchronization request sent by the target client, and includes the group identifier information of the client group, the ID information of each functional module corresponding to the target client, the synchronization execution time, and the synchronization operation. If the number of target clients is less than a certain threshold, the feature information is stored until the synchronization execution time. The quantity threshold is the total number of clients in the client group; the feature information refers to the synchronization information in the first synchronization response information other than the ID information corresponding to each functional module. If a second synchronization request is received from a remaining client within the target time period, a second synchronization response is generated based on the feature information and the second synchronization request; the target time period refers to the time interval between the return time and the synchronization execution time; the remaining clients refer to the clients in the client group other than the target client. The second synchronization response information is returned to the remaining clients.

2. The client-based synchronous execution method according to claim 1, characterized in that, Also includes: Upon receiving the first synchronization request in the first synchronization request sent by the target client, the return time of the corresponding synchronization response information of the client group is determined.

3. The client-based synchronous execution method according to claim 1, characterized in that, The process of storing the feature information until the synchronization execution time includes: Obtain the group identifier information of the client group; The feature information is stored based on the group identification information until the synchronization execution time.

4. The client-based synchronous execution method according to claim 3, characterized in that, If a second synchronization request is received from the remaining clients within the target time period, generating second synchronization response information based on the feature information and the second synchronization request includes: Find the group identifier information for each client group, compare the remaining clients with the group identifier information, and determine the client group to which the remaining clients belong and the stored feature information; A second synchronization response is generated based on the aforementioned feature information and the second synchronization request.

5. The client-based synchronous execution method according to claim 4, characterized in that, After returning the second synchronization response information to the remaining clients, the process also includes deleting the stored feature information.

6. A client-based synchronous execution method, applied to a client, characterized in that, include: Send a second synchronization request to the server within the target time period; The target time period refers to the time interval between the return time of the synchronization response information corresponding to the client group and the synchronization execution time. The synchronization execution time refers to the time in the first synchronization response information used to instruct the same functional modules in the client group to perform synchronization operations. The first synchronization response information is generated by the server based on the first synchronization request sent by the target client in the client group. The first synchronization response information includes the group identifier information of the client group, the ID information of each functional module corresponding to the target client, the synchronization execution time, and the synchronized operation. Receive the second synchronization response information returned by the server; the second synchronization response information is generated based on the feature information and the second synchronization request. The feature information refers to the synchronization information in the first synchronization response information other than the ID information corresponding to each functional module, and is stored by the server in the synchronization execution time when the number of target clients is less than the number threshold.

7. The client-based synchronous execution method according to claim 6, characterized in that, Also includes: Based on the second synchronization response information, determine the synchronization execution time for the corresponding same functional modules to perform synchronization operations; The same functional module is instructed to perform the synchronization operation at the synchronization execution time.

8. A client-based synchronous execution device, applied to a server, characterized in that, include: The first sending module is used to return the first synchronization response information to the target client in the client group when the return time of the corresponding synchronization response information of the client group arrives; The client group refers to clients with the same functional modules; The first synchronization response information is generated based on the first synchronization request sent by the target client, and includes the group identifier information of the client group, the ID information of each functional module corresponding to the target client, the synchronization execution time, and the synchronization operation. The storage module is used to store feature information until the synchronization execution time when the number of target clients is less than a number threshold. The quantity threshold is the total number of clients in the client group; the feature information refers to the synchronization information in the first synchronization response information other than the ID information corresponding to each functional module. The synchronization module is used to generate second synchronization response information based on the feature information and the second synchronization request if a second synchronization request is received from the remaining clients within a target time period; the target time period refers to the time interval between the return time and the synchronization execution time; the remaining clients refer to the clients in the client group other than the target client; The second sending module is used to return the second synchronization response information to the remaining clients.

9. A client-based synchronous execution device, applied to a client, characterized in that, include: The synchronization request sending module is used to send a second synchronization request to the server within a target time period; The target time period refers to the time interval between the return time of the synchronization response information corresponding to the client group and the synchronization execution time. The synchronization execution time refers to the time in the first synchronization response information used to instruct the same functional modules in the client group to perform synchronization operations. The first synchronization response information is generated by the server based on the first synchronization request sent by the target client in the client group. The first synchronization response information includes the group identifier information of the client group, the ID information of each functional module corresponding to the target client, the synchronization execution time, and the synchronized operation. A synchronization response information receiving module is used to receive the second synchronization response information returned by the server; the second synchronization response information is generated based on feature information and the second synchronization request; The feature information refers to the synchronization information in the first synchronization response information other than the ID information corresponding to each functional module, and is stored by the server in the synchronization execution time when the number of target clients is less than the number threshold.

10. An electronic device, characterized in that, The method includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the steps of the method as claimed in any one of claims 1 to 7.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction or at least one program segment, which is loaded and executed by a processor to implement the steps of the method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • A data synchronizing method and device, a storage medium and an electronic device

    CN108261762A

  • Data synchronization method and device

    CN113746931A