Generative operating system architecture dynamically generated based on software and hardware environment characteristics
By dynamically generating an operating system architecture based on the characteristics of the software and hardware environment, the problems of insufficient flexibility and low functional matching of traditional operating systems are solved, adaptive optimization and rapid updates are achieved, and the flexibility of the system and user experience are improved.
Patent Information
- Application Number
- PCT/CN2024/095132
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-10
- Filing Date
- 2024-05-24
- Publication Date
- 2025-10-16
AI Technical Summary
The static pre-development method of traditional operating systems leads to insufficient flexibility, low functional matching, and high update and maintenance costs, making it difficult to adapt to changing application environments and user needs.
It adopts a dynamically generated operating system architecture based on the characteristics of the software and hardware environment, including a hardware architecture adaptation layer, an operating system meta-kernel layer and external libraries, and realizes adaptive optimization through environmental sensors, system organizers and operation optimizers.
It achieves high flexibility, precise adaptation and dynamic updates, and can customize the operating system according to specific scenarios and needs, improving system performance and user experience.
Smart Images

Figure CN2024095132_16102025_PF_FP_ABST
Abstract
Description
A generative operating system architecture dynamically generated based on hardware and software environment characteristics TECHNICAL FIELD
[0001] The present application belongs to the technical field of computers, and specifically relates to a generative operating system architecture dynamically generated based on hardware and software environment characteristics. BACKGROUND
[0002] The architecture of traditional operating systems usually adopts a static pre-development method, which fixes its functions and structures at the design and development stage. Although these systems have certain advantages in stability and ease of use, they also have some obvious shortcomings:
[0003] 1. Lack of flexibility: Static pre-development operating systems usually cannot be customized to meet the specific needs of users. This fixed design limits their application efficiency and effectiveness in specific scenarios, making them difficult to adapt to changing application environments.
[0004] 2. Low function matching degree: Users may face problems of excess or insufficient functions, as static systems often cannot accurately adapt to specific hardware devices and software needs of users. This may lead to waste of resources or insufficient performance in specific application scenarios.
[0005] 3. High cost of updating and maintenance: With the rapid development of new hardware and software technologies, static pre-development operating systems face great challenges in timely updating and maintenance. They may not be able to efficiently match the new needs of the hardware and software environment, resulting in system performance problems.
[0006] SUMMARY
[0007] To address these shortcomings, the present application proposes a generative operating system architecture dynamically generated based on hardware and software environment. Unlike traditional static pre-development operating systems, this dynamically generated operating system is not pre-solidified, but can dynamically generate and adaptively optimize according to real-time hardware and software environment and user needs.
[0008] To solve the above technical problems, the technical solution adopted by the present application is:
[0009] In a first aspect, the present application provides a generative operating system architecture dynamically generated based on hardware and software environment characteristics, comprising: a hardware architecture adaptation layer, an operating system meta-kernel layer and an external library.
[0010] The hardware architecture adaptation layer is responsible for accessing hardware and sensing the characteristics of hardware, and providing life cycle management and hardware abstraction management for the operating system meta-kernel.
[0011] The operating system kernel layer is responsible for implementing the most basic running framework of the operating system, and includes a dynamic combination framework of micro libraries, a micro library dynamic updating architecture, and the like.
[0012] The external library is a micro library implementation of the operating system required function except the kernel layer, and includes a programming language micro library for supporting multiple languages, a system management library for implementing various management strategies, and the like.
[0013] In a second aspect, the present application provides the above-mentioned generated operating system generation method, which comprises the following steps:
[0014] First, the environment state and application demand are comprehensively perceived through an environment perceiver system, and a configuration file is generated.
[0015] Second, the corresponding micro library is parsed through the configuration file, and the corresponding micro library set is acquired through a micro library market.
[0016] Subsequently, the configured micro library is combined into a generated operating system through a system organizer.
[0017] Finally, a running optimizer is used to perform real-time adjustment and optimization on the running operating system according to the changes of the running environment and running demand.
[0018] In a third aspect, the present application provides a generated operating system generation device based on the dynamic characteristics of the hardware and software environment, which comprises:
[0019] A system perception module is used to comprehensively perceive the environment state and application demand through an environment perceiver system, and generate a configuration file.
[0020] A micro library acquisition module is used to parse the corresponding micro library through the configuration file, and acquire the corresponding micro library set through a micro library market.
[0021] A micro library combination module is used to combine the configured micro library into a generated operating system through a system organizer.
[0022] A system optimization module is used to use a running optimizer to perform real-time adjustment and optimization on the running operating system according to the changes of the running environment and running demand.
[0023] In a fourth aspect, the present application provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned generation method when executing the computer program.
[0024] In a fifth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the above-mentioned generation method.
[0025] In a sixth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the above generation method.
[0026] Compared with the prior art, the present application has the following beneficial effects:
[0027] 1. High flexibility: through software-defined technology, users can flexibly customize the configuration and functions of the operating system according to specific scenarios, thereby providing more personalized services.
[0028] 2. Precise adaptation capability: this operating system can more accurately meet the specific hardware device and software requirements, effectively avoiding the problem of excess or insufficient functions, thereby improving the overall efficiency of the system.
[0029] 3. Dynamic updating and maintenance: it can quickly adapt to the development of new hardware and software, realize instant updating and optimization of the operating system, and thus ensure the latest and best performance of the system. BRIEF DESCRIPTION OF DRAWINGS
[0030] Fig. 1 is a generation-type operating system architecture diagram of an embodiment of the present application;
[0031] Fig. 2 is a generation path diagram of the generation-type operating system;
[0032] Fig. 3 is a generation path architecture diagram of the generation-type operating system;
[0033] Fig. 4 is a hardware and software perception cooperation perception diagram;
[0034] Fig. 5 is a flowchart of the organizer;
[0035] Fig. 6 is a flowchart of the running optimizer.
[0036] Fig. 7 is a generation-type operating system generation device architecture diagram of an embodiment of the present application;
[0037] Fig. 8 is an internal structure diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application will be described in detail below with reference to the drawings. The examples of these preferred embodiments are illustrated in the drawings. The embodiments of the present application shown in the drawings and described according to the drawings are merely exemplary, and the present application is not limited to these embodiments.
[0039] It should be noted that, in order not to obscure the present application with unnecessary details, only the structures and / or processing steps closely related to the solutions according to the present application are shown in the drawings, and other details less related to the present application are omitted.
[0040] The embodiment of the present application provides an adaptive generated operating system architecture based on an environment perceiver, a system organizer and a running optimizer, aiming to improve the flexibility, performance and update and maintenance convenience of the operating system.
[0041] As shown in FIG. 1, the generated operating system in the embodiment divides system functions into layered micro libraries, and under the architecture, the operating system can be dynamically assembled to adapt to the requirements of different application programs. The generated operating system is divided into three layers: a hardware architecture adaptation layer, an operating system meta-kernel layer and an external library.
[0042] The hardware architecture adaptation layer is responsible for accessing hardware and perceiving the features of the hardware, and provides life cycle management and hardware abstraction management for the operating system meta-kernel. The operating system meta-kernel layer is responsible for implementing the most basic running framework of the operating system, including a dynamic combination framework of micro libraries, a micro library dynamic update architecture and the like. The external library is the micro library implementation of the required functions of the operating system except the meta-kernel layer, including programming language micro libraries for supporting multiple languages, system management libraries for implementing various management strategies and the like.
[0043] The embodiment of the present application also provides a generation path of the generated operating system, as shown in FIG. 2.
[0044] Firstly, the large-granularity function modules (task management, network management, memory management, device management, storage management and the like) of the operating system are decoupled and split into fine-granularity operating system micro libraries which can be independently evolved and updated.
[0045] Then, an operating system meta-kernel is constructed, and through hardware and software environment feature analysis, the required micro libraries are selected from the operating system micro library collection of various types, and then organized into individual generated operating system instances.
[0046] Finally, a perfect system is constructed, that is, a hypervisor is responsible for the startup management and running management of the generated operating system on a physical device, is responsible for the life cycle management of the generated operating system running thereon, and is responsible for the communication interaction management between multiple generated operating systems.
[0047] The hyperkernel and the meta-kernel jointly cooperate in the generative operating system architecture to ensure flexibility and stability of the system. The hyperkernel, as a high-level management layer, is mainly responsible for starting, running management and life cycle control of the operating system, while the meta-kernel is the core of the operating system, responsible for dynamic combination of micro libraries and implementation of basic functions. The hyperkernel relies on the basic running framework provided by the meta-kernel, and monitors and manages the micro libraries dynamically combined by the meta-kernel to realize optimization and adjustment of the whole system.
[0048] Specifically, the generation path of the generative operating system in the embodiment of the present application mainly adopts an environment perceiver, a system organizer and a running optimizer, and the specific architecture is shown in FIG. 3.
[0049] Firstly, through the integrated software and hardware perceiver, the system comprehensively perceives the environmental state and application demand. The software perceiver is responsible for capturing the support demand of the application program running on the operating system to the operating system, while the hardware perceiver focuses on the hardware environment characteristics of the operating system running, including hardware model, hardware specification, etc. After the information of the two perceivers is collected, a detailed configuration file is generated.
[0050] Secondly, the system parses the corresponding micro library through the configuration, and acquires the corresponding micro library set through the micro library market. The micro library contains modular implementation of various functions of the operating system, which can be flexibly combined according to the demand. 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, task scheduling algorithm in task management, interrupt management mechanism, etc.
[0051] Subsequently, the configured micro libraries are combined into a generative operating system. In this process, the system organizer not only assembles 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.
[0052] Finally, the running optimizer adjusts and optimizes the running operating system in real time according to the changes of the running environment and running demand. It dynamically adjusts resource allocation and system configuration according to the running state of the system and the changes of the external environment to ensure optimal performance and resource utilization.
[0053] Further, the environment perceiver is responsible for perceiving the external software and hardware environment to provide organization configuration suggestions for the system organizer. The software perceiver automatically matches the micro library set required for software running by perceiving the application program and the demand of the user. The hardware perceiver is responsible for perceiving the hardware environment of the operating system, modeling of the hardware device, and driving matching according to the performance strategy configured by the user, and automatically matching the micro library set required by the hardware environment.
[0054] Further, the system organizer is responsible for on-demand parsing in different scenarios, obtaining the required concretized 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, multi-modal generated operating system that effectively addresses 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 from the null center based on the configuration file provided by the hardware and software sensor. 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, multi-modal generated operating system.
[0055] Further, the running optimizer focuses on the runtime adaptive performance optimization of the operating system. Through the environment sensor module, the upper-layer application and system self-updating instructions are perceived, and means such as system configuration and micro library version dynamic updating of the operating system are implemented to achieve runtime dynamic optimization of the operating system. The optimizer includes an intelligent runtime sensor and a dynamic updater. The intelligent runtime sensor captures the operating state of the operating system in real time through the operating system monitor and automatically performs system configuration tuning and micro library updating to respond to system configuration changes and performance optimization requirements. The dynamic updater is responsible for real-time compilation and dynamic updating of micro libraries in the adaptive operating system. Through the dynamic updating mechanism, the runtime system can dynamically load or unload micro libraries according to demand changes, ensuring system flexibility and response capability.
[0056] In an embodiment of the present application, the environment sensor is divided into a hardware sensor (H) and a software sensor (S), which cooperatively perceive the hardware and software environment conditions and monitor hardware and software environment changes to provide strong support for configuration construction and subsequent runtime optimization, as shown in FIG. 4. Specifically:
[0057] Define E hw and E sw as the hardware and software environment states, respectively. The work of the environment sensor can be represented as a 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.
[0058] Through the unified identification and abstraction of heterogeneous hardware resources, the hardware sensor (H) accurately perceives and adapts to the variable hardware environment in which the operating system is located. For emerging diversified hardware chips, the hardware sensor deploys a flexible system adaptation architecture to achieve seamless adaptation to various hardware systems.
[0059] Considering the dynamicity D hw and reconfigurability R hwand autonomous learning feature L hw , the hardware perceiver adopts an innovative dual-attribute representation method M attr , combining resource R res and capability attribute C cap , to provide a more comprehensive description of hardware devices, with the specific representation formula: E hw = M attr (R res , C cap (D hw , R hw , L hw ))
[0060] In order to accurately simulate these complex hardware environments, the hardware perceiver describes hardware information through a specialized hardware description language. In the application of virtualization technology, the hardware perceiver introduces a dynamic lightweight virtualization framework to adapt to the wide variety of heterogeneous devices.
[0061] The software perceiver (S) is based on the perception and modeling of complex software environments E sw in the context of human-machine integration, to adapt to the diversity and complexity of modern software environments. The software perceiver continuously monitors and dynamically adapts to changes ΔE sw in different application scenarios, which may include the evolution of user needs ΔU req , the flow of sensor data ΔS data and the fluctuations of environmental conditions ΔE cond . Before the generation phase of the operating system, the software perceiver conducts in-depth analysis of the application environment E cond and program code U req , and performs highly accurate system function modeling (M func ) of the application program, including but not limited to resource demand detection and identification of specific function dependencies, with the specific representation formula: ΔE sw = ΔU req + ΔS data + ΔE cond E sw = M func (ΔE sw , E cond , U req )
[0062] Overall, the combination of hardware perceiver and software perceiver enables the adaptive operating system to fully adapt and optimize the hardware and software environment (D opt (E hw , E sw )) in which it operates, providing users with a more intelligent, efficient and secure user experience.
[0063] Relying on the software and hardware sensors, the operating system can be generated to be optimized for specific applications, thus automatically generating a customized operating system that is optimally configured in terms of performance, security, and efficiency. This innovative design enables the operating system to not only precisely meet the unique needs of the application program, but also achieve the best performance and security standards during the overall operation.
[0064] In an embodiment of the present application, the system organizer plays a crucial role in the process of operating system generation, which is responsible for the dynamic assembly of micro libraries and is the core of operating system construction. The organizer consists of two key subsystems: the parser and the 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 implements the dynamic construction of micro library operating systems, but also effectively promotes the collaboration between software and hardware to optimize overall system performance and enhance security. The assembly process of the system organizer is shown in FIG. 5.
[0065] First, the parser starts from the bottom and parses the configuration file of the system layer by layer. During this process, it will check and configure the underlying platform layer micro library compatible with the hardware architecture in detail.
[0066] Next, the parser parses the configuration file and obtains the basic micro library of the system core, configuring the basic system functions. This step is a key link in building a stable and efficient operating system.
[0067] Subsequently, the parser turns to the external library configuration and carefully configures the peripheral third-party micro library such as the user code language library to ensure the versatility and scalability of the system.
[0068] After the configuration is completed, the parser will also make a request to the micro library service market in the cloud to obtain the required micro library. If some micro libraries are missing locally, the system will automatically download and securely store them locally using the hash technology.
[0069] After all these parsing work is completed, the assembler starts to assemble the micro libraries and form the final generated operating system image.
[0070] First, the assembler will preprocess all the code, perform macro expansion, and handle conditional compilation instructions.
[0071] Subsequently, the assembler will start compiling each library in order, and the compilation order is based on the dependency order between libraries. This step also checks whether the dependency relationships of each library are correct, and the libraries will be compiled into static or dynamic object files according to the configuration items.
[0072] After the compilation is completed, the assembler starts to link the above object files, statically or dynamically linking the symbols together, and finally assembling into a generated operating system image.
[0073] The whole assembling process not only embodies the high automation and intelligence of system design, but also ensures that the generated operating system image can maintain the optimal performance in the variable hardware and software environment. Through the highly flexible and customizable assembling process, the application demand changes can be quickly responded, and the development trend of future intelligent computing environment can also be met.
[0074] In an embodiment of the present application, the running optimizer is divided into an intelligent running time perceiver and a dynamic updater, responsible for the management of the generated operating system running. Through the dynamic monitoring of resources and the dynamic updating of micro libraries, the running optimizer can ensure the optimal running state and the latest micro library version of the generated operating system at runtime, so as to realize the flexibility and intelligent characteristics of the generated operating system, as shown in FIG. 6.
[0075] The intelligent running time perceiver includes a system running monitoring module (M res ), which is responsible for receiving and processing the running conditions (R guest ) sent by the built-in monitoring module of the running system and monitoring the external software and hardware environment conditions (R host ). The intelligent running time perceiver not only monitors the system resources, but also includes the response to system configuration changes and micro library update requirements. When the environmental variables such as system resources (R sys (R guest , R host ), micro library version (V lib ), and application demand (D app ) change, the intelligent running time perceiver will first propose several dynamic updating schemes (U proposal ). Then, the intelligent running time perceiver will combine the system environment resource conditions, and through the optimization function (F opt ), the quantitative comparison between the existing running scheme and the updating scheme U proposal ) is realized, and the best dynamic updating scheme is selected and handed over to the dynamic updater to realize the dynamic updating of resources. The optimization function (F opt ) can be represented by the following formula:
[0076] Wherein, f is an evaluation function, which is used to evaluate the fitness of the given resource conditions (R sys ), micro library version (V lib ), application demand (D app ), and updating scheme (U).
[0077] The dynamic updater is mainly responsible for the instant compilation and dynamic updating of the micro libraries in the adaptive operating system. This function is achieved by implementing dynamically loaded micro libraries, which allow the operating system to dynamically load and unload micro library modules at runtime to cope with changes in demand. In addition, the dynamic updater is also responsible for managing these micro libraries, enabling function calls and communication between static micro libraries and dynamic micro libraries, as well as between different dynamic micro libraries.
[0078] To further enhance the flexibility and responsiveness of the system, the dynamic updater also supports custom dynamic updating of micro libraries, ensuring that the dynamic loading and unloading process of micro libraries does not affect the normal operation of upper-layer applications. In the implementation process, the dynamic updater uses system interrupts. Before updating the relevant library functions, the dynamic updater also performs stack checks to ensure that the relevant functions are updated only after the function calls are completed, thereby achieving the updating and optimization of micro libraries without interrupting the operation of the operating system.
[0079] 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 implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more generative operating system generation device embodiments provided below can refer to the limitations of the generative operating system generation method in the foregoing, which will not be repeated here.
[0080] In one embodiment, as shown in FIG. 7, a generative operating system generation device is provided, comprising:
[0081] A system perception module for comprehensively perceiving the environmental state and application demand through an environmental perception system and generating a configuration file;
[0082] A micro library acquisition module for parsing the corresponding micro library through the configuration file and acquiring the corresponding micro library set through a micro library market;
[0083] A micro library combination module for combining the configured micro libraries into a generative operating system through a system organizer;
[0084] 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 demand.
[0085] In one embodiment, a computer device is provided, which can be a server, and an internal structure diagram of the computer device can be as shown in FIG. 8. The computer device includes a processor, a memory and a network interface connected through a system bus. The processor of the computer device is configured 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 running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store generative operating system generation data. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a generative operating system generation method.
[0086] Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0087] In one embodiment, a computer device is provided, which includes a memory and a processor. The memory stores a computer program. The computer program is executed by the processor to cause the processor to perform the steps of the generative operating system generation method described above. The steps of the generative operating system generation method can be the steps of the generative operating system generation method in each of the embodiments described above.
[0088] In one embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by the processor to cause the processor to perform the steps of the generative operating system generation method described above. The steps of the generative operating system generation method can be the steps of the generative operating system generation method in each of the embodiments described above.
[0089] In one embodiment, a computer program product is provided, which includes a computer program. The computer program is executed by the processor to cause the processor to perform the steps of the generative operating system generation method described above. The steps of the generative operating system generation method can be the steps of the generative operating system generation method in each of the embodiments described above.
[0090] In summary, the generative operating system scheme of the present application aims to overcome the limitations of traditional static pre-development operating systems and provide a new operating system solution that is self-aware, self-organizing and self-optimizing to meet the diversification and dynamic needs of the new generation of intelligent computing environment. The uniqueness of the present application 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 running optimization. The biggest advantage is that it can quickly generate and optimize a dedicated operating system for different application scenarios and hardware environments, achieving flexible adaptation and adaptive optimization of the software and hardware environment. This architecture not only improves the flexibility and performance of the operating system, but also greatly improves the user experience and the adaptability of the system. This architecture not only can flexibly cope with changing application requirements and hardware environments, but also can ensure efficient operation and optimized management of the operating system throughout its life cycle.
[0091] In addition, it should be noted that in the present specification, "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0092] It should be understood that although the present specification is described in terms of embodiments, not every embodiment contains only one independent technical solution, and the description of the specification is only for the sake of clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can be appropriately combined to form other embodiments that those skilled in the art can understand.
Claims
1. A generative operating system architecture dynamically generated based on software and hardware environment characteristics, characterized by: include: 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 its characteristics, as well as providing lifecycle management and hardware abstraction management for the meta-operating system kernel; 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 and the dynamic update architecture of micro-libraries; 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.
2. A method for generating a generative operating system based on dynamic software and hardware environment characteristics, capable of generating the generative operating system described in claim 1, characterized in that The method comprises the following steps: First, the environmental sensor system fully perceives the environmental 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 changes in the operating environment and operating requirements.
3. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 2, characterized in that: The micro-library includes modular implementations of various operating system functions, including task management, network management, memory management, device management, and storage management.
4. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 2, 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.
5. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 2, characterized in that: 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 retrieving and obtaining the required micro-libraries for the empty center according to the configuration file provided by the software and hardware sensors, 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-form generative operating system.
6. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 2, characterized in that: The operation optimizer focuses on the adaptive performance optimization of the operating system during runtime. Through the environmental sensor, it perceives the upper-layer application and system self-update instructions, 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. 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.
7. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 4, 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, the hardware environment status E hw The specific characterization formula is: E hw =M attr (R res ,C cap (D hw ,R hw ,L hw )) Among them D hw 、R hw , L hw They are the dynamic, reconfigurable and autonomous learning characteristics of intelligent hardware devices.
8. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 4, 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 , rheological ΔS of sensor data data and fluctuations in environmental conditions ΔE cond ; The software sensor is used to monitor 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 ) Among them: ΔE sw =ΔU req +ΔS data +ΔE cond 。 9. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 5, 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; Then, 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; Then, 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.
10. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 6, 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 .
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 intelligent runtime sensor also includes responses to system configuration changes and micro-library update requirements; When the system resources R sys (R guest ,R host ), Micro Library Version V lib and application requirements D app When a change occurs, the intelligent runtime sensor performs the following actions: 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.
12. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 11, characterized in that: The optimization function F opt 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.
13. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 10, 11 or 12, characterized in that: The dynamic updater is also responsible for managing the micro-library, and realizing function calls and communications between static micro-libraries and dynamic micro-libraries, as well as between different dynamic micro-libraries.
14. The method for generating a dynamic, generative operating system based on software and hardware environment characteristics according to claim 13, characterized in that: The dynamic updater also supports customized dynamic updates of micro libraries, ensuring that the dynamic loading and unloading processes of the micro libraries do not affect the normal operation of upper-layer applications.
15. A device for generating a dynamic generative operating system based on software and hardware environment characteristics, characterized in that: include: System perception module, which 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, configured 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; The system optimization module is 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.
16. 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 2 to 14 is implemented.
17. 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 2 to 14 is implemented.
18. 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 2 to 14 is implemented.
Citation Information
Patent Citations
AIoT scene-oriented operating system supporting RISC-V processor
CN114416031A
System service dynamic construction method in microkernel operating system
CN115495158A
Giant satellite base operating system and method thereof
CN116931969A
Deployment method and device of single-core operating system in server-free framework based on edge-removed vehicle
CN117176568A
Method of functioning computer device operating system of software and hardware complex
RU2626350C1