# US 2021/0232447 A1 · Method for managing multiple operating systems in a terminal

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

- Number: US 2021/0232447 A1
- Document ID: US20210232447A1
- Status: Published application
- Kind: A1
- Application number: 17/221,505
- Filed: 2021-04-02
- Published: 2021-07-29
- Earliest claimed: 2016-12-29
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Bo LU; Jianfei ZHONG; Yunjian YING
- Web page: https://patentgrep.com/patent/US20210232447A1

## CPC

- G06F 9/54: Interprogram communication
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 9/451: Execution arrangements for user interfaces
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 11/30: Monitoring
- G06F 11/32: with visual {or acoustical} indication of the functioning of the machine
- G06F 16/334: Query execution (filtering based on additional data G06F16/335)
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F 2209/522: Manager
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure provides a method for managing multiple operating systems in a terminal. The terminal includes multiple operating systems and a management system. The management system is configured to manage the multiple operating systems. The management system includes a cross-system application database. The method includes: when a first operating system in the multiple operating systems runs in a foreground, and a second operating system in the multiple operating systems runs in a background, if the second operating system receives a first message of a first application in the second operating system, sending, by the second operating system, a notification message to the management system; storing, by the management system, the notification message into the cross-system application database; and listening, by the first operating system, on the cross-system application database, and outputting a prompt of the first message when listening and obtaining the notification message.

## Claims

### Claim 1

A method for prompting a message in a terminal, comprising:
receiving, by a second operating system of the terminal, a first message of a first application in the second operating system when a first operating system of the terminal runs in a foreground, and the second operating system runs in a background, wherein the first operating system and the second operating system are managed by a management system of the terminal, wherein the management system comprises a cross-system application database;
sending, by the second operating system, a notification message to the management system according to the first message, wherein the notification message carries at least one of operating system information corresponding to the first message, application information corresponding to the first message, or quantity information corresponding to the first message;
storing, by the management system, the notification message into the cross-system application database, wherein the cross-system application database is to be monitored by a thread in each of the first operating system and the second operating system; and
listening, by the first operating system, on the cross-system application database, and outputting a prompt of the first message when the notification message is detected.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the method further comprises:
obtaining, by the first operating system, an input instruction of a user;
sending, by the first operating system, a switch request message to the management system according to the first message and the input instruction of the user;
switching, by the management system according to the switch request message, the first operating system from running in the foreground to running in the background, and the second operating system from running in the background to running in the foreground; and sending the notification message to the second operating system; and
starting, by the second operating system, the first application according to the notification message.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the starting, by the second operating system, the first application according to the notification message comprises:
searching, by the second operating system according to the notification message, the cross-system application database for the application information corresponding to the first message, and starting the first application according to the application information corresponding to the first message.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the method further comprises:
obtaining, by the management system, a message of an application in each of the first operating system and the second operating system; and
determining the cross-system application database according to the message of the application in each operating system.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the cross-system application database comprises, for each application, at least one of an application name, an operating system in which an application is located, an application icon, a message quantity of an application, or an operating system for monitoring a message quantity of an application.

### Claim 6

A terminal, comprising:
a memory storing instructions;
at least one hardware processor to execute the instructions;
a first operating system and a second operating system;
a management system configured to manage the first operating system and the second operating system, and comprising a cross-system application database;
wherein the first operating system is configured to:
receive a first message of a first application in the first operating system, and
send a notification message to the management system according to the first message,
wherein the notification message comprises the first message, and carries at least one of operating system information corresponding to the first message, application information corresponding to the first message, or quantity information corresponding to the first message;
wherein the management system is configured to store the notification message into the cross-system application database, which is to be monitored by a thread in each of the first operating system and the second operating system; and
wherein the second operating system is configured to:
listen on the cross-system application database, and
output a prompt of the first message when the notification message is detected, wherein the second operating system runs in a foreground.

### Claim 7 (depends on 6)

The terminal according to claim 6, wherein the second operating system obtains an input instruction of a user, and sends a switch request message to the management system according to the input instruction of the user and the first message;
wherein the management system is further configured to:
switch, according to the switch request message, the second operating system from running in the foreground to running in a background, and the first operating system from running in the background to running in the foreground; and
send the notification message to the first operating system; and
wherein the first operating system is further configured to start the first application according to the notification message.

### Claim 8 (depends on 7)

The terminal according to claim 7, wherein the first operating system is further configured to:
search, according to the notification message, the cross-system application database for the application information corresponding to the first message; and
start the first application according to the application information corresponding to the first message.

### Claim 9 (depends on 6)

The terminal according to claim 6, wherein the management system is further configured to:
obtain a message of an application in each of the first operating system and the second operating system; and
determine the cross-system application database according to the message of the application in each operating system.

### Claim 10 (depends on 6)

The terminal according to claim 6, wherein the cross-system application database comprises, for each application, at least one of an application name, an operating system in which an application is located, an application icon, a message quantity of an application, or an operating system for monitoring a message quantity of an application.

### Claim 11

A non-transitory machine-readable medium having instructions stored therein for prompting a message, the instructions, when executed by a processor, causing the processor to perform operations comprising:
receiving, by a second operating system of the terminal, a first message of a first application in the second operating system when a first operating system of the terminal runs in a foreground, and the second operating system runs in a background, wherein the first operating system and the second operating system are managed by a management system of the terminal, wherein the management system comprises a cross-system application database;
sending, by the second operating system, a notification message to the management system according to the first message, wherein the notification message carries at least one of operating system information corresponding to the first message, application information corresponding to the first message, or quantity information corresponding to the first message;
storing, by the management system, the notification message into the cross-system application database, wherein the cross-system application database is to be monitored by a thread in each of the first operating system and the second operating system; and
listening, by the first operating system, on the cross-system application database, and outputting a prompt of the first message when the notification message is detected.

### Claim 12 (depends on 11)

The non-transitory machine-readable medium according to claim 11, wherein the method further comprises:
obtaining, by the first operating system, an input instruction of a user;
sending, by the first operating system, a switch request message to the management system according to the first message and the input instruction of the user;
switching, by the management system according to the switch request message, the first operating system from running in the foreground to running in the background, and the second operating system from running in the background to running in the foreground; and sending the notification message to the second operating system; and
starting, by the second operating system, the first application according to the notification message.

### Claim 13 (depends on 12)

The non-transitory machine-readable medium according to claim 12, wherein the starting, by the second operating system, the first application according to the notification message comprises:
searching, by the second operating system according to the notification message, the cross-system application database for the application information corresponding to the first message, and starting the first application according to the application information corresponding to the first message.

### Claim 14 (depends on 11)

The non-transitory machine-readable medium according to claim 11, wherein the method further comprises:
obtaining, by the management system, a message of an application in each of the first operating system and the second operating system; and
determining the cross-system application database according to the message of the application in each operating system.

### Claim 15 (depends on 11)

The non-transitory machine-readable medium according to claim 11, wherein the cross-system application database comprises, for each application, at least one of an application name, an operating system in which an application is located, an application icon, a message quantity of an application, or an operating system for monitoring a message quantity of an application.
