WO2016127504A1 - 一种多操作系统运行方法、装置及终端 - Google Patents

一种多操作系统运行方法、装置及终端 Download PDF

Info

Publication number
WO2016127504A1
WO2016127504A1 PCT/CN2015/078076 CN2015078076W WO2016127504A1 WO 2016127504 A1 WO2016127504 A1 WO 2016127504A1 CN 2015078076 W CN2015078076 W CN 2015078076W WO 2016127504 A1 WO2016127504 A1 WO 2016127504A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
memory
cpu
user
operating
Prior art date
Application number
PCT/CN2015/078076
Other languages
English (en)
French (fr)
Inventor
贺晨辉
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2016127504A1 publication Critical patent/WO2016127504A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a multi-operating system operating method, apparatus, and terminal.
  • the existing dual operating system is mainly equipped with two operating systems, such as a standard domain system (Personal Private Domain, PPD system) and a secure domain system (SED system), and FIG. 1 is a prior art.
  • the structure diagram of the operating system of the terminal is as shown in FIG. 1.
  • the operating system can use all hardware resources independently, such as: CPU computing power, memory access and peripheral usage.
  • the original operating system must be stopped, and all the hardware resources are used independently by the newly switched operating system.
  • the current hardware resources are very powerful, the CPU can be multi-core, and the memory resources are also very rich. If only one operating system monopolizes all the hardware resources, and the other operating system does not wait for the resources to run, it will cause waste of resources. .
  • the present invention provides a multi-operating system operating method, apparatus, and terminal for solving the problem of waste of resources caused by the terminal exclusively using all hardware resources by one operating system in the prior art.
  • the present invention provides a multi-operating system operating method, including:
  • the first operating system is running, after receiving a request from the user to run the second operating system,
  • the second operating system is configured, wherein the first operating system and the second operating system respectively correspond to different CPUs and memories.
  • the CPU and the memory are respectively allocated to the CPU and the memory of the first operating system and the second operating system according to historical usage records of respective operating systems.
  • the first operating system acquires the CPU and/or memory of the second operating system, and passes its own and reacquired CPU and / or memory to complete the task assigned by the user.
  • the step of the first operating system acquiring the CPU and/or the memory of the other operating system specifically includes:
  • the first operating system sends an acquisition request to the second operating system, where the obtaining request carries information about acquiring a CPU and/or a memory of the second operating system, and receiving the second operating system. After allowing the shared information, a connection is established with the CPU and/or memory of the second operating system.
  • the method further comprises:
  • the first operating system and the second operating system respectively perform anti-sharing settings on their own memory.
  • the present invention further provides a multi-operating system operating device, including: a first processing unit disposed in a first operating system, and a second processing unit disposed in a second operating system;
  • the first processing unit is configured to run the first operating system
  • the second processing unit is configured to: after receiving a request from the user to run the second operating system, run the second operating system;
  • the first operating system and the second operating system respectively correspond to different CPUs and memories.
  • the first processing unit is configured to: when the task quantity of the first operating system is greater than a preset threshold, trigger the first operating system to acquire a CPU and/or a memory of the second operating system, And through the user's own and re-acquired CPU and / or memory to complete the tasks assigned by the user.
  • the first processing unit is configured to: when the task quantity of the first operating system is greater than a preset threshold, triggering the first operating system to send an acquisition request to the second operating system, where the acquiring The request carries the information of acquiring the CPU and/or the memory of the second operating system, and after receiving the information of the second operating system that is allowed to be shared, the CPU and/or the memory of the second operating system Establishing a connection and triggering the first operating system to complete the task assigned by the user through its own and reacquired CPU and/or memory.
  • the first processing unit and the second processing unit are further configured to perform anti-sharing setting on a memory in the corresponding operating system.
  • the present invention provides a terminal, including a first processor and a first memory disposed in a first operating system, and a second processor and a second memory disposed in the second operating system, wherein :
  • the first processor is configured to run the first operating system
  • the second processor is configured to run the second operating system after receiving a request from the user to run the second operating system.
  • the first processor is specifically configured to:
  • the first processor is specifically configured to:
  • the first operating system When the task quantity of the first operating system is greater than a preset threshold, the first operating system is triggered to send an acquisition request to the second operating system, where the obtaining request carries a CPU that acquires the second operating system. And/or information of the memory, and after receiving the information allowed by the second operating system, establishing a connection with the CPU and/or the memory of the second operating system, and triggering the first operating system to pass the The user and the re-acquired CPU and/or memory work together to complete the tasks assigned by the user.
  • the first processor and the second processor are both used to:
  • the anti-sharing setting is performed on the first memory and the second memory in the corresponding operating system.
  • the invention allocates the CPU and the memory on the terminal to each operating system in advance, and after receiving the tasks assigned by the user in each operating system, the operating systems respectively complete the tasks assigned by the user through the respective allocated CPUs and memories. That is, the multiple operating systems of the present invention can be operated in parallel, and the hardware resources of the terminal can be more fully utilized, thereby greatly improving the user experience.
  • FIG. 1 is a schematic structural diagram of an operating system of a terminal in the prior art
  • FIG. 2 is a flowchart of a parallel operation method of multiple operating systems in an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an operating system of a terminal in an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a multi-operating system parallel running device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the present invention provides a multi-operating system parallel operation method, device and terminal, which are combined with the following figures and several implementations.
  • the present invention will be described in further detail. It should be understood that The specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • the embodiment of the invention provides a multi-operating system operating method, including:
  • the first operating system After the first operating system is running, after receiving the request from the user to run the second operating system, running the second operating system, where the first operating system and the second operating system respectively correspond to different CPUs and RAM.
  • each operating system of the present invention completes the tasks assigned by the users through respective pre-allocated CPUs and/or memories.
  • the multiple operating systems of the present invention can be operated in parallel, and the hardware resources of the terminal can be more fully utilized, thereby greatly improving the user experience.
  • the user can download files or listen to songs in one of the operating systems, and perform operations such as making calls through another operating system, and the two run in parallel without affecting each other.
  • the user opens the first operating system, triggers the first operating system to run the first task, and then opens the second operating system, and triggers the second operating system to run the second task.
  • the tasks described in the embodiments of the present invention include: downloading data, listening to songs, editing documents, surfing the Internet, and the like.
  • FIG. 2 is a flowchart of a parallel operation method of multiple operating systems in an embodiment of the present invention. The specific implementation of the method according to the embodiment of the present invention will be explained and illustrated in detail below with reference to FIG. 2:
  • the CPU and the memory of the terminal are respectively allocated to the first operating system and the second operating system.
  • the first operating system and the second operating system respectively complete tasks assigned by the user through respective allocated CPUs and/or memories.
  • the operating system described in the embodiment of the present invention includes a standard domain system (Personal Private Domain, PPD system) and a security domain system (SED system).
  • PPD system Personal Private Domain
  • SED system security domain system
  • the CPU and the memory of the terminal are respectively in accordance with respective operating systems.
  • the historical usage record is assigned to each operating system separately. For example, according to the history record of the terminal, the probability of the user using the standard domain system is high, and the security domain system is only used when dialing individual confidential phones, which will be large. Part of the CPU and memory are allocated to the standard domain system. In specific use, the user can dial individual confidential telephones through the secure domain system while downloading files or listening to songs in the standard domain system. Of course, those skilled in the art can also specifically allocate the CPU and memory of the terminal according to the actual needs of the user, and the like.
  • the method according to the embodiment of the present invention further provides the following preferred embodiments: real-time adjustment of the allocated CPU and memory according to the current specific use of the terminal or according to the user's usage requirements;
  • the second operating system CPU and memory allocated to the second operating system are still relatively large, and the hardware resources of the first operating system are insufficient (for example, the performance of the first operating system is very slow, etc.). Then, the second operating system CPU and memory are reassigned to the first operating system to better meet the needs of the user.
  • the embodiment of the present invention further provides the following preferred method, when the task quantity of the first operating system is greater than a preset threshold, the first operating system acquires the CPU and/or memory of the second operating system, and passes the Its own and reacquired CPU and / or memory together complete the tasks assigned by the user.
  • the pre-defined download can only be performed by the first operating system, and the download amount is large at a time, and then the first operating system can be triggered to acquire the CPU and/or memory of the second operating system, and pass the first The operating system's own and reacquired CPU and/or memory work together to complete the tasks assigned by the user.
  • the first operating system when the task quantity of the first operating system is greater than the preset threshold, when the CPU and the memory need to be exclusively processed, the first operating system sends an acquisition request to the second operating system, and when the terminal is provided with multiple In the operating system, the first operating system may also choose to simultaneously send an acquisition request to the other one or more operating systems, where the acquisition request carries information about obtaining the CPU and/or memory of the requested operating system, and receives the information. After the requested operating system's allowed sharing of information, with the requested The CPU and/or memory of the operating system establishes a connection, and the corresponding tasks are completed by the operating system itself and the reacquired CPU and/or memory with a task amount greater than a preset threshold.
  • the present invention sends an acquisition request to a virtual machine of another operating system by a virtual machine of an operating system whose task amount is greater than a preset threshold, and obtains the CPU and information after obtaining the information allowed by the virtual machine of the requested system. / or memory.
  • the embodiment of the present invention restricts the use of the memory by other operating systems by performing anti-sharing settings on all or part of the memory that cannot be shared. Thereby improving the security of the terminal.
  • the present invention can perform anti-sharing setting on a memory that cannot be shared by setting a password or the like.
  • those skilled in the art can also perform anti-sharing setting on a memory that cannot be shared by other means.
  • FIG. 3 is a schematic structural diagram of an operating system of a terminal in an embodiment of the present invention, and the method according to the present invention is explained and illustrated in detail below with reference to FIG. 3:
  • the terminal Assume that there are two operating systems on the terminal, namely, the first operating system OS1 (Operating System) and the second operating system OS2, and the four core CPUs are core 1, core 2, core 3, and core 4. There are also two separate memories, namely memory 1 and memory 2;
  • CPU core 1 and core 2 memory 1 only support the operation of the process in OS1, that is, when the user enters the OS1 mode, OS1 can only use the core 1 and core 2 of the CPU, and can only use the memory 1 for reading and writing;
  • OS2 when the user enters the OS2 mode, OS2 can only use the core 3 and core 4 of the CPU, and can only use the memory 2 for reading and writing;
  • OS1 When OS1 needs to use core 3 and core 4, or memory 2, virtual machine 1 of OS1 needs to interact with virtual machine 2 of OS2. After obtaining the permission, OS1 can acquire the usage rights of core 3 and core 4 and memory 2.
  • the OS1 needs to send an acquisition request to the OS2, where the acquisition request carries the acquisition OS2.
  • CPU and / or memory information and after receiving the OS2's allowed shared information, establish a connection with OS2's core 3, core 4 and memory, and pass core 1, core 2, core 3 and core 4, and memory 1 and memory 2 complete the corresponding operation.
  • the software virtual layer function of the present invention shields the underlying differences, provides independent conditions for the operation of the operating system, and provides an interactive mechanism to apply for resources of another operating system.
  • An embodiment of the present invention provides a multi-operating system operating device. Referring to FIG. 4, a first processing unit disposed in a first operating system, and a second processing unit disposed in a second operating system;
  • the first processing unit is configured to run the first operating system
  • the second processing unit is configured to: after receiving a request from the user to run the second operating system, run the second operating system;
  • the first operating system and the second operating system respectively correspond to different CPUs and memories.
  • the device of the invention can enable multiple operating systems to run in parallel, thereby fully utilizing the hardware resources of the terminal and greatly improving the user experience. For example, the user can download files or listen to songs in one of the operating systems, and pass the Another operating system performs operations such as making a call, and the two operate in parallel without affecting each other.
  • the first processing unit of the embodiment of the present invention is disposed in the first virtual machine of the first operating system of the terminal, and the second processing unit is disposed in the second virtual machine of the second operating system of the terminal.
  • the operating system described in the embodiment of the present invention includes: a standard domain system (Personal Private Domain, PPD system and Secure Enterprise Domain (SED system), of course, can also include other operating systems that can be set on the terminal.
  • a standard domain system Personal Private Domain, PPD system and Secure Enterprise Domain (SED system)
  • PPD system Personal Private Domain
  • SED system Secure Enterprise Domain
  • the apparatus according to the present invention will be mainly analyzed by the first processing unit, but those skilled in the art will know that the functions of the first processing unit and the second processing unit of the present invention are the same, and all of the first processing units are The function, the second processing unit also has correspondingly.
  • the first processing unit of the embodiment of the present invention is specifically configured to: when the task quantity of the first operating system is greater than a preset threshold, triggering the first operating system to acquire the CPU of the second operating system and/or Or memory, and through the user and re-acquired CPU and / or memory to complete the task assigned by the user.
  • the operating system with the task quantity greater than the preset threshold sends an acquisition request to any one or more operating systems.
  • the acquisition request carries information about obtaining the CPU and/or memory of the requested operating system, and after receiving the information of the permitted operating system of the requested operating system, with the CPU and/or memory of the requested operating system.
  • a connection is established, and the corresponding task is completed by the operating system itself and the reacquired CPU and/or memory with a task amount greater than a preset threshold.
  • the first processing unit and the second processing unit of the device in the embodiment of the present invention are further configured to perform anti-sharing setting on the memory in the corresponding operating system. That is, in order to solve the problem that the operating system has the same permission to access the hardware resources in the prior art, the embodiment of the present invention restricts the use of other operating systems by setting anti-sharing settings for all or part of the memory that cannot be shared. This memory improves the security of the terminal.
  • the present invention can perform anti-sharing setting on a memory that cannot be shared by setting a password or the like.
  • those skilled in the art can also perform anti-sharing setting on a memory that cannot be shared by other means.
  • the virtual machine in the embodiment of the present invention may further be provided with an allocation unit and an adjustment unit, and the CPU and the memory of the terminal are separately allocated according to the historical usage records of the operating systems by the distribution unit.
  • an allocation unit and an adjustment unit To each operating system. For example, users have more chances to use a standard domain system, while a secure domain system only uses when dialing individual classified phones. Most CPU and memory are allocated to the standard domain system. When used, users can download in the standard domain system. At the same time as the file or listening to the song, dial a separate confidential phone through the secure domain system. And adjusting the CPU and memory allocated by the allocation unit in real time according to the current specific usage of the terminal by the adjustment unit.
  • the second operating system CPU and memory allocated to the second operating system are still relatively large, and the first The hardware resources of the operating system are insufficient (such as the performance of the first operating system is very slow, etc.), then the second operating system CPU and memory are reassigned to the first operating system to better meet the needs of users. .
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal 5 may include at least: a first processor 51, a second processor 52, at least one communication bus 53, a first memory 54 and a second memory 55; a communication bus 52 for implementing connection communication between these components; the first memory 54 and the second memory 55 may be high speed RAM memories, It can also be a non-volatile memory, such as at least one disk storage;
  • the first memory 54 stores a set of program codes, and the first processor 51 is configured to call the program code stored in the first memory 54 to run the first operating system:
  • the second memory 55 stores a set of program codes
  • the second processor 52 is configured to call the program code stored in the second memory 55, and after receiving the request from the user to run the second operating system, The second operating system.
  • the first processor 51 is specifically configured to: when the task quantity of the first operating system is greater than a preset threshold, trigger the first operating system to acquire a CPU and/or a memory of the second operating system, And through the user's own and re-acquired CPU and / or memory to complete the tasks assigned by the user.
  • first processor 51 may be specifically configured to:
  • the first operating system When the task quantity of the first operating system is greater than a preset threshold, the first operating system is triggered to send an acquisition request to the second operating system, where the obtaining request carries a CPU that acquires the second operating system. And/or information of the memory, and after receiving the information allowed by the second operating system, establishing a connection with the CPU and/or the memory of the second operating system, and triggering the first operating system to pass the The user and the re-acquired CPU and/or memory work together to complete the tasks assigned by the user.
  • first processor 51 and the second processor 52 are both configured to perform anti-sharing settings on the first memory 54 and the second memory 55 in their respective operating systems.
  • the multiple operating systems of the present invention can be operated in parallel, and the hardware resources of the terminal can be more fully utilized, thereby greatly improving the user experience;
  • the present invention performs anti-sharing settings for memory that cannot be shared, and can effectively ensure the security of the terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

本发明公开了一种多操作系统运行方法、装置及终端,包括:第一操作系统运行中,接收到来自用户的运行第二操作系统的请求后,运行所述第二操作系统,其中,所述第一操作系统与所述第二操作系统分别对应不同的CPU和内存。本发明的多个操作系统可并行运行,能够更充分的利用终端的硬件资源,从而大大提高用户的使用体验。

Description

一种多操作系统运行方法、装置及终端
本申请要求于2015年02月10日提交中国专利局,申请号为CN201510069739.2、发明名称为“一种多操作系统运行方法、装置及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通讯领域,特别是涉及一种多操作系统运行方法、装置及终端。
背景技术
现有的双操作系统主要是一台手机里面装了两个操作系统,如标准域系统(Personal Private Domain,PPD系统)和安全域系统(Secure Enterprise Domain,SED系统),图1是现有技术中终端的操作系统的结构示意图,通过图1可知,现有的手机中仅由一个操作系统独占使用所有的CPU、内存和外设等,具体来说,当切换进某一个操作系统时,该操作系统可以独立使用所有的硬件资源,如:CPU的运算能力、内存的访问和外设的使用等等。而当操作系统切换进另一操作系统时,原操作系统必须要停止运行,由新切换的操作系统独立使用所有的硬件资源。但目前硬件资源非常强大,CPU可以是多核的,内存资源也非常丰富,如果仅仅是一个操作系统独占使用所有的硬件资源,而另一操作系统却等不到资源来运行,就会造成资源浪费。
发明内容
本发明提供了一种多操作系统运行方法、装置及终端,用以解决现有技术中终端仅由一个操作系统独占使用所有的硬件资源而造成的资源浪费的问题。
一方面,本发明提供一种多操作系统运行方法,包括:
第一操作系统运行中,接收到来自用户的运行第二操作系统的请求后,运 行所述第二操作系统,其中,所述第一操作系统与所述第二操作系统分别对应不同的CPU和内存。
优选地,所述CPU和所述内存为预先按照各个操作系统的历史使用记录情况分别分配给所述第一操作系统和所述第二操作系统的CPU和内存。
优选地,当所述第一操作系统的任务量大于预设阈值时,所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
优选地,所述第一操作系统获取其他操作系统的CPU和/或内存的步骤具体包括:
所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求内携带有获取所述第二操作系统的CPU和/或内存的信息,并在收到所述第二操作系统的允许共享的信息后,与所述第二操作系统的CPU和/或内存建立连接。
优选地,该方法还包括:
所述第一操作系统和所述第二操作系统分别将其自身的内存进行防共享设置。
另一方面,本发明还提供了一种多操作系统运行装置,包括:设置在第一操作系统中的第一处理单元,以及设置在第二操作系统中的第二处理单元;
所述第一处理单元,用于运行所述第一操作系统;
所述第二处理单元,用于接收到来自用户的运行所述第二操作系统的请求后,运行所述第二操作系统;
其中,所述第一操作系统与所述第二操作系统分别对应不同的CPU和内存。
优选地,所述第一处理单元具体用于,当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
优选地,所述第一处理单元具体用于,当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求内携带有获取所述第二操作系统的CPU和/或内存的信息,并在收到所述第二操作系统的允许共享的信息后,与所述第二操作系统的CPU和/或内存建立连接,并触发所述第一操作系统通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
优选地,所述第一处理单元和所述第二处理单元还用于,对其相应操作系统内的内存进行防共享设置。
再一方面,本发明还提供了一种终端,包括设置在第一操作系统中的第一处理器和第一存储器,以及设置在第二操作系统中的第二处理器和第二存储器,其中:
所述第一处理器,用于运行所述第一操作系统;
所述第二处理器,用于接收到来自用户的运行所述第二操作系统的请求后,运行所述第二操作系统。
其中,所述第一处理器具体用于:
当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
其中,所述第一处理器具体用于:
当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求内携带有获取所述第二操作系统的CPU和/或内存的信息,并在收到所述第二操作系统的允许共享的信息后,与所述第二操作系统的CPU和/或内存建立连接,并触发所述第一操作系统通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
优选地,所述第一处理器和所述第二处理器还均用于:
对其相应操作系统内的第一存储器和第二存储器进行防共享设置。
本发明有益效果如下:
本发明通过预先将终端上的CPU和内存分别分配给各个操作系统,并在各个操作系统接收到用户下达的任务后,由各个操作系统分别通过各自分配的CPU和内存完成用户下达的任务。即,本发明的多个操作系统可并行运行,能够更充分的利用终端的硬件资源,从而大大提高用户的使用体验。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1是现有技术中终端的操作系统的结构示意图;
图2是本发明实施例中一种多操作系统并行运行方法的流程图;
图3是本发明实施例中终端的操作系统的结构示意图;
图4是本发明实施例中一种多操作系统并行运行装置的结构示意图;
图5是本发明实施例中一种终端的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
为了解决现有技术终端仅由一个操作系统独占使用所有的硬件资源而造成的资源浪费的问题,本发明提供了一种多操作系统并行运行方法、装置及终端,以下结合附图以及几个实施例,对本发明进行进一步详细说明。应当理解, 此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。
方法实施例
本发明实施例提供了一种多操作系统运行方法,包括:
第一操作系统运行中,接收到来自用户的运行第二操作系统的请求后,运行所述第二操作系统,其中,所述第一操作系统与所述第二操作系统分别对应不同的CPU和内存。
即,本发明的各个操作系统在接收到用户下达的任务后,分别通过各自预分配的CPU和/或内存完成用户下达的任务。
本发明的多个操作系统可并行运行,能够更充分的利用终端的硬件资源,从而大大提高用户的使用体验。
如,用户可以在其中一个操作系统下载文件或听歌,并通过另一个操作系统进行拨打电话等操作,二者并行运行,互不影响。
具体实施时,用户通过打开第一操作系统,并触发第一操作系统运行第一任务,然后再打开第二操作系统,并触发第二操作系统运行第二任务。
本发明实施例所述的任务包括:下载数据、听歌、文档编辑以及上网等等。
图2是本发明实施例中一种多操作系统并行运行方法的流程图,下面将结合图2对本发明实施例所述的方法的具体实施情况进行详细的解释和说明:
S101、将终端的CPU和内存分别分配到第一操作系统和第二操作系统;
S102、第一操作系统和第二操作系统在接收到用户下达的任务后,分别通过各自分配的CPU和/或内存完成用户下达的任务。
本发明实施例中所述的操作系统包括标准域系统(Personal Private Domain,PPD系统)和安全域系统(Secure Enterprise Domain,SED系统),当然本领域的技术人员也可以根据实际需要在终端上设置其他的操作系统,并利用本发明所述的方法实现终端上的多个操作系统的并行运行。
具体来说,本发明实施例是将终端的CPU和内存分别按照各个操作系统 的历史使用记录情况分别分配到各个操作系统,例如:根据终端的历史使用时记录显示,用户使用标准域系统的几率多,而安全域系统仅在拨打个别涉密电话时才使用,则将大部分的CPU和内存分配给标准域系统,具体使用时,用户可以在标准域系统下载文件或听歌的同时,通过安全域系统拨打个别涉密电话。当然本领域的技术人员也可以根据用户的实际需求来具体分配终端的CPU和内存,等等。
本发明实施例所述的方法还提供了以下的优选实施方式:根据终端当前的具体使用情况或是根据用户的使用需求对分配后的CPU和内存进行实时调整;
如,实际使用过程中,发现预先分配给第二操作系统的CPU和内存还是比较多,而第一操作系统的硬件资源又不足(如表现为第一操作系统实际运行的速度很慢等),则将第二操作系统CPU和内存再分配给第一操作系统一些,以更好的满足用户的需求。
本发明实施例还提供了以下的优选方法,当所述第一操作系统的任务量大于预设阈值时,所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
如,预先定义的只能通过第一操作系统进行下载,并且一次的下载量很大,这时就可以触发第一操作系统获取所述第二操作系统的CPU和/或内存,并通过第一操作系统自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
具体来说,本发明实施例在第一操作系统的任务量大于预设阈值时,需要独占CPU和内存进行处理时,由第一操作系统向第二操作系统发送获取请求,当终端设有多个操作系统时,第一操作系统还可选择向其他一个或多个操作系统同时发送获取请求,该获取请求内携带有获取被请求的操作系统的CPU和/或内存的信息,并在收到被请求的操作系统的允许共享的信息后,与被请求的 操作系统的CPU和/或内存建立连接,并通过任务量大于预设阈值的操作系统自身的和重新获取的CPU和/或内存共同完成相应的任务。
具体实施时,本发明是由任务量大于预设阈值的操作系统的虚拟机向其他操作系统的虚拟机发送获取请求,并在得到被请求系统的虚拟机允许共享的信息后,获取其CPU和/或内存。
为了解决现有技术中操作系统同等权限访问硬件资源所带来的不安全性的问题,本发明实施例通过将不能共享的整个或部分内存进行防共享设置,以限制其他操作系统使用该内存,从而提高了终端的安全性。
具体实施时,本发明可以通过设置密码等方式对不能被共享的内存进行防共享设置,当然本领域的技术人员也可以通过其他的方式对不能被共享的内存进行防共享设置。
图3是本发明实施例中终端的操作系统的结构示意图,下面结合图3对本发明所述的方法进行详细的解释和说明:
假设终端上有两个操作系统,分别是第一操作系统OS1(Operating System,操作系统)和第二操作系统OS2,4个核的CPU,分别是核1、核2、核3和核4,还有两块独立的内存,分别是内存1和内存2;
CPU的核1和核2,内存1,只支持OS1中进程的运行,即当用户进入OS1的模式时,OS1只能使用到CPU的核1和核2,只能使用内存1进行读写;
相应的,当用户进入OS2的模式时,OS2只能使用到CPU的核3和核4,并只能使用内存2进行读写;
当OS1需要使用核3和核4,或者内存2时,OS1的虚拟机1需要与OS2的虚拟机2进行交互,取得权限后,OS1才能获取核3和核4以及内存2的使用权。
具体的,OS1需要向OS2发送获取请求,所述获取请求内携带有获取OS2 的CPU和/或内存的信息,并在收到OS2的允许共享的信息后,与OS2的核3、核4和内存建立连接,并通过核1、核2、核3和核4,以及内存1和内存2完成相应的操作。
本发明的软件虚拟层作用是屏蔽掉底层差异,为操作系统的运行提供独立的条件,并且提供一种交互机制来申请取得另一个操作系统的资源。
本发明所述的方法中OS1和OS2中的各种作业可以同时运行,不相互影响,从而充分利用了终端的硬件资源,并且本发明在单一个操作系统的任务量比较大,还可以获取其他操作系统的CPU或内存资源进行处理,且获取其他操作系统的CPU或内存资源时,需要与另一个操作系统进行交互,取得权限后才能使用,从而有效保证了整个终端的安全性。
装置实施例
本发明实施例提供了一种多操作系统运行装置,参见图4,设置在第一操作系统中的第一处理单元,以及设置在第二操作系统中的第二处理单元;
所述第一处理单元,用于运行所述第一操作系统;
所述第二处理单元,用于接收到来自用户的运行所述第二操作系统的请求后,运行所述第二操作系统;
其中,所述第一操作系统与所述第二操作系统分别对应不同的CPU和内存。
本发明所述的装置能够使多个操作系统可并行运行,从而更充分的利用终端的硬件资源,大大提高用户的使用体验,如,用户可以在其中一个操作系统下载文件或听歌,并通过另一个操作系统进行拨打电话等操作,二者并行运行,互不影响。
具体实施时,本发明实施例的第一处理单元设置在终端的第一操作系统的第一虚拟机内,第二处理单元设置在终端的第二操作系统的第二虚拟机内
本发明实施例所述的操作系统包括:标准域系统(Personal Private  Domain,PPD系统)和安全域系统(Secure Enterprise Domain,SED系统),当然也可以包括其他可设置在终端上的操作系统。
下面将主要以第一处理单元对本发明所述的装置进行分析,但本领域的技术人员能够知晓,本发明的第一处理单元和第二处理单元的功能是相同的,第一处理单元所有的功能,第二处理单元相应也都具有。
其中,本发明实施例所述第一处理单元具体用于,当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
具体实施时,在任一个操作系统的任务量大于预设阈值,比较大,需要独占CPU和内存进行处理时,由任务量大于预设阈值的操作系统向其他任一个或多个操作系统发送获取请求,该获取请求内携带有获取被请求的操作系统的CPU和/或内存的信息,并在收到被请求的操作系统的允许共享的信息后,与被请求的操作系统的CPU和/或内存建立连接,并通过任务量大于预设阈值的操作系统自身的和重新获取的CPU和/或内存共同完成相应的任务。
本发明实施例所述的装置的第一处理单元和第二处理单元还用于,对相应操作系统内的内存进行防共享设置。即本发明为了解决现有技术中操作系统同等权限访问硬件资源所带来的不安全性的问题,本发明实施例通过将不能共享的整个或部分内存进行防共享设置,以限制其他操作系统使用该内存,从而提高了终端的安全性。
具体实施时,本发明可以通过设置密码等方式对不能被共享的内存进行防共享设置,当然本领域的技术人员也可以通过其他的方式对不能被共享的内存进行防共享设置。
本发明实施例中的虚拟机内还可设置有分配单元和调整单元,通过分配单元将终端的CPU和内存分别按照各个操作系统的历史使用记录情况分别分配 到各个操作系统。例如:用户使用标准域系统的几率多,而安全域系统仅在拨打个别涉密电话时才使用,则将大部分的CPU和内存分配给标准域系统,使用时,用户可以在标准域系统下载文件或听歌的同时,通过安全域系统拨打个别涉密电话。并通过调整单元根据终端当前的具体使用情况对分配单元分配后的CPU和内存进行实时调整,如,实际使用过程中,发现预先分配给第二操作系统的CPU和内存还是比较多,而第一操作系统的硬件资源又不足(如表现为第一操作系统实际运行的速度很慢等),则将第二操作系统CPU和内存再分配给第一操作系统一些,以更好的满足用户的需求。
本发明装置实施例的相关部分可参照方法实施例部分进行理解,在此不再赘述。
终端实施例
本发明实施例提供了一种终端,请参阅图5,图5是本发明实施例中一种终端的结构示意图,如图5所示,该终端5至少可以包括:第一处理器51、第二处理器52、至少一个通信总线53、第一存储器54和第二存储器55;通信总线52用于实现这些组件之间的连接通信;第一存储器54和第二存储器55可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器;
第一存储器54中存储一组程序代码,且第一处理器51用于调用第一存储器54中存储的程序代码,运行所述第一操作系统:
第二存储器55中存储一组程序代码,且第二处理器52用于调用第二存储器55中存储的程序代码,在接收到来自用户的运行所述第二操作系统的请求后,运行所述第二操作系统。
其中,所述第一处理器51具体用于,当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
进一步地,所述第一处理器51具体可以用于:
当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求内携带有获取所述第二操作系统的CPU和/或内存的信息,并在收到所述第二操作系统的允许共享的信息后,与所述第二操作系统的CPU和/或内存建立连接,并触发所述第一操作系统通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
再进一步地,所述第一处理器51和所述第二处理器52还均用于,对其相应操作系统内的第一存储器54和第二存储器55进行防共享设置。
本发明至少能够带来以下的有益效果:
1.本发明的多个操作系统可并行运行,能够更充分的利用终端的硬件资源,从而大大提高用户的使用体验;
2.本发明针对不能共享的内存进行了防共享设置,能够有效保证终端的安全性。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (13)

  1. 一种多操作系统运行方法,其特征在于,包括:
    第一操作系统运行中,接收到来自用户的运行第二操作系统的请求后,运行所述第二操作系统,其中,所述第一操作系统与所述第二操作系统分别对应不同的CPU和内存。
  2. 如权利要求1所述的方法,其特征在于,
    所述CPU和所述内存为预先按照各个操作系统的历史使用记录情况分别分配给所述第一操作系统和所述第二操作系统的CPU和内存。
  3. 如权利要求1或2所述的方法,其特征在于,
    当所述第一操作系统的任务量大于预设阈值时,所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
  4. 如权利要求3所述的方法,其特征在于,所述第一操作系统获取其他操作系统的CPU和/或内存的步骤具体包括:
    所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求内携带有获取所述第二操作系统的CPU和/或内存的信息,并在收到所述第二操作系统的允许共享的信息后,与所述第二操作系统的CPU和/或内存建立连接。
  5. 如权利要求2所述的方法,其特征在于,还包括:
    所述第一操作系统和所述第二操作系统分别将其自身的内存进行防共享设置。
  6. 一种多操作系统运行装置,其特征在于,包括:设置在第一操作系统中的第一处理单元,以及设置在第二操作系统中的第二处理单元;
    所述第一处理单元,用于运行所述第一操作系统;
    所述第二处理单元,用于接收到来自用户的运行所述第二操作系统的请求 后,运行所述第二操作系统;
    其中,所述第一操作系统与所述第二操作系统分别对应不同的CPU和内存。
  7. 如权利要求6所述的装置,其特征在于,
    所述第一处理单元具体用于,当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
  8. 如权利要求7所述的装置,其特征在于,
    所述第一处理单元具体用于,当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求内携带有获取所述第二操作系统的CPU和/或内存的信息,并在收到所述第二操作系统的允许共享的信息后,与所述第二操作系统的CPU和/或内存建立连接,并触发所述第一操作系统通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
  9. 如权利要求7所述的装置,其特征在于,
    所述第一处理单元和所述第二处理单元还均用于,对其相应操作系统内的内存进行防共享设置。
  10. 一种终端,其特征在于,包括设置在第一操作系统中的第一处理器和第一存储器,以及设置在第二操作系统中的第二处理器和第二存储器,其中:
    所述第一处理器,用于运行所述第一操作系统;
    所述第二处理器,用于接收到来自用户的运行所述第二操作系统的请求后,运行所述第二操作系统。
  11. 根据权利要求10所述的终端,其特征在于,
    所述第一处理器具体用于,当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统获取所述第二操作系统的CPU和/或内存,并通过 其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
  12. 根据权利要求11所述的终端,其特征在于,
    所述第一处理器具体用于,当所述第一操作系统的任务量大于预设阈值时,触发所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求内携带有获取所述第二操作系统的CPU和/或内存的信息,并在收到所述第二操作系统的允许共享的信息后,与所述第二操作系统的CPU和/或内存建立连接,并触发所述第一操作系统通过其自身的和重新获取的CPU和/或内存共同完成用户下达的任务。
  13. 根据权利要求11所述的终端,其特征在于,
    所述第一处理器和所述第二处理器还均用于,对其相应操作系统内的内存进行防共享设置。
PCT/CN2015/078076 2015-02-10 2015-04-30 一种多操作系统运行方法、装置及终端 WO2016127504A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510069739.2A CN104657218A (zh) 2015-02-10 2015-02-10 一种多操作系统运行方法、装置及终端
CN201510069739.2 2015-02-10

Publications (1)

Publication Number Publication Date
WO2016127504A1 true WO2016127504A1 (zh) 2016-08-18

Family

ID=53248391

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078076 WO2016127504A1 (zh) 2015-02-10 2015-04-30 一种多操作系统运行方法、装置及终端

Country Status (2)

Country Link
CN (1) CN104657218A (zh)
WO (1) WO2016127504A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242856B (zh) * 2015-10-29 2019-02-15 维沃移动通信有限公司 一种移动终端多系统间共享数据的方法和移动终端
CN107818249A (zh) * 2016-09-13 2018-03-20 鼎桥通信技术有限公司 双系统指纹服务的配置管理方法
CN107193651B (zh) * 2017-04-18 2019-11-12 广州视源电子科技股份有限公司 双系统内存共享方法及装置
CN112579177A (zh) * 2019-09-27 2021-03-30 宝能汽车集团有限公司 Hypervisor的CPU配置方法、系统以及车辆、存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929719A (zh) * 2012-09-18 2013-02-13 中标软件有限公司 一种多核计算机上多操作系统的控制方法及多核计算机
CN103810109A (zh) * 2012-11-15 2014-05-21 华为技术有限公司 内存分配方法、装置及系统
CN104267907A (zh) * 2014-09-29 2015-01-07 深圳酷派技术有限公司 多操作系统间应用程序的启动或切换方法、系统和终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053869B (zh) * 2009-10-29 2013-11-06 杭州华三通信技术有限公司 一种多操作系统的资源分配方法和装置
CN102110023B (zh) * 2009-12-25 2012-11-21 中国长城计算机深圳股份有限公司 一种多用户操作系统并行运行的控制方法、系统及计算机
CN103077081B (zh) * 2012-12-31 2017-02-22 华为技术有限公司 资源调整的方法及装置
CN104156270B (zh) * 2014-07-28 2018-02-06 浪潮(北京)电子信息产业有限公司 一种单机同时运行多操作系统的方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929719A (zh) * 2012-09-18 2013-02-13 中标软件有限公司 一种多核计算机上多操作系统的控制方法及多核计算机
CN103810109A (zh) * 2012-11-15 2014-05-21 华为技术有限公司 内存分配方法、装置及系统
CN104267907A (zh) * 2014-09-29 2015-01-07 深圳酷派技术有限公司 多操作系统间应用程序的启动或切换方法、系统和终端

Also Published As

Publication number Publication date
CN104657218A (zh) 2015-05-27

Similar Documents

Publication Publication Date Title
KR102150774B1 (ko) 단말기 애플리케이션을 로딩하기 위한 방법 및 장치
CN109478134B (zh) 用跨账户别名执行按需网络代码
US9225707B1 (en) Cloud computing and integrated cloud drive
US9639402B2 (en) Systems and methods for automatic hardware provisioning based on application characteristics
WO2016127504A1 (zh) 一种多操作系统运行方法、装置及终端
US10897466B2 (en) System and method for externally-delegated access control and authorization
US20160232374A1 (en) Permission control method and apparatus
CN107766145B (zh) 双系统下的内存管理方法和装置
KR20140098919A (ko) 실시간 가상 데스크탑 서비스를 위한 가상머신 제공 방법 및 서비스 게이트웨이
US20170102957A1 (en) System and Method for Trusted Operability When Moving Between Network Functions Virtualization States
US9735984B2 (en) Bursting cloud resources to affect state change performance
US11102145B2 (en) Resource sharing method, computer device, and storage medium
CN110008019B (zh) 共享服务器资源的方法及装置、系统
CN109564566A (zh) 对调用应用的发现以用于控制文件水化行为
WO2016180151A1 (zh) 会议终端权限的控制方法、系统、装置及存储介质
US10360057B1 (en) Network-accessible volume creation and leasing
KR101337208B1 (ko) 휴대 단말의 어플리케이션 데이터 관리 방법 및 그 장치
CN109039686B (zh) 一种业务混合编排的方法及装置
CN105677481B (zh) 一种数据处理方法、系统及电子设备
US11481178B2 (en) Secure multiple application sharing during a remote session
CN111722908B (zh) 一种虚拟机的创建方法、系统、设备以及介质
CN110120963B (zh) 一种数据处理方法、装置、设备和机器可读介质
CN106850641B (zh) 一种基于云计算安全管理平台的信息传输控制方法和系统
US11237944B2 (en) Code profiling system and associated methods
CN112241307A (zh) 一种虚拟机创建方法、装置及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15881665

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 05.01.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15881665

Country of ref document: EP

Kind code of ref document: A1