Display method and display device for multiple operating systems

By performing dual-system display virtualization in user space and introducing a global foreground identifier, the problem of low power consumption and switching performance in multi-operating system display on mobile devices is solved, and an efficient and low-power display effect is achieved.

CN112905275BActive Publication Date: 2024-08-27BANMA ZHIXING NETWORK HONGKONG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911217493.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-03
Publication Date
2024-08-27
Estimated Expiration
2039-12-03

AI Technical Summary

Technical Problem

How to achieve efficient and low-power display when multiple operating systems are installed on mobile devices? The existing technology relies on kernel-layer processing, resulting in low power consumption and switching performance.

Method used

By performing dual-system display virtualization in user space instead of the kernel layer, unnecessary underlying processing is reduced, and a global foreground flag is introduced to improve the efficiency of status judgment and system switching. The background system does not perform composite display operations.

Benefits of technology

It achieves a more universal multi-operating system display solution, reduces system power consumption, and significantly improves performance through efficient system switching and background-free synthesis operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905275B
    Figure CN112905275B
Patent Text Reader

Abstract

A display method and device for multiple operating systems are proposed. The method includes: a first synthesizer of a first operating system receives a display request from the first operating system; the first synthesizer determines whether the first operating system is in the foreground in the user state; and when it is determined that the first operating system is in the foreground, the first synthesizer uses the frame buffer of the kernel state to realize display on the screen. By performing dual-system display virtualization in the user space rather than the kernel layer, the display scheme of the present invention can reduce power consumption by reducing unnecessary underlying processing. Furthermore, the scheme further improves the efficiency of state judgment and system switching of each operating system by introducing a global foreground identifier.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an operating system, and in particular to a display method and a display device for multiple operating systems. Background Art

[0002] As mobile devices such as smart phones become more and more popular, people are becoming more and more dependent on mobile devices. Operating systems implemented on mobile platforms (ie, mobile operating systems) include Android, iOS, and AliOS.

[0003] In existing applications, a mobile device usually has only one operating system installed. However, with the increasing demand of users and the introduction of special-purpose mobile devices (such as dedicated police terminals, etc.), more and more mobile devices are beginning to be pre-installed with two or more operating systems.

[0004] When multiple operating systems are installed on a mobile device, a set of hardware on the mobile device needs to support multiple operating systems, so display system virtualization technology is needed to achieve display support for each operating system. Due to the limited power consumption and processing power of mobile devices, how to perform efficient and low-power display when multiple operating systems are installed has become an urgent problem to be solved in this field. Summary of the invention

[0005] In view of this, the present invention proposes a display solution for multiple operating systems. The solution performs dual-system display virtualization in user space rather than kernel layer, which can reduce power consumption by reducing unnecessary underlying processing. Furthermore, the solution further improves the efficiency of state judgment and system switching of each operating system by introducing a global foreground flag.

[0006] According to a first aspect of the present invention, a display method for multiple operating systems is proposed, comprising: a first synthesizer of a first operating system receives a display request from the first operating system; the first synthesizer determines in a user state whether the first operating system is in the foreground; and when it is determined that the first operating system is in the foreground, the first synthesizer uses a kernel state frame cache to realize display on the screen.

[0007] According to a second aspect of the present invention, a display device is proposed, which is installed with multiple operating systems, and the multiple operating systems include a first operating system and a second operating system, wherein the first operating system includes: a first synthesizer, used to: receive a display request from the first operating system; determine whether the first operating system is in the foreground in user mode; and when it is determined that the first operating system is in the foreground, use the kernel state frame cache to realize display on the screen of the device, and the second operating system includes: a second synthesizer, used to: receive a display request from the second operating system; determine whether the second operating system is in the foreground in user mode; and when it is determined that the second operating system is in the background, do not perform a synthesized display operation.

[0008] According to a third aspect of the present invention, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor is caused to execute any of the methods described above.

[0009] According to a fourth aspect of the present invention, a non-transitory machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0010] Therefore, the multi-operating system display method and device of the present invention performs dual-system display virtualization in user space rather than kernel layer, so that the above virtualization does not need to rely on the underlying display system, and can be more universally moved to various mobile device platforms. Furthermore, the display scheme of the present invention can achieve extremely efficient system switching by introducing a global foreground identifier and a switcher that can be implemented as a root system, and since the background system does not perform any synthesis operation, the system power consumption is also fully guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.

[0012] Figure 1 A schematic flow chart of a display method for multiple operating systems according to an embodiment of the present invention is shown.

[0013] Figure 2 An architecture diagram of a dual operating system installed in a mobile device is shown.

[0014] Figure 3 An example of a dual-system display scheme according to the present invention is shown.

[0015] Figure 4 A schematic diagram showing the composition of a display device with multiple operating systems installed according to an embodiment of the present invention is shown.

[0016] Figure 5 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned display method for multiple operating systems according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0017] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0018] The operating system used on the mobile platform is called a mobile operating system. Common mobile operating systems include Android, iOS, and AliOS. Mobile operating systems are similar to operating systems running on desktop computers, but are usually simpler and provide wireless communication functions. Devices that use mobile operating systems include smartphones, PDAs, tablet computers, etc., as well as embedded systems, mobile communication devices, wireless devices, etc.

[0019] A general mobile device (e.g., a smartphone) usually has only one operating system installed. When two independent systems are running simultaneously on a mobile device, a dual system is installed on the mobile device. A dual system can be two identical or different operating systems running simultaneously. For example, an Android system and an AliOS system running simultaneously on a smartphone, or two Android systems running simultaneously, etc. Similarly, more operating systems can be installed on a mobile device, for example, three or even more operating systems.

[0020] When multiple operating systems are installed on a mobile device, since a set of hardware on the mobile device needs to support multiple operating systems, it is necessary to use display system virtualization technology to implement display support for each operating system. Display system virtualization technology can be implemented as a module in the operating system for displaying interface effects, usually including the upper-layer graphics synthesizer, the lower-layer frame buffer, display driver, etc. Dual systems (or multiple systems) need to implement display system virtualization, that is, to make each upper-layer system appear to have its own independent display that does not affect each other.

[0021] On mobile devices, since multiple operating systems run independently and only one operating system can run in the foreground, a system switching function is required. Through the foreground application, the foreground system can be switched to the background, and the background system can be switched to the foreground for display.

[0022] In order to realize display virtualization, a packaging module can be added to the kernel layer to uniformly process requests from the upper display system. The packaging module directly connects to the underlying display driver module to perform memory allocation, display content submission and other processing. The advantage of this solution is that all processing is done at the kernel layer, and no modification is required to the upper display system. However, due to the addition of the packaging layer, all requests from the upper layer must be fully processed, and the underlying driver needs to be adapted. There are also more copies of display caches, which will reduce switching performance and lead to higher system power consumption.

[0023] To this end, the present invention proposes a display solution for multiple operating systems. The solution performs dual-system display virtualization in user space rather than kernel layer, which can reduce power consumption by reducing unnecessary underlying processing. Furthermore, the solution further improves the efficiency of state judgment and system switching of each operating system by introducing a global foreground flag.

[0024] Figure 1 A flow chart of a method for displaying multiple operating systems according to an embodiment of the present invention is shown. The method can be executed by a mobile device, such as a smart phone, on which multiple operating systems are installed.

[0025] In step S110, a first synthesizer of a first operating system receives a display request from the first operating system. Here, the first operating system may be, for example, an Android system. The synthesizer of the Android system may receive a display request from an APP installed in the operating system, for example, a display request for a chat page submitted by a chat APP.

[0026] In step S120, the first synthesizer determines in user mode whether the first operating system is in the foreground. In step S130, when it is determined that the first operating system is in the foreground, the first synthesizer uses the frame buffer in the kernel mode to realize display on the screen.

[0027] The architecture of the operating system is divided into user state and kernel state. Kernel state (also known as the "kernel layer") controls the computer's hardware resources and provides an environment for the upper-level applications to run. User state corresponds to the activity space of the upper-level applications, and can also be called user space. The execution of applications (for example, client APPs) must rely on the resources provided by the kernel, including CPU resources, storage resources, I / O resources, etc. In order for upper-level applications to access these resources, the kernel must provide an access interface for upper-level applications: that is, system calls.

[0028] Here, the system synthesizer of the operating system is an upper-layer application used to synthesize the submitted content and submit it to the corresponding hardware display system (via the kernel layer) when, for example, the client APP submits complete display content. Different from the prior art that performs foreground and background judgment of the operating system at the kernel layer, the present invention moves the foreground and background judgment of the operating system to the user space, thereby avoiding unnecessary operations involving memory and hardware at the bottom layer.

[0029] Furthermore, for the second operating system as the background operating system, the display method of the present invention may also include: the second synthesizer of the second operating system receives a display request from the second operating system; the second synthesizer determines whether the second operating system is in the foreground in the user state; and when it is determined that the second operating system is in the background, no synthetic display operation is performed. Here, the second operating system may be AliOS, and include a synthesizer that comes with the system. In the display scheme of the present invention, when the client app in the system submits the complete display content, the synthesizer of each system will decide whether the client content needs to be synthesized and whether it needs to be submitted to the corresponding hardware display system based on whether the system to which it belongs is the foreground system. As a result, any synthetic display operation in the background can be directly avoided by making a determination in the user space, thereby further reducing system power consumption.

[0030] In the display scheme of the present application, there may also be a third or even more operating systems, and the present invention does not limit the number of operating systems. However, when three or more operating systems are installed in a mobile device, there can still be only one foreground operating system (and multiple background operating systems), and its operating principle is similar to that of a dual system. Therefore, the following still uses a dual system as an example to illustrate multiple systems. Here, "first", "second" and "third" are intended to distinguish different objects of the same type, rather than to make any implication of order or importance.

[0031] In the present application, the synthesizer of each operating system can judge whether the operating system to which it belongs is in the foreground according to various mechanisms. In one embodiment, the synthesizer can determine whether the operating system to which it belongs is in the foreground by checking the foreground identifier. To this end, S120 may include: the first synthesizer determines whether the first operating system is in the foreground by checking the foreground identifier. Correspondingly, the second synthesizer determines whether the second operating system is in the foreground in the user state, which may include the second synthesizer determining whether the second operating system is in the foreground by checking the foreground identifier. Here, the foreground identifier may be an identifier for indicating what operating system the current foreground operating system is. In one embodiment, the operating system name can be directly used as the foreground identifier. For example, when the first operating system (for example, Android system) is the foreground operating system, the foreground identifier may be Android or its abbreviation And. When the second operating system (for example, AliOS system) is currently the foreground operating system, the foreground identifier may be AliOS or its abbreviation Ali. In another embodiment, the foreground identifier can also be referred to by a code or a value of 0 and 1, and the present invention is not limited here. In order to facilitate the operating systems in the foreground and the background to easily obtain the foreground identifier, in one embodiment, the foreground identifier can be implemented as a global attribute, such as a global foreground attribute.

[0032] Further, judging whether the operating system is in the foreground by checking the foreground system identifier may also involve the system identifier. The system identifier may be retained by the system. For example, the first operating system retains its own first system identifier (for example, Android), and the second operating system retains its own second system identifier (for example, AliOS). In this way, each operating system needs to read or retain two identifiers, one system identifier is used to identify which system it belongs to, and the other foreground identifier is used to identify the current foreground system. Here, the system identifier can also be a global attribute, for example, a global system attribute. The two attributes of the system attribute and the foreground attribute can be used simultaneously to determine whether the system is currently a foreground system. Only when these two attribute values ​​are exactly the same, the system is a foreground system. In other words, the first synthesizer can read the first system identifier for identifying the first operating system and the foreground identifier for identifying the current foreground system, and by comparing whether the first system identifier is consistent with the foreground identifier, determine whether the first operating system is in the foreground. Similarly, the second synthesizer can read the second system identifier for identifying the second operating system and the foreground identifier for identifying the current foreground system, and by comparing whether the second system identifier is consistent with the foreground identifier, determine whether the second operating system is in the foreground.

[0033] In the dual-system solution, the first operating system and the second operating system share a kernel. Figure 2 The system architecture diagram of the dual operating systems installed in a mobile device is shown. As shown in the figure, operating systems 1 and 2 include an APP layer, an APP framework layer, and a system runtime layer in their respective user spaces, and the two systems share a kernel layer. Preferably, the first operating system and the second operating system each retain their own independent frame buffers in the kernel, so that when switching to the foreground, the content in the corresponding frame buffer can be directly used to send to the hardware display for display.

[0034] In addition, there is often a sync fence in the synthesizer, and the logic of the background and switching process must be correct, otherwise it is easy to cause fd (file descriptor) leakage, resulting in system instability. Therefore, in one embodiment, when it is determined that the second operating system is in the background, not performing the synthesized display operation may include: when it is determined that the second operating system is in the background, the second synthesizer refuses to process the display request from the second operating system. To this end, the synthesizer of the background operating system can directly refuse the display request to avoid the risk of system crash caused by fd leakage.

[0035] In the case of multiple operating systems installed, since multiple operating systems run independently and only one operating system can run in the foreground, a system switching function is required. Through the foreground application, the foreground system can be switched to the background, and the background system can be switched to the foreground for display. Therefore, in one embodiment, the display method of the present invention also includes: based on the user operation, switching the second operating system to the foreground display. Specifically, the second operating system can be switched to the foreground display based on the user's operation in the first operating system. For example, the user can click the corresponding switching icon in the first operating system as the foreground operating system to directly complete the switch from the first to the second operating system. Correspondingly, the user can click the corresponding switching icon in the second operating system as the foreground operating system to directly complete the switch from the second to the first operating system. In the case of multiple operating systems installed on the device, the switching page can be accessed based on the user's switching operation in the foreground system, and the user can select the operating system to be switched to the foreground.

[0036] like Figure 2As shown, the switching between operating systems can also be performed with the help of a switch that is independent of the two operating systems. Therefore, based on the user operation, switching the second operating system to the foreground display includes: based on the user operation, the first operating system notifies the switch to perform display switching; and the switch switches the second operating system to the foreground display. Here, the switch can be an independent root system. The root system is a system independent of the first and second operating systems, for example, an operating system with partial functions of root privileges.

[0037] In one embodiment, the switcher switching the second operating system to the foreground display may include: the switcher modifies the foreground identifier, changing the foreground identifier from the first operating system to the second operating system; the first synthesizer determines that the first operating system is not in the foreground according to the foreground identifier, and stops the display operation; and the second synthesizer determines that the second operating system is in the foreground according to the foreground identifier, and starts the display operation.

[0038] Specifically, the system switching application can run in two operating systems at the same time. Whenever the system is switched, the current foreground system is first processed as necessary to change the foreground attribute to another system, for example, switching from the first operating system to the second operating system. At this time, the first synthesizer will no longer submit its display content because it determines that the current system is not the foreground system, and the first operating system is in a very short frozen screen state. Subsequently, the switcher can switch the background system to the current active system by modifying the relevant file content, and then modify its foreground attribute in the new foreground system to the current system, so that the display content of the newly switched foreground system can be displayed normally.

[0039] In order to enable the system switching to be completed in real time, a new interface can be added to the synthesizer of the system. Through this interface, the system that has just switched to the foreground can be forced to resubmit the display request, thereby ensuring real-time switching. Specifically, the switcher switches the second operating system to the foreground display, including: the second synthesizer causes the second operating system to resubmit the display request; and based on the resubmitted display request, display is realized on the screen.

[0040] Therefore, through the coordination of switching applications, switches and global foreground properties within the system, the display method of the present invention can complete the display system switching at an extremely fast speed, for example, it can be completed within several vsync cycles.

[0041] In addition, in order to further reduce background operations, the first operating system can also be set to a locked screen state when the first operating system is switched to the background. To this end, the display request of the background system will become less, until it is reduced to zero in the off-screen state.

[0042] In another embodiment, a new encapsulation layer may be added to the kernel layer to uniformly process the operations sent by the system synthesizer and display the contents of the system to be displayed on the screen.

[0043] Figure 3 An example of a dual-system display solution according to the present invention is shown. As shown in the figure, in the user spaces separated from each other by operating systems 1 and 2, the respective applications of the systems (e.g., app1 and 2) submit display requests to their respective synthesizers. The synthesizer directly determines (e.g., based on the foreground attributes) in the user space whether the system is currently the foreground system. If so, the frame buffer in the kernel layer is used to display the hardware display screen. If not, the received display request is not processed. When the system switches, operating systems 1 and 2 can exchange foreground and background identities and operate based on the switched identities. Thus, by performing judgment bifurcation in the user space, the dual-system display virtualization problem can be solved more directly and with less modification, and the logic is consistent with the switching, and no modification at the kernel layer is required.

[0044] Combination of the above Figure 1-3 The display method for multiple operating systems according to the present invention is described. Compared with the mobile dual-system solution that performs display virtualization at the bottom layer, the present invention performs multi-system display virtualization in the user space rather than internally.

[0045] Since the modification of the display part of the kernel layer often requires the support of the manufacturer to be stable and reliable, and various technical solutions such as drm, adf, fb, etc. require specialized modification and support, the multi-system display virtualization implemented in the user space in the present invention can not only avoid the many inconveniences caused by the underlying implementation, but also improve the transplantation capability of this solution to various mobile platforms, and since the background system does not perform any synthesis operations, the system power consumption is also fully guaranteed. Furthermore, the display method of the present invention can also achieve extremely efficient system switching by introducing a global foreground identifier and a switcher that can be implemented as a root system.

[0046] Figure 4A schematic diagram of the composition of a display device with multiple operating systems installed according to an embodiment of the present invention is shown. As shown in the figure, a display device 400 is installed with multiple operating systems 410 and a switch 420 for switching operating systems. The multiple operating systems are, for example, the first operating system and the second operating system shown in the figure. The first operating system includes: a first synthesizer, which is used to: receive a display request from the first operating system; determine whether the first operating system is in the foreground in the user state; and when it is determined that the first operating system is in the foreground, use the frame buffer in the kernel state to realize display on the screen of the device. The second operating system includes: a second synthesizer, which is used to: receive a display request from the second operating system; determine whether the second operating system is in the foreground in the user state; and when it is determined that the second operating system is in the background, do not perform a synthesized display operation.

[0047] The first synthesizer and the second synthesizer can determine whether the operating system to which they belong is in the foreground by checking the foreground flag as a global attribute. Specifically, the first synthesizer and the second synthesizer read the foreground flag and the system flag that identifies the operating system to which they belong, and determine whether the operating system to which they belong is in the foreground by comparing the system flag with the foreground flag.

[0048] In one embodiment, the first operating system and the second operating system share a kernel, and the first operating system and the second operating system respectively maintain independent frame buffers in the kernel.

[0049] When it is determined that the second operating system is in the background, the second compositor may refuse to process the display request from the second operating system.

[0050] In order to cope with the switching, the first operating system and the second operating system may include a switching application for switching the foreground and background displays under the operation of the user.

[0051] Specifically, the display device 400 may also be installed with a root system as a switcher, and the switcher switches the foreground and background displays of the operating system based on the user's operation on switching applications.

[0052] Based on the user's operation on switching applications, the switcher 420 can be further used to: modify the foreground flag, change the foreground flag from the first operating system to the second operating system, and the first synthesizer determines that the first operating system is not in the foreground according to the foreground flag, and stops the display operation, and the second synthesizer determines that the second operating system is in the foreground according to the foreground flag, and starts the display operation.

[0053] The second compositor includes a resubmission interface, which is used to enable the second operating system to resubmit the display request, and the second compositor implements display on the screen based on the resubmitted display request.

[0054] The switch 420 may also be used to: when the first operating system is switched to the background, set the first operating system to a lock screen state.

[0055] Figure 5 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned display method for multiple operating systems according to an embodiment of the present invention is shown.

[0056] See also Figure 5 , the computing device 500 includes a memory 510 and a processor 520 .

[0057] The processor 520 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 1020 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 520 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0058] The memory 510 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 520 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at runtime. In addition, the memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 510 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0059] The memory 510 stores executable codes. When the executable codes are processed by the processor 520 , the processor 520 can execute the display method for multiple operating systems mentioned above.

[0060] The display method and display device for multiple operating systems according to the present invention have been described in detail above with reference to the accompanying drawings. The display method and device for multiple operating systems of the present invention perform dual-system display virtualization in user space rather than in the kernel layer, so that the above virtualization does not need to rely on the underlying display system implementation, and can be more universally moved to various mobile device platforms. Furthermore, the display scheme of the present invention can achieve extremely efficient system switching by introducing a global foreground identifier and a switcher that can be implemented as a root system, and since the background system does not perform any synthesis operations, the system power consumption is also fully guaranteed.

[0061] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.

[0062] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.

[0063] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.

[0064] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0065] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A display method for multiple operating systems, characterized in that: include: A first synthesizer of a first operating system receives a display request from the first operating system; The first synthesizer determines, in user mode, whether the first operating system is in the foreground; as well as When it is determined that the first operating system is in the foreground, the first synthesizer uses the frame buffer in the kernel state to realize display on the screen; A second synthesizer of a second operating system receives a display request from the second operating system; The second synthesizer determines, in user mode, whether the second operating system is in the foreground; as well as When it is determined that the second operating system is in the background, no synthetic display operation is performed; Among them, the first operating system and the second operating system share a kernel, and the first operating system and the second operating system respectively have their own independent frame buffers in the kernel; the synthesizer of the operating system is used to synthesize the submitted content when the client APP submits complete display content, and submit it to the upper-level application of the corresponding hardware display system.

2. The method according to claim 1, characterized in that in, The first synthesizer determines in the user state whether the first operating system is in the foreground, including: The first synthesizer determines whether the first operating system is in the foreground by checking the foreground flag.

3. The method according to claim 2, characterized in that in, The first synthesizer determines whether the first operating system is in the foreground by checking the foreground flag, including: The first synthesizer reads a first system identifier for identifying the first operating system and a foreground identifier for identifying a current foreground system; and By comparing the first system identifier with the foreground identifier, it is determined whether the first operating system is in the foreground.

4. The method according to claim 1, characterized in that in, When it is determined that the second operating system is in the background, not performing the synthetic display operation includes: When it is determined that the second operating system is in the background, the second compositor refuses to process the display request from the second operating system.

5. The method according to claim 1, characterized in that Also includes: Based on user operation, the second operating system is switched to the foreground display.

6. The method according to claim 5, characterized in that in, Based on the user operation, switching the second operating system to the foreground display includes: Based on the user's operation in the first operating system, the second operating system is switched to the foreground display.

7. The method according to claim 5, characterized in that in, Based on the user operation, switching the second operating system to the foreground display includes: Based on the user operation, the first operating system notifies the switcher to perform display switching; and The switch switches the second operating system to the foreground display.

8. The method according to claim 7, characterized in that in, The switcher switches the second operating system to the foreground display, including: The switch modifies the foreground identifier, changing the foreground identifier from the first operating system to the second operating system; The first synthesizer determines, according to the foreground identifier, that the first operating system is not in the foreground, and stops the display operation; and The second synthesizer determines that the second operating system is in the foreground according to the foreground identifier and starts a display operation.

9. The method according to claim 7, characterized in that in, The switcher switches the second operating system to the foreground display, including: The second compositor causes the second operating system to resubmit a display request; and Based on the resubmitted display request, display is achieved on the screen.

10. The method according to claim 7, characterized in that in, The switcher is a root system.

11. The method according to claim 5, characterized in that Also includes: When the first operating system is switched to the background, the first operating system is set to a lock screen state.

12. A display device, characterized in that: The display device is installed with multiple operating systems, the multiple operating systems include a first operating system and a second operating system, the first operating system and the second operating system share a kernel, the first operating system and the second operating system respectively have independent frame buffers in the kernel, wherein: The first operating system includes: The first synthesizer for: receiving a display request from the first operating system; Determining in user mode whether the first operating system is in the foreground, wherein the step further includes synthesizing the content of the determination and submitting it to an upper layer application; and When it is determined that the first operating system is in the foreground, display is performed on the screen of the display device using a kernel-mode frame buffer, and The second operating system includes: Second synthesizer for: receiving a display request from the second operating system; Determining in user mode whether the second operating system is in the foreground; and When it is determined that the second operating system is in the background, no synthetic display operation is performed; Among them, the synthesizer of the operating system is used to synthesize the submitted content when the client APP submits the complete display content, and submit it to the upper-level application of the corresponding hardware display system.

13. The display device according to claim 12, characterized in that in, The first synthesizer and the second synthesizer determine whether their respective operating systems are in the foreground by checking the foreground flag as a global attribute.

14. The display device according to claim 13, characterized in that in, The first synthesizer and the second synthesizer read the foreground identifier and the system identifier of the operating system to which they belong, and determine whether the operating system to which they belong is in the foreground by comparing the system identifier with the foreground identifier.

15. The display device according to claim 12, characterized in that in, When it is determined that the second operating system is in the background, the second compositor refuses to process the display request from the second operating system.

16. The display device according to claim 12, characterized in that in, The first operating system and the second operating system each include a switching application for switching the foreground and background displays under the operation of the user.

17. The display device according to claim 16, characterized in that in, The display device is also installed with a root system as a switcher, and the switcher switches the foreground and background displays of the operating system based on the user's operation on switching applications.

18. The display device according to claim 17, characterized in that in, Based on the user's operation on switching applications, the switch is further used to: modifying the foreground identification from the first operating system to the second operating system, and The first synthesizer determines that the first operating system is not in the foreground according to the foreground identifier, and stops the display operation. The second synthesizer determines that the second operating system is in the foreground according to the foreground identifier and starts a display operation.

19. The display device according to claim 18, characterized in that in, The second compositor includes a resubmission interface for causing the second operating system to resubmit a display request, and The second synthesizer realizes display on the screen based on the resubmitted display request.

20. The display device according to claim 17, wherein: in, The switch is further used to: When the first operating system is switched to the background, the first operating system is set to a lock screen state.

21. A computing device, characterized in that include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 11.

22. A non-transitory machine-readable storage medium, characterized in that An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as claimed in any one of claims 1 to 11.