A generative operating system architecture dynamically generated based on the characteristics of software and hardware environments

By introducing a dynamic generation architecture based on the characteristics of software and hardware environments into the operating system, the shortcomings of traditional operating systems in terms of flexibility, function matching and update and maintenance costs are solved, and an efficient, flexible and adaptable operating system solution is achieved.

CN118295719BActive Publication Date: 2025-06-13ZHEJIANG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410429956.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-10
Publication Date
2025-06-13
Estimated Expiration
2044-04-10

AI Technical Summary

Technical Problem

Traditional static pre-developed operating systems have shortcomings in flexibility, function matching and update and maintenance costs, and are difficult to adapt to the changing application environment and the rapid development of new hardware and software technologies.

Method used

It adopts a generative operating system architecture based on the characteristics of software and hardware environments, including the hardware architecture adaptation layer, operating system meta-kernel layer and external libraries, and dynamic combination, update and optimization are achieved through environment perceptrons, system organizers and operation optimizers.

Benefits of technology

It realizes high flexibility, precise adaptability and dynamic update and maintenance, improving the overall performance and user experience of the operating system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118295719B_ABST
    Figure CN118295719B_ABST
Patent Text Reader

Abstract

The present invention discloses a generative operating system architecture dynamically generated based on software and hardware environment characteristics. The generative operating system includes a hardware architecture adaptation layer, an operating system meta-kernel layer, and external libraries, and is generated by the following method: First, the environmental perception system comprehensively perceives the environmental state and application requirements, and generates a configuration file; Secondly, the corresponding micro-libraries are parsed from the configuration file and the corresponding micro-library set is obtained through the micro-library market; Subsequently, the configured micro-libraries are combined into a generative operating system by the system organizer; Finally, the optimizer adjusts and optimizes the running operating system in real time according to the changes in the running environment and running requirements. The highly adaptive and dynamic architecture design of the present invention supports the full-process automation of the operating system from environmental perception to resource acquisition, system organization, and even running optimization, and can quickly generate and optimize exclusive operating systems for different application scenarios and hardware environments, realizing flexible adaptation and adaptive optimization of software and hardware environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and particularly relates to a generative operating system architecture dynamically generated based on software and hardware environment characteristics. Background Art

[0002] The architectures of traditional operating systems usually adopt a static pre-development method. In this method, their functions and structures are fixed during the design and development stages. Although these systems have certain advantages in terms of stability and usability, they also have some obvious deficiencies:

[0003] 1. Lack of flexibility: Static pre-developed operating systems usually cannot be customized according to the specific needs of users. This fixed design limits their application efficiency and effectiveness in specific scenarios, making it difficult for them to adapt to changing application environments.

[0004] 2. Low function matching degree: Users may face problems of excessive or insufficient functions because static systems often cannot accurately adapt to the specific hardware devices and software requirements of users. This may lead to waste of resources or insufficient performance in specific application scenarios.

[0005] 3. High update and maintenance costs: With the rapid development of new hardware and software technologies, static pre-developed operating systems face great challenges in timely updating and maintenance. They may not be able to efficiently match the new requirements of the software and hardware environment, resulting in system performance problems. Summary of the Invention

[0006] In view of these deficiencies, the present invention proposes a generative operating system architecture dynamically generated based on the software and hardware environment. Different from traditional static pre-developed operating systems, this dynamically generated operating system is not pre-cured, but can dynamically generate and adaptively optimize according to the real-time software and hardware environment and user needs.

[0007] To solve the above technical problems, the technical solution adopted by the present invention is:

[0008] In a first aspect, the present invention provides a generative operating system architecture dynamically generated based on software and hardware environment characteristics, including: a hardware architecture adaptation layer, an operating system meta-kernel layer, and an external library;

[0009] The hardware architecture adaptation layer is responsible for accessing the hardware and perceiving the characteristics of the hardware, and providing life cycle management and hardware abstraction management for the operating system meta-kernel;

[0010] The operating system meta-kernel layer is responsible for implementing the most basic operation framework of the operating system, including the dynamic combination framework of micro-libraries, the dynamic update architecture of micro-libraries, etc.;

[0011] The external library mentioned above is a micro-library implementation of the functions required by the operating system except for the meta-kernel layer, including programming language micro-libraries for supporting multiple languages, system management libraries for implementing various management policies, etc.

[0012] In a second aspect, the present invention provides the above-mentioned method for generating a generative operating system, and the method includes the following steps:

[0013] First, comprehensively sense the environmental state and application requirements through the environmental sensor system, and generate a configuration file;

[0014] Secondly, parse the corresponding micro-libraries through the configuration file and obtain the corresponding micro-library set through the micro-library market;

[0015] Subsequently, combine the configured micro-libraries into a generative operating system through the system organizer;

[0016] Finally, the running optimizer makes real-time adjustments and optimizations to the operating system during operation according to changes in the running environment and running requirements.

[0017] In a third aspect, the present invention provides a device for generating a generative operating system based on the characteristics of the software and hardware environment, including:

[0018] A system sensing module, configured to comprehensively sense the environmental state and application requirements through the environmental sensor system, and generate a configuration file;

[0019] A micro-library acquisition module, configured to parse the corresponding micro-libraries through the configuration file and obtain the corresponding micro-library set through the micro-library market;

[0020] A micro-library combination module, configured to combine the configured micro-libraries into a generative operating system through the system organizer;

[0021] A system optimization module, configured to make real-time adjustments and optimizations to the operating system during operation according to changes in the running environment and running requirements by running an optimizer.

[0022] In a fourth aspect, the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the above-mentioned generation method is implemented.

[0023] In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned generation method is implemented.

[0024] In a sixth aspect, the present invention provides a computer program product, including a computer program, and when the computer program is executed by a processor, the above-mentioned generation method is implemented.

[0025] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0026] 1. High flexibility: Through software-defined technology, users can flexibly customize the configuration and functions of the operating system according to specific scenario needs, thus providing more personalized services.

[0027] 2. Precise adaptation ability: This operating system can more accurately meet the specific hardware device and software requirements, effectively avoiding the problems of over-function or under-function, thereby improving the overall efficiency of the system.

[0028] 3. Dynamic update and maintenance: It can more quickly adapt to the development of new hardware and software, realize the instant update and optimization of the operating system, thereby ensuring the latestness and best performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is the architecture diagram of the generative operating system for an embodiment of the present application;

[0030] Figure 2 It is the schematic diagram of the generation path of the generative operating system;

[0031] Figure 3 It is the architecture diagram of the generation path of the generative operating system;

[0032] Figure 4 It is the schematic diagram of the collaborative perception of the hardware sensor and the software sensor;

[0033] Figure 5 It is the flowchart of the organizer;

[0034] Figure 6 It is the flowchart of the operation optimizer.

[0035] Figure 7 It is the architecture diagram of the generative operating system generation device for an embodiment of the present application;

[0036] Figure 8 It is the internal structure diagram of a computer device for an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0037] To make the objectives, technical solutions, and advantages of the present invention clearer, the following provides a detailed description of the specific embodiments of the present invention with reference to the accompanying drawings. Examples of these preferred embodiments are illustrated in the accompanying drawings. The embodiments of the present invention shown in the drawings and described according to the drawings are merely exemplary, and the present invention is not limited to these embodiments.

[0038] Here, it should also be noted that in order to avoid obscuring the present invention due to unnecessary details, only the structures and / or processing steps closely related to the solution according to the present invention are shown in the drawings, while other details less relevant to the present invention are omitted.

[0039] The embodiment of the present application provides an adaptive generative operating system architecture based on an environmental sensor, a system organizer, and a runtime optimizer, aiming to improve the flexibility, performance, and convenience of updating and maintenance of the operating system.

[0040] As Figure 1 shown, the generative operating system in this embodiment divides the system functions into hierarchical micro-libraries. Under this architecture, the operating system can be dynamically assembled to adapt to the needs of different application programs. The generative operating system is divided into three layers: the hardware architecture adaptation layer, the operating system meta-kernel layer, and the external library.

[0041] The described hardware architecture adaptation layer is responsible for accessing the hardware and perceiving the characteristics of the hardware; and providing life cycle management and hardware abstraction management to the operating system meta-kernel layer. The operating system meta-kernel layer is responsible for implementing the most basic operating framework of the operating system, including the dynamic combination framework of micro-libraries, the dynamic update architecture of micro-libraries, etc. The external library is the micro-library implementation of the functions required by the operating system other than the meta-kernel layer, including programming language micro-libraries for supporting multiple languages, system management libraries for implementing various management policies, etc.

[0042] The embodiment of the present application also provides a generation path of a generative operating system, as Figure 2 shown.

[0043] First, decouple and split the large-grained function modules (task management, network management, memory management, device management, storage management, etc.) of the operating system into fine-grained and independently evolvable and updatable operating system micro-libraries.

[0044] Then, build an operating system meta-kernel, and select the required micro-libraries from the set of various types of operating system micro-libraries through the analysis of the software and hardware environment characteristics, and then organize them into individual generative operating system instances.

[0045] Finally, build a complete system, that is, the hyper-kernel is responsible for the startup management and runtime management of the generative operating system on the physical device, and is also responsible for the life cycle management of the generative operating system running above, and is responsible for the communication and interaction management between multiple generative operating systems.

[0046] The described hyperkernel and metakernel cooperate together in the generative operating system architecture to ensure the flexibility and stability of the system. The hyperkernel, as a high-level management layer, is mainly responsible for the startup, operation management, and lifecycle control of the operating system, while the metakernel is the core of the operating system, responsible for the dynamic composition of micro-libraries and the implementation of basic functions. The hyperkernel relies on the basic operating framework provided by the metakernel and monitors and manages the micro-libraries dynamically composed by the metakernel to achieve the optimization and adjustment of the entire system.

[0047] Specifically, in the embodiments of this application, the generation path of the generative operating system mainly adopts an environment sensor, a system organizer, and a runtime optimizer. The specific architecture is as Figure 3 shown.

[0048] First, through the integrated software and hardware sensors, the system comprehensively senses the environmental state and application requirements. The software sensor is responsible for capturing the support requirements put forward by the application programs running on the operating system for the operating system, while the hardware sensor focuses on the hardware environment characteristics of the operating system, including hardware models, hardware specifications, etc. After the information of these two sensors is collected, a detailed configuration file is generated.

[0049] Secondly, the system parses out the corresponding micro-libraries through the configuration and obtains the corresponding micro-library set through the micro-library market. The micro-libraries contain the modular implementations of various functions of the operating system, and they can be flexibly combined according to requirements. The various functions include specific function points in various system modules such as task management, network management, memory management, device management, and storage management. For example, the task scheduling algorithm and interrupt management mechanism in task management.

[0050] Subsequently, the configured micro-libraries are combined into a generative operating system. In this process, the system organizer is not only responsible for assembling the micro-libraries but also ensures the compatibility and efficient cooperation between different micro-libraries. In this way, an operating system optimized for a specific application scenario is dynamically generated.

[0051] Finally, the runtime optimizer makes real-time adjustments and optimizations to the running operating system according to the changes in the running environment and running requirements. It dynamically adjusts resource allocation and system configuration according to the running state of the system and changes in the external environment to ensure optimal performance and resource utilization.

[0052] Furthermore, the described environment sensor is responsible for sensing the external software and hardware environment and providing organizational configuration suggestions for the system organizer. The software sensor automatically matches the micro-library set required for software operation by sensing the requirements of application programs and users. The hardware sensor is responsible for sensing the hardware environment of the operating system, sensing and modeling hardware devices, and performing driver matching according to the performance policies configured by users, and automatically matching the micro-library set required for the hardware environment.

[0053] Furthermore, the system organizer is responsible for parsing on demand in different scenarios, obtaining the required embodied micro-libraries through the micro-library center, and dynamically assembling the operating system meta-kernel with different types of micro-libraries to generate a flexible and polymorphic generative operating system, effectively coping with the challenges of diverse scenarios. The organizer is divided into a parser and an assembler. The parser is responsible for retrieving and obtaining the required micro-libraries for the empty center according to the configuration file provided by the software and hardware sensor, and the assembler assembles, compiles, and links different types of micro-libraries obtained on demand with the operating system meta-kernel to generate a flexible and polymorphic generative operating system.

[0054] Furthermore, the operation optimizer focuses on the runtime adaptive performance optimization of the operating system. By perceiving the upper-layer application and the system self-update instruction through the environment sensor module, means such as dynamic update of the system configuration and micro-library version of the operating system are realized to achieve the runtime dynamic optimization of the operating system. The optimizer includes an intelligent runtime sensor and a dynamic updater. The intelligent runtime sensor monitors the micro-library in the operating system in real time to capture the operating state of the operating system, and automatically performs system configuration tuning and micro-library update to respond to system configuration changes and performance optimization requirements. The dynamic updater is responsible for the real-time compilation and dynamic update of the micro-library in the adaptive operating system. Through the dynamic update mechanism, the runtime system is allowed to dynamically load or unload the micro-library according to demand changes, ensuring system flexibility and response ability.

[0055] In a certain embodiment of the present application, the environment sensor is divided into a hardware sensor (H) and a software sensor (S). The two cooperate to perceive the software and hardware environment conditions, monitor the changes in the software and hardware environment, and provide strong support for configuration construction and subsequent runtime optimization. See Figure 4 , specifically:

[0056] Define E hw and E sw as the hardware and software environment states respectively. The work of the environment sensor can be expressed as the function F opt (E hw ,E sw )→(C hw ,C sw ), where C hw and C sw represent the hardware and software configuration decisions respectively.

[0057] Through the unified identification and abstraction of heterogeneous hardware resources, the hardware sensor (H) accurately perceives and adapts to the changing hardware environment where the operating system is located. For emerging diverse hardware chips, the hardware sensor deploys a flexible system adaptation architecture to achieve seamless adaptation to various hardware systems.

[0058] Considering the dynamicity D hw 、reconfigurability Rhw and the self-learning characteristic L hw , the hardware sensor adopts an innovative dual-attribute representation method M attr , combined with the resource R res and the ability attribute C cap , provides a more comprehensive description for the hardware device, and the specific representation formula is:

[0059] E hw = M attr (R res , C cap (D hw , R hw , L hw ))

[0060] To accurately simulate these complex hardware environments, the hardware sensor describes the hardware information through a specialized hardware description language. In the application of virtualization technology, the hardware sensor introduces a dynamic lightweight virtualization framework to adapt to the wide diversity of heterogeneous devices.

[0061] The software sensor (S) is based on the perception of the complex software environment of the human-machine-thing fusion and the software environment state modeling E sw , to adapt to the diversity and complexity of the modern software environment. The software sensor continuously monitors and dynamically adapts to the changes ΔE in different application scenarios sw , and these changes may include the evolution of user requirements ΔU req , the rheology of sensor data ΔS data , and the fluctuations of environmental conditions ΔE cond . Before the generation stage of the operating system, the software sensor conducts a highly accurate system function modeling (M cond ) of the application program through in-depth analysis of the application environment E req and the program code U func , which includes but is not limited to resource requirement detection and identification of specific functional dependencies. The specific representation formula is:

[0062] ΔE sw = ΔU req + ΔS data + ΔE cond

[0063] E sw = M func (ΔE sw , E cond , U req )

[0064] Generally speaking, the combination of the hardware sensor and the software sensor enables the adaptive operating system to comprehensively adapt to and optimize the software and hardware environment (F opt (Ehw ,E sw ), providing a more intelligent, efficient, and secure usage experience for end-users.

[0065] Relying on software sensors and hardware sensors, the generation of the operating system can be optimized specifically for specific applications, thereby automatically generating a customized operating system that reaches the optimal configuration in terms of performance, security, and efficiency. This innovative design enables the operating system to not only precisely meet the unique requirements of application programs but also achieve the best performance and security standards during the overall operation process.

[0066] In a certain embodiment of the present application, the system organizer plays a crucial role in the process of generating the operating system. It is responsible for the dynamic assembly of micro-libraries and is the core of the operating system construction. This organizer consists of two key subsystems: a parser and an assembler. Through close cooperation, these two subsystems jointly complete the formation of the final system image. The parser is mainly responsible for parsing various configurations of the system, while the assembler not only realizes the dynamic construction of the micro-library operating system but also effectively promotes the collaboration between software and hardware to optimize the overall system performance and enhance security. The assembly process of the system organizer is as Figure 5 shown.

[0067] First, the parser starts from the bottom layer and parses the system configuration files layer by layer. During this process, it will carefully check and configure the basic platform layer micro-libraries compatible with the hardware architecture.

[0068] Immediately afterwards, the parser parses the configuration files and obtains the basic micro-libraries of the system core, configuring the basic system functions. This step is a key link in building a stable and efficient operating system.

[0069] Subsequently, the parser turns to the external library configuration, carefully configuring peripheral third-party micro-libraries such as the user code language library to ensure the versatility and scalability of the system.

[0070] After the configuration is completed, the parser will also send a request to the micro-library service market in the cloud to obtain the required micro-libraries. If some micro-libraries are missing locally, the system will automatically download and securely store them locally using hash technology.

[0071] After completing all these parsing tasks, the assembler begins to assemble the micro-libraries and form the final generative operating system image.

[0072] First, the assembler will preprocess all the code, perform macro expansion, and process conditional compilation instructions.

[0073] Subsequently, the assembler will start compiling each library one by one. The compilation order is based on the dependency order between the libraries. This step also checks whether the dependency relationships of each library are correct. The libraries will be compiled into static or dynamic object files according to the configuration items.

[0074] After the compilation is completed, the assembler starts to link the above object files, linking the symbols statically or dynamically together, and finally assembling them into a generative operating system image.

[0075] The entire assembly process not only reflects the high degree of automation and intelligence in system design, but also ensures that the generated operating system image can maintain optimal performance in a changing hardware and software environment. Through a highly flexible and customizable assembly process, it can quickly respond to changes in application requirements and also conform to the development trend of future intelligent computing environments.

[0076] In a certain embodiment of this application, the runtime optimizer is divided into an intelligent runtime sensor and a dynamic updater, which are responsible for the management of the generative operating system during runtime. Through the technologies of dynamic resource monitoring and dynamic update of micro-libraries, the runtime optimizer can ensure the optimal runtime state and the latest micro-library version of the generative operating system to achieve the flexibility and intelligence characteristics of the generative operating system, as shown in Figure 6 。

[0077] The described intelligent runtime sensor includes a system runtime monitoring module (M res ), which is responsible for receiving and processing the runtime situation (R guest ) sent by the built-in monitoring module of the running system and monitoring the external software and hardware environment situation (R host ). The intelligent runtime sensor not only monitors the system resources, but also includes the response to system configuration changes and micro-library update requirements. When system resources (R sys (R guest , R host ))), micro-library version (V lib ) and application requirements (D app ) and other environmental variables change, the intelligent runtime sensor will first propose several dynamic update schemes (U proposal ). Subsequently, the intelligent runtime sensor will combine the system environmental resource situation and use the optimization function (F opt ) to achieve a quantitative comparison between the existing runtime scheme and the update scheme U proposal , select the best dynamic update scheme, and hand it over to the dynamic updater to achieve dynamic resource update. The optimization function (F opt ) can be expressed by the following formula:

[0078]

[0079] where f is an evaluation function for evaluating a given resource situation (R sys ), micro-library version (V lib ), application requirements (D app ), and the fitness of the update plan (U).

[0080] The described dynamic updater in the adaptive operating system is mainly responsible for the immediate compilation and dynamic update of the micro-library. This function is completed by implementing a dynamically loadable micro-library, allowing the operating system to dynamically load and unload micro-library modules at runtime to cope with changes in requirements. In addition, the dynamic updater is also responsible for managing these micro-libraries, implementing function calls and communication between static and dynamic micro-libraries and between different dynamic micro-libraries.

[0081] To further enhance the flexibility and responsiveness of the system, the dynamic updater also supports the custom dynamic update of the micro-library to ensure that the dynamic loading and unloading process of the micro-library does not affect the normal operation of the upper-layer applications. During implementation, the dynamic updater uses system interrupts. The dynamic updater also performs a stack check before updating relevant library functions to ensure that they are updated only after the relevant function calls end, thus achieving the update and optimization of the micro-library without interrupting the operation of the operating system.

[0082] Based on the same inventive concept, the embodiments of the present application also provide a generative operating system generation device for implementing the above-mentioned generative operating system generation method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the following generative operating system generation device can refer to the limitations on the generative operating system generation method in the above text and will not be elaborated here.

[0083] In one embodiment, as Figure 7 shown, a generative operating system generation device is provided, including:

[0084] A system perception module for comprehensively perceiving the environmental state and application requirements through an environmental perception system and generating a configuration file;

[0085] A micro-library acquisition module for parsing the corresponding micro-library through the configuration file and obtaining a corresponding micro-library set through the micro-library market;

[0086] A micro-library combination module for combining the configured micro-libraries into a generative operating system through a system organizer;

[0087] A system optimization module for running an optimizer to perform real-time adjustment and optimization of the running operating system according to changes in the running environment and running requirements.

[0088] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structural diagram may be as shown in Figure 8 . The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the data generated by the generative operating system. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for generating a generative operating system.

[0089] Those skilled in the art can understand that Figure 8 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0090] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of the above-mentioned method for generating a generative operating system. Here, the steps of the method for generating a generative operating system may be the steps in the method for generating a generative operating system in each of the above embodiments.

[0091] In one embodiment, a computer-readable storage medium is provided, storing a computer program. When the computer program is executed by the processor, the processor executes the steps of the above-mentioned method for generating a generative operating system. Here, the steps of the method for generating a generative operating system may be the steps in the method for generating a generative operating system in each of the above embodiments.

[0092] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the processor executes the steps of the above-mentioned method for generating a generative operating system. Here, the steps of the method for generating a generative operating system may be the steps in the method for generating a generative operating system in each of the above embodiments.

[0093] In summary, the generative operating system solution of this application aims to overcome the limitations of traditional static pre-developed operating systems and provide a new operating system solution that is self-aware, self-organizing, and self-optimizing to meet the diverse and dynamic needs of the new generation of intelligent computing environments. The uniqueness of the present invention lies in its highly adaptive and dynamic architecture design, which supports the full-process automation of the operating system from environment perception to resource acquisition, system organization, and even operation optimization. Its greatest advantage is the ability to quickly generate and optimize dedicated operating systems for different application scenarios and hardware environments, achieving flexible adaptation and self-adaptive optimization of software and hardware environments. This architecture not only improves the flexibility and performance of the operating system but also greatly enhances the user experience and the adaptability of the system. This architecture can not only flexibly respond to changing application requirements and hardware environments but also ensure the efficient operation and optimized management of the operating system throughout its life cycle.

[0094] In addition, it should be noted that in this specification, "including", "comprising", or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also other elements not expressly listed, or elements that are inherent to such process, method, article, or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes the said element.

[0095] It should be understood that although this specification is described according to embodiments, not every embodiment only contains an independent technical solution. This narrative way of the specification is only for clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. A generative operating system generation method based on dynamic software and hardware environment characteristics, capable of generating a generative operating system architecture, the generative operating system architecture comprising: Hardware architecture adaptation layer, operating system meta-kernel layer, and external libraries; The hardware architecture adaptation layer is responsible for accessing the hardware and sensing the characteristics of the hardware, as well as providing lifecycle management and hardware abstraction management for the operating system meta-kernel layer; The operating system meta-kernel layer is responsible for implementing the most basic operating framework of the operating system, including the dynamic combination framework of the micro-library and the dynamic update architecture of the micro-library; The external library is a micro-library implementation of the functions required by the operating system except the meta-kernel layer, including a programming language micro-library for supporting multiple languages ​​and a system management library for implementing various management strategies; The method is characterized in that it comprises the following steps: First, the environment sensor system fully perceives the environment status and application requirements and generates a configuration file; Secondly, the corresponding micro-library is parsed through the configuration file and the corresponding micro-library set is obtained through the micro-library market; Subsequently, the configured micro-libraries are combined into a generative operating system through a system organizer; Finally, the operation optimizer adjusts and optimizes the running operating system in real time according to the changes in the operating environment and operating requirements; The system organizer is responsible for on-demand parsing in different scenarios, obtaining the required concrete micro-libraries through the micro-library center, and dynamically assembling the operating system meta-kernel with different types of micro-libraries to generate a flexible and multi-modal generative operating system; The system organizer includes a parser and an assembler, wherein the parser is responsible for searching and obtaining the required micro-library from the micro-library center according to the configuration file provided by the software and hardware sensor, and the assembler assembles, compiles, and links the different types of micro-libraries obtained on demand with the operating system meta-kernel to generate a flexible and multi-modal generative operating system; The operation optimizer focuses on the adaptive performance optimization of the operating system during runtime, and realizes the system configuration of the operating system, the dynamic update of the micro library version and the dynamic optimization of the operating system during runtime through the environmental sensor to perceive the upper application and system self-update instructions; The operation optimizer includes an intelligent runtime sensor and a dynamic updater, wherein the intelligent runtime sensor monitors the micro-library through the operating system to capture the operating status of the operating system in real time, and automatically performs system configuration tuning and micro-library updates to respond to system configuration changes and performance optimization requirements; the dynamic updater is responsible for the real-time compilation and dynamic update of the micro-library in the adaptive operating system, and through the dynamic update mechanism, allows the intelligent runtime sensor to dynamically load or unload the micro-library according to changes in demand.

2. The method for generating a generative operating system based on dynamic software and hardware environment characteristics according to claim 1, characterized in that: The micro-library includes modular implementations of various functions of the operating system, including task management, network management, memory management, device management and storage management.

3. The method for generating a dynamic operating system based on software and hardware environment characteristics according to claim 1, characterized in that: The environmental sensor system includes software sensors and hardware sensors; the software sensors are responsible for capturing the support requirements of the application programs run by the operating system, and the hardware sensors focus on the hardware environment characteristics of the operating system. After the information of the two sensors is collected, the configuration file is generated.

4. The method for generating a generative operating system based on dynamic software and hardware environment characteristics according to claim 3 is characterized in that: The hardware sensor adopts a dual attribute characterization method M attr , combined with resource R res and ability attribute C cap , providing a more comprehensive description of the hardware device, hardware environment status E hw The specific characterization formula is: E hw =M attr (R res ,C cap (D hw ,R hw ,L hw )) Where D hw , R hw , L hw They are the dynamic, reconfigurable and autonomous learning characteristics of intelligent hardware devices.

5. The method for generating a generative operating system based on dynamic software and hardware environment characteristics according to claim 3, characterized in that: The software sensor continuously monitors and dynamically adapts to the changing state ΔE of the software environment in different application scenarios. sw , including the evolution of user needs ΔU req , flow ΔS of sensor data data and fluctuations in environmental conditions ΔE cond ; The software sensor is used to detect the application environment E cond and program code U req In-depth, highly accurate system function modeling of applications sw , the specific characterization formula is: E sw =M func (ΔE sw ,E cond ,U req ) Where: ΔE sw =ΔU req +ΔS data +ΔE cond , M func () represents system function modeling.

6. The method for generating a dynamic generative operating system based on software and hardware environment characteristics according to claim 1, characterized in that: The system organizer completes the assembly of the generative operating system image through the parser and assembler, including a configuration phase and an assembly phase; The configuration phase is specifically as follows: First, the parser starts from the bottom layer and parses the system configuration files layer by layer. Next, the parser parses the configuration file, obtains the basic micro-library of the system core, and configures the basic system functions; Afterwards, the parser turns to external library configuration, which includes peripheral third-party micro-libraries of the user code language library; The assembly stage is specifically as follows: First, the assembler preprocesses all the code, performs macro expansion, and handles conditional compilation instructions; Afterwards, the assembler starts compiling the libraries one by one. The compilation order is based on the dependency order between the libraries. At the same time, it checks whether the dependency relationship between the libraries is correct. The libraries are compiled into static or dynamic object files according to the configuration items. After the compilation is completed, the assembler starts to link the object files, statically or dynamically linking the symbols together, and finally assembling them into a generated operating system image.

7. The method for generating a dynamic generative operating system based on software and hardware environment characteristics according to claim 1, characterized in that: The intelligent runtime sensor includes a system operation monitoring module M res , responsible for receiving and processing the running status information sent by the built-in monitoring module of the running system guest And monitor the external software and hardware environment host .

8. The method for generating a generative operating system based on dynamic software and hardware environment characteristics according to claim 7, characterized in that: The intelligent runtime sensor also includes responses to system configuration changes and micro-library update requirements; When system resources R sys (R guest ,R host ), Micro Library Version V lib and application requirements app When a change occurs, the smart runtime sensor does the following: First, several dynamic update schemes U are proposed proposal ; Then, the intelligent runtime sensor combines the system environment and resources to optimize the function F opt To implement the existing operation plan and update plan U proposal Through quantitative comparison, the best dynamic update solution is selected and handed over to the dynamic updater to realize dynamic update of resources.

9. The method for generating a generative operating system based on dynamic software and hardware environment characteristics according to claim 8, characterized in that: The optimization function F opt It is expressed as: Among them, f is the evaluation function, which is used to evaluate the given resource situation R sys , Micro Library Version V lib , application requirements D app And update the fitness of the scheme U.

10. The method for generating a generative operating system based on dynamic software and hardware environment characteristics according to any one of claims 7 to 9, characterized in that: The dynamic updater is also responsible for managing the micro-library, and realizing function calls and communications between the static micro-library and the dynamic micro-library and between different dynamic micro-libraries.

11. The method for generating a dynamic generative operating system based on software and hardware environment characteristics according to claim 10, characterized in that: The dynamic updater also supports customized dynamic update of micro libraries, ensuring that the dynamic loading and unloading process of the micro library will not affect the normal operation of the upper layer application.

12. A device for generating a dynamic operating system based on software and hardware environment characteristics, characterized in that: include: The system perception module is used to fully perceive the environmental status and application requirements through the environmental sensor system and generate configuration files; A micro-library acquisition module, used to parse the configuration file to obtain the corresponding micro-library and obtain the corresponding micro-library set through the micro-library market; The micro-library combination module is used to combine the configured micro-libraries into a generative operating system through the system organizer; System optimization module, used to run the optimizer to adjust and optimize the running operating system in real time according to changes in the operating environment and operating requirements; The system organizer is responsible for on-demand parsing in different scenarios, obtaining the required concrete micro-libraries through the micro-library center, and dynamically assembling the operating system meta-kernel with different types of micro-libraries to generate a flexible and multi-modal generative operating system; The system organizer includes a parser and an assembler, wherein the parser is responsible for searching and obtaining the required micro-library from the micro-library center according to the configuration file provided by the software and hardware sensor, and the assembler assembles, compiles, and links the different types of micro-libraries obtained on demand with the operating system meta-kernel to generate a flexible and multi-modal generative operating system; The operation optimizer focuses on the adaptive performance optimization of the operating system during runtime, and realizes the system configuration of the operating system, the dynamic update of the micro library version and the dynamic optimization of the operating system during runtime through the environmental sensor to perceive the upper application and system self-update instructions; The operation optimizer includes an intelligent runtime sensor and a dynamic updater, wherein the intelligent runtime sensor captures the operating status of the operating system in real time through the operating system monitoring micro-library, and automatically performs system configuration tuning and micro-library updates to respond to system configuration changes and performance optimization requirements; The dynamic updater is responsible for the real-time compilation and dynamic update of the micro-library in the adaptive operating system. Through the dynamic update mechanism, the intelligent runtime sensor is allowed to dynamically load or unload the micro-library according to changes in demand.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the generation method according to any one of claims 1 to 11 is implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the generation method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the generation method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Function reconstruction method, software architecture and hardware platform architecture of spaceflight load system

    CN117149298A

  • Kernel-integrated instance-specific operational resources with virtualization

    US20170322815A1