# US 2026/0099363 A1 · Method and apparatus for controlling running of operating system, and embedded system and chip

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0099363 A1
- Document ID: US20260099363A1
- Status: Published application
- Kind: A1
- Application number: 19/359,455
- Filed: 2025-10-15
- Published: 2026-04-09
- Earliest claimed: 2025-10-07
- Assignees: Inspur Suzhou Intelligent Technology Co., Ltd.
- Applicants: Inspur Suzhou Intelligent Technology Co., Ltd.
- Inventors: Endong WANG; Jiaming HUANG; Ming SUN; Jin CHEN; Chaofan CHEN
- Web page: https://patentgrep.com/patent/US20260099363A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F 9/4406: {Loading of operating system}
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 13/40: Bus structure {(for computer networks G06F15/163; for optical bus networks H04B10/25)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a method and apparatus for controlling running of an operating system, and an embedded system and a chip. The embedded system includes a chip and at least two operating systems. The chip includes a processor, a hardware controller, a first bus, and a second bus. The bandwidth of the first bus is higher than the bandwidth of the second bus; the first bus is configured as a multi-master and multi-slave mode; and the second bus is configured as a one-master and multi-slave mode. The at least two operating systems are configured to run on the basis of the processor; the at least two operating systems are configured to communicate with each other by the first bus; and the at least two operating systems are configured to control the hardware controller by the second bus.

## Claims

### Claim 1

An embedded system, comprising a chip and at least two operating systems, wherein
the chip comprises a processor, a hardware controller, a first bus, and a second bus, wherein a bandwidth of the first bus is higher than a bandwidth of the second bus, the first bus is configured as a multi-master and multi-slave mode, and the second bus is configured as a one-master and multi-slave mode;
the at least two operating systems are configured to run on the basis of the processor;
the at least two operating systems are configured to communicate with each other by the first bus; and
the at least two operating systems are configured to control the hardware controller by the second bus;
wherein the at least two operating systems comprise a first operating system and a second operating system;
the first operating system is configured to run on the basis of a target processor core in the processor;
the first operating system is configured to release the target processor core in response to the first operating system running to a target system state; and
the second operating system is configured to add the target processor core into a scheduling resource pool of the second operating system, wherein the scheduling resource pool comprises a processor core in the processor that is allocated for the second operating system.

### Claim 2 (depends on 1)

The embedded system as claimed in claim 1, wherein the at least two operating systems comprise a first operating system and a second operating system;
the first operating system is configured to control, on the basis of the processor, a target hardware controller to run a target operation service;
the first operating system is configured to release the target hardware controller by the second bus in response to the target operation service running to a target service state; and
the second operating system is configured to control, by the second bus, the target hardware controller to run the target operation service.

### Claim 3 (depends on 2)

The embedded system as claimed in claim 2, wherein
the second operating system is configured to send a first interrupt request to the first operating system by the first bus, wherein the first interrupt request is configured to request to take over the target hardware controller; the first operating system is configured to release the target hardware controller by the second bus in response to the first interrupt request; or
the first operating system is configured to release the target hardware controller by the second bus in response to a service attribute of the target operation service reaching a target service attribute.

### Claim 4 (depends on 3)

The embedded system as claimed in claim 3, wherein
the first operating system is configured to determine, in response to the first interrupt request, whether the target hardware controller is taken over by the second operating system; and
insofar as the target hardware controller is taken over by the second operating system, the first operating system is configured to release the target hardware controller by the second bus.

### Claim 5 (depends on 4)

The embedded system as claimed in claim 4, wherein
insofar as the target hardware controller is not taken over by the second operating system, the first operating system is configured to send a second interrupt request to the second operating system by the first bus, wherein the second interrupt request is configured to indicate rejection of the second operating system to take over the target hardware controller.

### Claim 6 (depends on 2)

The embedded system as claimed in claim 2, wherein
the first operating system is configured to send a third interrupt request to the second operating system, wherein the third interrupt request is configured to indicate that the first operating system has released the target hardware controller; and
in response to the third interrupt request, the second operating system is configured to control, by the second bus, the target hardware controller to run the target operation service.

### Claim 7 (depends on 1)

The embedded system as claimed in claim 1, wherein
the second operating system is configured to send a fourth interrupt request to the first operating system by the first bus, wherein the fourth interrupt request is configured to request to occupy the target processor core; the first operating system is configured to release the target processor core in response to the fourth interrupt request; or
the first operating system is configured to release the target processor core in response to a system attribute reaching a target system attribute;
the first operating system is configured to determine, in response to the fourth interrupt request, whether the target processor core is occupied by the second operating system; and
insofar as the target processor core is occupied by the second operating system, the first operating system is configured to release the target processor core;
insofar as the target processor core is not occupied by the second operating system, the first operating system is configured to send a fifth interrupt request to the second operating system by the first bus, wherein the fifth interrupt request is configured to indicate rejection of the second operating system to occupy the target processor core.

### Claim 8 (depends on 7)

The embedded system as claimed in claim 7, wherein
the first operating system is configured to send a sixth interrupt request to the second operating system, wherein the sixth interrupt request is configured to indicate that the first operating system has released the target processor core; and
the second operating system is configured to add, in response to the sixth interrupt request, the target processor core into the scheduling resource pool.

### Claim 9 (depends on 1)

The embedded system as claimed in claim 1, wherein the at least two operating systems comprise a first operating system and a second operating system; and
a target processor core in the processor has been added into a scheduling resource pool of the second operating system, wherein the scheduling resource pool comprises a processor core in the processor that is allocated for the second operating system;
the second operating system is configured to release the target processor core in response to the first operating system being woken up; and
the first operating system is configured to run on the basis of the target processor core;
the second operating system is configured to release the target processor core in response to that it is detected that the first operating system is woken up; or
the first operating system is configured to send a seventh interrupt request to the second operating system in response to the first operating system being woken up, wherein the seventh interrupt request is configured to request the second operating system to release the target processor core; and the second operating system is configured to release the target processor core in response to the seventh interrupt request.

### Claim 10 (depends on 1)

The embedded system as claimed in claim 1, wherein the at least two operating systems comprise a first operating system and a second operating system; the chip further comprises a storage space, and the at least two operating systems control the storage space by the first bus;
the first operating system is configured to generate service data during running on the basis of the processor;
the first operating system is configured to store the service data to the storage space by the first bus, and send an eighth interrupt request to the second operating system by the first bus, wherein the eighth interrupt request is configured to request the second operating system to read the service data from the storage space; and
the second operating system is configured to read the service data from the storage space in response to the eighth interrupt request.

### Claim 11 (depends on 1)

The embedded system as claimed in claim 1, wherein the at least two operating systems comprise a first operating system and a second operating system,
the first operating system is configured to run on the basis of a periodicity of the processor; or
the first operating system is configured to run on the basis of the processor in response to a received wake-up request; or
the first operating system is configured to run on the basis of the processor according to a matching degree between a current operation service generated on the processor and the first operating system;
the first operating system is configured to hibernate at an end of running; and
during a hibernation of the first operating system, the second operating system is configured to add a target processor core used by the first operating system into a scheduling resource pool of the second operating system, wherein the scheduling resource pool comprises processors other than the target processor core in the processor.

### Claim 12 (depends on 1)

The embedded system as claimed in claim 1, wherein
the at least two operating systems are configured to communicate with each other by a communication protocol deployed by the first bus; or
the at least two operating systems are configured to communicate with each other by the first bus, the second bus, and a communication hardware controller in the hardware controller;
the at least two operating systems are configured to communicate with each other by sending an Inter-Processor Interrupt (IPI) request through the first bus; or
one of the at least two operating systems is configured to send a system interrupt request to the first bus; the first bus is configured to forward the system interrupt request to the second bus; the second bus is configured to send the system interrupt request to a mailbox hardware component controlled by the communication hardware controller; and the mailbox hardware component is configured to send the system interrupt request to the other one of the at least two operating systems by the second bus and the first bus.

### Claim 13 (depends on 1)

The embedded system as claimed in claim 1, wherein the at least two operating systems comprise a first operating system and a second operating system; and
the first operating system is configured to monitor, by the first bus, operation services executed on the second operating system; and
the first operating system is configured to take over an abnormal operation service by the first bus in response to that there is an abnormal operation service in the operation services executed on the second operating system;
the first operating system is configured to receive, by the first bus, heartbeat signals of the operation services executed on the second operating system; and
the first operating system is configured to take over, by the first bus, the abnormal operation service in which a frequency of the heartbeat signal does not match a corresponding target frequency; or
after taking over the abnormal operation service, the first operating system is configured to send a restart instruction to the second operating system by the first bus, wherein the restart instruction is configured to indicate restart of the abnormal operation service.

### Claim 14 (depends on 1)

The embedded system as claimed in claim 1, wherein the chip further comprises a memory, and the memory stores a start booting component; and
the chip is configured to run the start booting component after being powered on, so as to boot one of the at least two operating systems to start, and the start booting component is configured to guide another operating system in the at least two operating systems to start.

### Claim 15 (depends on 1)

The embedded system as claimed in claim 1, wherein the at least two operating systems comprise a first operating system and a second operating system; and
the first operating system is configured to control, on the basis of the processor, a target hardware controller to run a target operation service; the first operating system is configured to release the target hardware controller by the second bus in response to the target operation service running to a target service state; the second operating system is configured to control, by the second bus, the target hardware controller to run the target operation service;
the first operating system is configured to run on the basis of a target processor core in the processor; the first operating system is configured to release the target processor core in response to the first operating system running to a target system state; the second operating system is configured to add the target processor core into a scheduling resource pool of the second operating system, wherein the scheduling resource pool comprises a processor core in the processor that is allocated for the second operating system;
the chip is further configured to comprise a storage space, and the at least two operating systems are configured to control the storage space by the first bus; the first operating system is configured to generate service data during running on the basis of the processor; the first operating system is configured to store the service data to the storage space by the first bus, and send an eighth interrupt request to the second operating system by the first bus, wherein the eighth interrupt request is configured to request the second operating system to read the service data from the storage space; and the second operating system is configured to read the service data from the storage space in response to the eighth interrupt request.

### Claim 16 (depends on 1)

The embedded system as claimed in claim 1, wherein the at least two operating systems comprise a first operating system and a second operating system; and
the chip is configured to load a communication value to the first bus, and the first bus is configured to send a communication signal carrying the communication value to a communication register corresponding to the second operating system, so as to realize communication between the first operating system and the second operating system, wherein the communication value is configured to indicate communication content between the first operating system and the second operating system; or
the chip is configured to load a control value to the second bus, and the second bus is configured to send a control signal carrying the control value to a register corresponding to the hardware controller, so as to realize control of the hardware controller by operating systems, wherein the control value is configured to indicate control content of the operating systems over the hardware controller.

### Claim 17

An embedded system, comprising a first operating system, a second operating system, a controller, and a processor, wherein the first operating system and the second operating system run on the basis of the processor; and
the controller is configured to detect a running state of the first operating system during running, and control, according to the running state, processor resources used by the first operating system;
the first operating system is configured to run on the basis of a target processor core in the processor;
the first operating system is configured to release the target processor core in response to the first operating system running to a target system state; and
the second operating system is configured to add the target processor core into a scheduling resource pool of the second operating system, wherein the scheduling resource pool comprises a processor core in the processor that is allocated for the second operating system.

### Claim 18 (depends on 17)

The embedded system as claimed in claim 17, wherein the controller is configured to perform at least one of the following:
detect a service state of a target operation service run by the first operating system on the basis of the processor, wherein the running state comprises the service state; and
detect a system state of the first operating system, wherein the running state comprises the system state, and the first operating system runs on the basis of a target processor core in the processor;
the controller is configured to release the target operation service in response to that it is detected that the service state is a target service state, wherein the processor resources comprise the target operation service; the second operating system is configured to run the target operation service; and/or
the controller is configured to release the target processor core in response to that it is detected that the system state is a target system state, wherein the processor resources comprise the target processor core; and the second operating system is configured to add the target processor core into a scheduling resource pool of the second operating system, wherein the scheduling resource pool comprises a processor core in the processor that is allocated for the second operating system;
the embedded system further comprises a first service interaction thread running on the first operating system, and a second service interaction thread running on the second operating system, wherein the controller is configured to determine, in response to that a first interrupt request sent to the first service interaction thread by the second service interaction thread is acquired, that the service state is detected as the target service state, wherein the first interrupt request is configured to request to take over the target operation service; or
the controller is configured to determine, in response to that a service attribute of the target operation service reaches a target service attribute, that the service state is detected as the target service state;
the controller is configured to: in response to the first interrupt request, determine whether the target operation service is taken over by the second operating system; and
insofar as the target operation service is taken over by the second operating system, release the target operation service;
the embedded system further comprises a first service interaction thread running on the first operating system, and a second service interaction thread running on the second operating system, wherein the first service interaction thread is configured to, insofar as the target operation service is not taken over by the second operating system, send a second interrupt request to the second service interaction thread, wherein the second interrupt request is configured to indicate rejection of the second operating system to take over the target operation service.

### Claim 19

A method for controlling running of an operating system, comprising:
detecting a running state of a first operating system during running, wherein the first operating system and a second operating system run on the basis of a processor; and
controlling, according to the running state, processor resources used by the first operating system;
wherein the first operating system is configured to run on the basis of a target processor core in the processor;
the first operating system is configured to release the target processor core in response to the first operating system running to a target system state; and
the second operating system is configured to add the target processor core into a scheduling resource pool of the second operating system, wherein the scheduling resource pool comprises a processor core in the processor that is allocated for the second operating system.

### Claim 20 (depends on 19)

The method as claimed in claim 19, wherein detecting the running state of the first operating system during running comprises at least one of the following:
detecting a service state of a target operation service run by the first operating system on the basis of the processor, wherein the running state comprises the service state;
detecting a system state of the first operating system, wherein the running state comprises the system state, and the first operating system runs on the basis of a target processor core in the processor;
wherein controlling, according to the running state, the processor resources used by the first operating system comprises at least one of the followings: releasing the target operation service in response to that it is detected that the service state is a target service state, wherein the processor resources comprise the target operation service; the second operating system is configured to run the target operation service; or releasing the target processor core in response to that it is detected that the system state is a target system state, wherein the processor resources comprise the target processor core; and the second operating system is configured to add the target processor core into a scheduling resource pool of the second operating system, wherein the scheduling resource pool comprises a processor core in the processor that is allocated for the second operating system;
the method further comprising: in response to that a first interrupt request sent to the first operating system by the second operating system is acquired, determining that the service state is detected as the target service state, wherein the first interrupt request is configured to request to take over the target operation service; or in response to that a service attribute of the target operation service reaches a target service attribute, determining that the service state is detected as the target service state;
wherein releasing the target operation service in response to that it is detected that the service state is the target service state comprises: in response to the first interrupt request, determining whether the target operation service is taken over by the second operating system; and insofar as a target hardware controller is taken over by the second operating system, releasing the target operation service.
