Business module loading system and method, control device and storage medium

By building a multi-linked list structure of business modules, the problem of inability to effectively support collaborative development of multiple people in the existing technology is solved, and an independent development environment without affecting multiple people and efficient system management is achieved.

CN119512640APending Publication Date: 2025-02-25SHENZHEN ENVICOOL INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411496521.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The loading method of business modules in the existing technology cannot effectively support collaborative development of multiple people, which can easily cause influence and conflicts between developers.

Method used

By building a multi-linked list structure of business modules, it provides an independent development environment where multiple people do not affect each other, and uses multi-linked list structure management and integrated business modules to support collaborative development of multiple people.

Benefits of technology

It has achieved support for collaborative development by multiple people, alleviating the influence and conflicts between developers, and improving the scalability and operation efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512640A_ABST
    Figure CN119512640A_ABST
Patent Text Reader

Abstract

The invention provides a service module loading system and method, a control device and a storage medium, and the system comprises a plurality of service modules which are used for achieving different service functions; the first control module is used for reading a first target business module from an external memory in response to a business module loading request, dynamically loading the first target business module to an internal memory, and compiling and linking the first target business module; the second control module is used for integrating the loaded first target service module into a module linked list; wherein the module linked list is of a multi-linked list structure. By constructing the multi-linked list structure of the service module, an independent development environment in which multiple persons do not influence each other is provided, the collaborative development capability of the system is enhanced, collaborative development of multiple persons can be effectively supported without influencing mutual work, and thus the influence and conflict among developers can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a business module loading system and loading method, a control device and a storage medium. Background Art

[0002] With the rapid development of electronic technology, embedded systems are becoming more and more widely used and more and more complex. Dynamic loading of business modules is performed during the application of embedded systems. The loading process generally involves saving each business module in external memory first; when the basic platform needs to call a business module, the business module is loaded from the external memory to the internal memory, compiled and linked, and then run; when a business module ends, the basic platform unloads the business module from the internal memory.

[0003] In the process of realizing the invention, the inventors found that there are at least the following technical problems in the prior art:

[0004] The above-mentioned business module loading method usually adopts a single linked list or linear structure, which cannot effectively support multi-person collaborative development and is likely to cause influence and conflict among developers. Summary of the invention

[0005] The embodiments of the present application provide a business module loading system and loading method, a control device and a storage medium, which can improve the problem that the business module loading method in the prior art cannot effectively support collaborative development by multiple people and easily causes influence and conflict among developers.

[0006] In the first aspect, an embodiment of the present application provides a business module loading system, including multiple business modules for implementing different business functions; a first control module, for responding to a business module loading request, reading a first target business module from an external memory, dynamically loading the first target business module into the internal memory, and compiling and linking the first target business module; a second control module, for integrating the loaded first target business module into a module linked list; wherein the module linked list is a multi-linked list structure.

[0007] In a possible implementation, when it is detected that the operation of a service module ends, the second control module is further used to dynamically remove the second target service module in the module list, and the first control module dynamically unloads the second target service module in the memory.

[0008] In one possible implementation, the integration of the loaded first target business module into the module linked list includes: determining whether there is an association between the first target business module and the business modules in the module linked list; if no association exists, executing the module integration process; if there is an association, re-planning the business modules in the module linked list based on the association relationship, and then executing the module integration process; wherein, the module integration process includes: organizing the first target business module as a new linked list in the module linked list; displaying the node connection information and data flow information of the linked list corresponding to the first target business module; and updating the association relationship and dynamic changes between the linked lists in the module linked list.

[0009] In one possible implementation, the module linked list includes: a first-level linked list for processing tasks of a first type of business module; a second-level linked list for processing tasks of a second type of business module; and a third-level linked list for processing tasks of a third type of business module.

[0010] In a possible implementation, the first type of business module has a first priority; the second type of business module has a second priority; the third type of business module has a third priority; wherein the first priority is higher than the second priority, and the second priority is higher than the third priority.

[0011] In a possible implementation, the system further includes: a scheduling management module, configured to adjust the task scheduling order based on the priorities of the service modules to be run in the module linked list.

[0012] In a possible implementation, the system further includes: an operation control module, which is used to control the to-be-run service modules to run independently in the corresponding linked list.

[0013] In the second aspect, an embodiment of the present application also provides a business module loading method, which is applied to a business module loading system, in which multiple business modules form a multi-linked list structure, and the method includes: in response to a business module loading request, reading a first target business module from an external memory, and dynamically loading the first target business module into the internal memory, and compiling and linking the first target business module; integrating the loaded first target business module into a module linked list; wherein the module linked list is a multi-linked list structure.

[0014] In a possible implementation, the method further includes: when it is detected that the operation of the service module ends, dynamically removing the second target service module in the module linked list, and dynamically unloading the second target service module in the memory.

[0015] In one possible implementation, the integration of the loaded first target business module into the module linked list includes: determining whether there is an association between the first target business module and the business modules in the module linked list; if no association exists, executing the module integration process; if there is an association, re-planning the business modules in the module linked list based on the association relationship, and then executing the module integration process; wherein, the module integration process includes: organizing the first target business module as a new linked list in the module linked list; displaying the node connection information and data flow information of the linked list corresponding to the first target business module; and updating the association relationship and dynamic changes between the linked lists in the module linked list.

[0016] In a third aspect, an embodiment of the present application further provides a service module loading control device, comprising: a processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the service module loading method provided in the second aspect is implemented.

[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the service module loading method provided in the second aspect is implemented.

[0018] Compared with the prior art, the technical solution provided by this application has at least the following beneficial effects:

[0019] By building a multi-linked list structure for business modules, an independent development environment is provided in which multiple people do not affect each other, thus enhancing the collaborative development capability of the system. It can effectively support collaborative development by multiple people without affecting each other's work, thereby effectively reducing the impact and conflict between developers. On this basis, efficient management and dynamic integration of multi-linked list structures can be achieved, thereby improving the scalability and operating efficiency of the system, thereby better meeting the needs of complex application scenarios.

[0020] In summary, the technical solution provided by the present application can improve the problem that the business module loading method in the prior art cannot effectively support collaborative development by multiple people and easily causes influence and conflict among developers. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A basic structural diagram of a business module loading system provided by an embodiment of the present application;

[0023] Figure 2 A schematic diagram of the structure of a service module loading system provided by an embodiment of the present application;

[0024] Figure 3 A schematic diagram of a module loading process provided for an embodiment of the present application;

[0025] Figure 4 A schematic diagram of a flow chart of integrating modules into a module linked list provided in one embodiment of the present application;

[0026] Figure 5 A schematic diagram of the structure of a service module loading control device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] To facilitate understanding of the technical solution of this application, the concepts involved in this application are explained below:

[0029] 1. A linked list is a non-continuous and non-sequential storage structure on a physical storage unit. The logical order of data elements is realized by the pointer link order in the linked list. A linked list consists of a series of nodes (each element in the linked list is called a node), and nodes can be generated dynamically at runtime. Each node consists of two parts: one is the data field for storing data elements, and the other is the pointer field for storing the address of the next node.

[0030] 2. Load, migrate the module program from the storage device to the specified memory space, and hand over the module to the system loader for unified management.

[0031] 3. Linking refers to loading the executable file parsed by the loader into the system once when the program is compiled and linked to enable it to run. Among them, dynamic linking refers to delaying the loading process until the program is running, thereby reducing the loader's overhead and unnecessary space occupation.

[0032] The embodiment of the present application provides a business module loading system, in which multiple business modules can realize corresponding business functions, and in order to realize an independent development environment in which multiple users (developers) do not affect each other, a multi-linked list structure of multiple business modules can be constructed, thereby reducing conflicts and dependencies between users. The business module loading system provided by the present application is described in detail below in conjunction with the accompanying drawings.

[0033] Figure 1 A schematic diagram of the basic structure of a business module loading system provided for one embodiment of the present application.

[0034] Reference Figure 1 As shown, the service module loading system may include a plurality of service modules 100 , a first control module 200 and a second control module 300 .

[0035] In some embodiments, the multiple business modules 100 are used to implement different business functions, wherein multiple users can simultaneously develop or run their respective business modules. In order to realize an independent development environment where multiple users do not affect each other, the multiple business modules 100 can be constructed into a multi-linked list structure, each linked list representing a different business module type, such as data processing, user interface, etc. The nodes in each linked list represent a specific business module.

[0036] In some embodiments, the first control module 200 can load the corresponding business module of the user in response to the business module loading request of the user. Specifically, the business module that is not running can be stored in the external memory. When the business module needs to be run, the business module can be loaded from the external memory to the internal memory and then run. When the business module corresponding to the business module loading request of the user is the first target business module, the first target business module can be read from the external memory, and the first target business module can be dynamically loaded into the internal memory, and the first target business module can be compiled and linked, thereby completing the loading operation of the first target business module.

[0037] In some embodiments, the second control module 300 can integrate the loaded first target business module into a module linked list, wherein the module linked list is a multi-linked list structure. The multi-linked list structure can be used to manage different types of business modules, so that the system can flexibly manage and expand business modules. On the other hand, during the development stage, the collaborative development capability can also be enhanced, supporting collaborative development by multiple people without affecting each other's work, thereby improving development efficiency.

[0038] In some embodiments, during the system initialization phase, the system preloads the business modules in the relevant linked list into the memory according to the user's business needs. This preloading operation can improve the efficiency of the business module operation, and can also be dynamically adjusted according to preset conditions to achieve dynamic loading of the business model.

[0039] In some embodiments, in order to improve the flexibility of dynamic loading of business modules, on-demand loading can also be performed based on user needs or business needs. Specifically, during the operation of the system, the business modules in the linked list can be dynamically loaded and unloaded according to real-time needs (user needs and / or business needs), rather than preloading all modules when the system starts. Among them, when it is detected that a business module in the currently running business module has ended, the second control module 300 can dynamically remove the second target business module in the module linked list. Further, the first control module 200 can also unload the second target business module in the memory, thereby reducing memory usage and system overhead, and improving the operating efficiency and flexibility of the system.

[0040] Figure 2 A schematic diagram of the structure of a business module loading system provided for one embodiment of the present application.

[0041] Reference Figure 2 As shown, the system may include multiple business modules 100 , a first control module 200 , a second control module 300 , a scheduling management module 400 , and an operation control module 500 .

[0042] In some embodiments, the module chain list constructed by multiple business modules 100 may include:

[0043] The first level linked list is used to process the tasks of the first type of business module, wherein the tasks of the first type of business module may be the main tasks managed by the top level linked list;

[0044] A second-level linked list is used to process tasks of the second-type business module, wherein the tasks of the second-type business module may be auxiliary tasks managed by the middle-level linked list; and

[0045] The third-level linked list is used to process the tasks of the third-type business modules, wherein the tasks of the third-type business modules may be low-level tasks managed by the bottom chain.

[0046] The hierarchical linked list structure improves the modular management capabilities of the system and simplifies task scheduling and interaction between modules.

[0047] In some embodiments, the first type of business module has a first priority; the second type of business module has a second priority; the third type of business module has a third priority; wherein the first priority is higher than the second priority, and the second priority is higher than the third priority. By dynamically adjusting the execution order of tasks according to the real-time needs and business priorities of the business modules, task scheduling is optimized, and the responsiveness and efficiency of the system in processing high-priority tasks are improved.

[0048] In some embodiments, the scheduling management module 400 can adjust the task scheduling order based on the priority of the business module to be run in the module list. By setting a priority for each business module, the system dynamically adjusts the task scheduling order according to the priority to optimize system performance.

[0049] When the business module needs to run, the system can dynamically add or unload the linked list. Specifically, the first control module dynamically loads the first target business module, and the second control module integrates the loaded first target business module into the module linked list and starts running the first target business module.

[0050] Figure 3 A schematic diagram of a module loading process provided for an embodiment of the present application.

[0051] Reference Figure 3 As shown, the module loading process may include the following steps:

[0052] S301: A first control module reads a first target service module from an external memory.

[0053] S302: The first control module dynamically loads the first target service module into the memory.

[0054] S303: The first control module compiles and links the first target service module.

[0055] S304: The second control module integrates the first target service module into the module linked list structure.

[0056] S305: The operation control module controls the first target business module to operate independently in the corresponding linked list.

[0057] S306: The second control module detects whether the business demand has changed. If there is no change in the business demand, S307 is executed. If it is detected that the business module operation is terminated, S308 is executed.

[0058] S307: End the module loading process.

[0059] S308: The second control module dynamically removes the second target service module in the module linked list.

[0060] S309: The first control module dynamically unloads the second target service module in the memory and returns to execute S307.

[0061] based on Figure 3 In the module loading process shown, the business module can be dynamically loaded and unloaded during operation. The business model is dynamically loaded when there is an operation requirement, and is dynamically unloaded after the operation ends. This can reduce the time that memory space is occupied and improve the flexibility of memory space use.

[0062] In some embodiments, the system can also monitor the operation of the business models running in the module list in real time. When a business module is detected to have finished running, it can immediately trigger the dynamic removal of the second target business module in the module list and dynamically unload the second target business module in the memory. By real-time monitoring, memory usage can be managed more efficiently and memory space utilization can be improved.

[0063] In other embodiments, the system can monitor the operation of the business models running in the module list in real time in a regular or irregular manner. When it is detected that a business module has ended, it can immediately trigger the dynamic removal of the second target business module in the module list, and dynamically unload the second target business module in the memory. Through the above-mentioned regular or irregular monitoring method, the management of memory occupancy can be achieved to a certain extent. Since there is no need for real-time monitoring, the power consumption of the system can be reduced. It should be noted that in other embodiments, monitoring can also be performed by other means. This application does not limit the monitoring method, and it can be selectively set based on user needs.

[0064] Figure 4 A schematic diagram of a flow chart of module integration into a module linked list provided for an embodiment of the present application.

[0065] Reference Figure 4 As shown, the specific implementation steps of integrating the loaded first target business module into the module linked list may include:

[0066] S401: Determine whether there is an association between the first target business module and the business modules in the module linked list. If there is an association, execute S402; if there is no association, execute S403.

[0067] S402: re-planning the business modules in the module list based on the association relationship, and executing S403.

[0068] S403: Organize the first target business module into a new linked list in the module linked list.

[0069] S404: Displaying the node connection information and data flow information of the linked list corresponding to the first target business module.

[0070] S405: Update the association relationship and dynamic changes between the linked lists of the module linked list.

[0071] In some embodiments, when a user's service module (i.e., the first target service module) needs to be run, Figure 3 After the recorded process shown is loaded, you can further Figure 4The integration process shown integrates the first target business module that has been loaded into the module chain list. Since there is a business association relationship between the first target business module to be integrated into the module chain list and other business modules in the module chain list, for example, when the first target business module is running, it is necessary to call the operation data of other business modules. In order to realize the convenience of calling between businesses, the association relationship between business modules can be set in the chain list. Then, in the process of integrating the first target business module into the module chain list, it can be detected whether there is an association between the first target business module and the business module in the module chain list, and if there is an association, the layout of the business modules in the module chain list is re-planned based on the association relationship, so that the layout of the business modules after the re-planning can improve the calling efficiency between business modules. Then, after the re-planning is completed, the specific integration process of the module is to organize the first target business module as a new chain list in the module chain list; display the node connection information and data flow information of the chain list corresponding to the first target business module; and update the association relationship and dynamic changes between the chain lists of the module chain list.

[0072] An embodiment of the present application also provides a business module loading method, which is applied to a business module loading system, wherein multiple business modules in the system form a multi-linked list structure, and the method includes: in response to a business module loading request, reading a first target business module from an external memory, dynamically loading the first target business module into the internal memory, and compiling and linking the first target business module; integrating the loaded first target business module into a module linked list; wherein the module linked list is a multi-linked list structure.

[0073] In some embodiments, the method further includes: when it is detected that the operation of the business module ends, dynamically removing the second target business module in the module linked list, and dynamically unloading the second target business module in the memory.

[0074] In some embodiments, integrating the loaded first target business module into the module linked list includes: determining whether there is an association between the first target business module and the business modules in the module linked list; if no association exists, executing the module integration process; if there is an association, re-planning the business modules in the module linked list based on the association relationship, and then executing the module integration process; wherein the module integration process includes: organizing the first target business module as a new linked list in the module linked list; displaying the node connection information and data flow information of the linked list corresponding to the first target business module; and updating the association relationship and dynamic changes between the linked lists in the module linked list.

[0075] Figure 5 A schematic diagram of the structure of a service module loading control device provided in one embodiment of the present application.

[0076] Reference Figure 5As shown, the device may include a processor 501 and a memory 502, and the memory 502 is used to store at least one instruction, which, when loaded and executed by the processor 501, implements the service module loading method provided in any embodiment of the present application.

[0077] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the service module loading method provided in any embodiment of the present application is implemented.

[0078] From the above content, it can be seen that this application provides an independent development environment for multiple people without affecting each other by constructing a multi-linked list structure of the business module, thereby enhancing the collaborative development capabilities of the system and being able to effectively support collaborative development by multiple people without affecting each other's work, thereby being able to effectively reduce the impact and conflict between developers. On this basis, efficient management and dynamic integration of multi-linked list structures can also be achieved, thereby improving the scalability and operating efficiency of the system and better meeting the needs of complex application scenarios.

[0079] In summary, the technical solution provided by the present application can improve the problem that the business module loading method in the prior art cannot effectively support collaborative development by multiple people and easily causes influence and conflict among developers.

[0080] It should be noted that the terminals involved in the embodiments of the present application may include but are not limited to personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 players, MP4 players, etc.

[0081] It is understandable that the application may be an application program (naturalApp) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, and this embodiment of the present application does not limit this.

[0082] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0083] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0084] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0085] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0086] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

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

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A business module loading system, characterized in that: The system comprises: Multiple business modules are used to implement different business functions; A first control module, configured to read a first target business module from an external memory in response to a business module loading request, dynamically load the first target business module into the internal memory, and compile and link the first target business module; A second control module, used for integrating the loaded first target business module into the module linked list; Wherein, the module linked list is a multi-linked list structure.

2. The service module loading system according to claim 1, characterized in that: When it is detected that the operation of the service module ends, the second control module is further used to dynamically remove the second target service module in the module list, and the first control module dynamically unloads the second target service module in the memory.

3. The service module loading system according to claim 1, characterized in that: The step of integrating the loaded first target service module into the module linked list comprises: Determine whether there is an association between the first target business module and the business modules in the module linked list; if no association exists, execute the module integration process; if there is an association, re-plan the business modules in the module linked list based on the association relationship, and then execute the module integration process; The module integration process includes: Organizing the first target business module into a new linked list in the module linked list; Displaying the node connection information and data flow information of the linked list corresponding to the first target business module; and Update the association and dynamic changes between the linked lists of the module linked list.

4. The service module loading system according to claim 1, characterized in that: The module chain list includes: The first-level linked list is used to process the tasks of the first type of business modules; The second level linked list is used to process the tasks of the second type of business modules; and The third-level linked list is used to process the tasks of the third type of business modules.

5. The service module loading system according to claim 4, characterized in that: The first type of service module has a first priority; The second type of service module has a second priority; The third type of service module has a third priority; The first priority is higher than the second priority, and the second priority is higher than the third priority.

6. The service module loading system according to claim 5, characterized in that: The system further comprises: The scheduling management module is used to adjust the task scheduling order based on the priority of the business modules to be run in the module linked list.

7. The service module loading system according to claim 6, characterized in that: The system further comprises: The operation control module is used to control the business modules to be run to run independently in the corresponding linked list.

8. A service module loading method, characterized in that: Applied to a business module loading system, in which a plurality of business modules form a multi-linked list structure, the method comprises: In response to a service module loading request, a first target service module is read from an external memory, the first target service module is dynamically loaded into a memory, and the first target service module is compiled and linked; Integrate the first target business module that has been loaded into the module linked list; Wherein, the module linked list is a multi-linked list structure.

9. A service module loading control device, characterized in that: The device comprises: A processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the service module loading method according to claim 8 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the service module loading method according to claim 8 is implemented.