WO2016119284A1 - 一种系统切换时保持应用状态的方法、装置及终端 - Google Patents

一种系统切换时保持应用状态的方法、装置及终端 Download PDF

Info

Publication number
WO2016119284A1
WO2016119284A1 PCT/CN2015/073433 CN2015073433W WO2016119284A1 WO 2016119284 A1 WO2016119284 A1 WO 2016119284A1 CN 2015073433 W CN2015073433 W CN 2015073433W WO 2016119284 A1 WO2016119284 A1 WO 2016119284A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
running
state
maintaining
resources
Prior art date
Application number
PCT/CN2015/073433
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 WO2016119284A1 publication Critical patent/WO2016119284A1/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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt

Definitions

  • the present invention relates to the field of mobile communication terminal technologies, and in particular, to a method, device and terminal for maintaining an application state when a system is switched.
  • the system when the operating system is switched, in order to save physical resources, the system will suspend or quit the running application, and the operating system is simply referred to as the system.
  • the drawback of the existing solution is that when the system is switched, the system switched to the background automatically suspends or closes the application currently running in the background.
  • users do not want to quit applications that are currently running, especially non-secure applications, but prefer to keep them running, such as music players that are playing music, game applications that develop classes, and so on.
  • the technical problem to be solved by the present invention is to provide a method, a device and a terminal for maintaining an application state when a system is switched, which overcomes the defect that the prior art can only suspend or exit a running application when a system switching occurs.
  • the technical solution adopted by the present invention is a method for maintaining an application state when the system is switched, including:
  • the scheduled task includes: suspending after executing the current task, stopping after the execution of the set duration, or maintaining the running state; the suspension includes: suspending or exiting.
  • the method further includes:
  • the dual system when the method is applied to a dual system mobile communication terminal, the dual system includes a security system and a general system.
  • An execution module for executing an application in a system switched to the background when a system switch occurs The scheduled tasks corresponding to the application.
  • the present invention also provides a terminal, including the apparatus for maintaining an application state when the system is switched.
  • FIG. 1 is a flowchart of a method for maintaining an application state when a system is switched according to a first embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for maintaining an application state when a system is switched according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic diagram of module division in a control domain of a dual-system mobile phone according to a sixth embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal of a seventh embodiment of the present invention.
  • a first embodiment of the present invention a method for maintaining an application state when a system is switched, as shown in FIG. 1, includes the following specific steps:
  • Step S101 setting a scheduled task for each application in the control domain
  • control domain is a system established on the virtual layer, which is a privileged trusted environment, and is used for managing access control of each system in the mobile communication terminal. Policy and management resource sharing, the control domain controls the allocation of mobile communication terminal resources, such as memory and peripheral resources. Since the control domain is well known in the art in multi-system devices, it will not be described in detail herein.
  • step S101 a scheduled task is set for each application in the control domain, including:
  • Each application entry in the corresponding system is saved in the application plan list, and any application entry includes: an application name and a scheduled task set for the application.
  • the scheduled task includes: aborting after executing the current task, aborting after continuing to execute the set duration, or remaining in a running state; the suspension includes: pausing or exiting.
  • the types of states of the application include: run, block, pause, and exit.
  • the blocking includes: suspending an application and saving an running state of the application, releasing resources occupied by the application; when the resource is released by another application, restoring operation to the application based on the saved running state, and simultaneously The resources are returned to the application for continued use.
  • any application entry further includes: a status of the application.
  • the updating the application plan list in real time includes: updating the status of the application in the application plan list when the status of the application changes; and when the name of the application or the scheduled task of the application is adjusted, The corresponding content in the application plan list is made.
  • the main idea of the embodiment of the present invention is: when a system switch occurs, the system that switches to the background keeps a minimum of resources for the application, and the application opened by the current system and the running application in the background system conflict with each other.
  • the resource is redistributed based on the principle that the application of the foreground system is prioritized.
  • step S102 when the system switching occurs, the scheduled task corresponding to the application is executed for the application in the system switched to the background.
  • the method of this embodiment can be applied to a dual system or multi-system mobile communication terminal.
  • the dual system includes a security system and a general system.
  • the second embodiment of the present invention is a method for maintaining an application state when the system is switched.
  • the method in this embodiment is substantially the same as the first embodiment. The difference is that, as shown in FIG. 2, the method in this embodiment is In addition to the steps S201-202 corresponding to the steps S101-S102 of the first embodiment, the following specific steps are also included:
  • step S203 when an application opened in the current system and an application running in the background system generate an application conflict, the running application in the background system is blocked;
  • step S203 blocking the running application in the background system, including: suspending the running application in the background system and saving the running state of the application, and releasing resources occupied by the application;
  • the application running in the background system is resumed based on the saved operating state, and the resources occupied by the application in the foreground system are released, and the application returned to the background system continues to be used. .
  • the system located in the foreground is called the foreground system
  • the system located in the background is called the background system.
  • the application conflict includes: a conflict between an application opened in the foreground system and an application running in the background system for the exclusive resource;
  • the exclusive resources include: hardware resources that can only be used by one application at a time, or only enough hardware and resources resources for one application to run at the same time due to insufficient resources.
  • the third embodiment of the present invention corresponds to the method of the first embodiment.
  • This embodiment describes a device for maintaining an application state when the system is switched. As shown in FIG. 3, the following components are included:
  • a setting module 100 configured to separately set a scheduled task for each application in the control domain
  • the setting module 100 is configured to:
  • Each application entry in the corresponding system is saved in the application plan list, and any application entry includes: an application name and a scheduled task set for the application.
  • the any application entry further includes: a status of the application.
  • an execution module 200 configured to switch to a background system when a system switch occurs
  • An application that executes a scheduled task corresponding to the application.
  • the fourth embodiment of the present invention corresponds to the method of the second embodiment.
  • This embodiment introduces a device for maintaining an application state when the system is switched.
  • the device in this embodiment is substantially the same as the third embodiment, with the difference that As shown in FIG. 4, the method of this embodiment includes a conflict processing module 300 in addition to the setting module 100 and the execution module 200.
  • the conflict processing module 300 is configured to block an application running in the background system when an application opened in the current system and an application running in the background system generate an application conflict.
  • the application running in the background system is resumed based on the saved operating state, and the resources occupied by the application in the foreground system are released, and the application returned to the background system continues to be used. .
  • the fifth embodiment of the present invention is based on the fourth embodiment, and describes a terminal, which includes the apparatus for maintaining the application state when the system is switched in the fourth embodiment.
  • the terminal of this embodiment can be understood as a physical device.
  • the sixth embodiment of the present invention is based on the above embodiment, and a dual-system mobile phone is taken as an example, and an application example of the present invention is introduced in conjunction with FIG. 5.
  • the dual system mobile phone of this embodiment includes a security system and a general system.
  • the control domain of the dual system mobile phone is a system built on a virtual layer, which is a privileged trusted environment for managing access control of each system in the mobile phone. Policy and management resource sharing, the control domain controls the allocation of mobile phone resources, such as memory and peripheral resources. Since the control domain is well known in the art in multi-system devices, it will not be described in detail herein.
  • Status monitoring module 10 used to monitor the running status of the current mobile phone, including: monitoring the mobile phone system Switch operations, application start/stop, and application conflicts. The monitored information is sent to the application management module 20.
  • the application management module 20 controls the switch saving module 30 to manage the running application of the system according to the information reported by the state monitoring module 10 and the application plan list.
  • the switch save module 30 is responsible for saving the running state of the application blocked due to the application conflict, and restoring the application running state when the condition is suitable.
  • the application plan list may be set by the setting module in the third and fourth embodiments, or may be created and maintained by the application management module 20.
  • the setting module is included in the application management module 20.
  • the functions of all the modules in the control domain are similar to those performed by the execution module and the conflict handling module in the third and fourth embodiments, except that the functional division is different.
  • Step 1 The user sets the application running plan task after the system switching for each application in the application plan list.
  • Step 2 The state monitoring module monitors the current running state of the mobile phone system, and sends specific information of events such as system switching, application opening or closing, and application conflict to the application management module.
  • Step 3 The application management module determines and performs the corresponding action according to the information sent by the status monitoring module:
  • a seventh embodiment of the present invention an application example of a terminal of the present invention will be described with reference to FIG.
  • the terminal 6 may include: at least one processor 61, such as a CPU, at least one communication bus 62, and a memory 63; the processor 61 may maintain an application state when switching with the system shown in FIG. 3 or FIG.
  • the communication bus 62 is used to implement connection communication between these components;
  • the memory 63 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • a set of program codes is stored in the memory 63, and the processor 61 is configured to call the program code stored in the memory 63 for performing the following operations:
  • the method, device and terminal for maintaining the application state when the system is switched during the embodiment of the present invention provide a dual system or multi-system mobile communication terminal user with a solution for maintaining the running application state during system switching. Users can set the scheduled tasks for each application separately, and set a variety of different post-switching application running scheduled tasks according to user needs. A method of blocking and recovery is provided for the application of conflict between two systems, and the solution of the present invention is simple and easy.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

一种系统切换时保持应用状态的方法、装置及终端,该方法包括:在控制域中为各应用分别设置计划任务(S101);当发生系统切换时,针对切换到后台的系统中的应用,执行所述应用对应的计划任务(S102)。该装置包括:设置模块(100)和执行模块(200)。为双系统或者多系统移动通讯终端用户提供一个在系统切换时,保持正在运行的应用状态的方案。用户可以对每个应用分别进行计划任务的设置,根据用户需要设定多种不同的切换后应用运行计划任务。为两个系统间冲突的应用提供了阻塞和恢复的方法,而且方案简单易行。

Description

一种系统切换时保持应用状态的方法、装置及终端
本申请要求于2015年01月30日提交中国专利局,申请号为CN 201510051137.4、发明名称为“一种系统切换时保持应用状态的方法、装置及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通讯终端技术领域,尤其涉及一种系统切换时保持应用状态的方法、装置及终端。
背景技术
目前常用的双系统智能移动终端在其上的操作系统发生切换时,为了节省物理资源,系统会将正在运行的应用暂停或者退出,这里将操作系统简称为系统。
现有方案的缺陷是:在系统切换时,切换到后台的系统会自动暂停或关闭当前运行在后台的应用。但是,在很多情况下,用户并不想退出当前正在运行的应用,尤其是非安全类的应用,而是希望这些应用保持运行状态,如正在播放音乐的音乐播放器、养成类的游戏应用等。
发明内容
本发明要解决的技术问题是,提供一种系统切换时保持应用状态的方法、装置及终端,克服现有技术在发生系统切换时只能将正在运行的应用暂停或者退出的缺陷。
本发明采用的技术方案是,所述系统切换时保持应用状态的方法,包括:
在控制域中为各应用分别设置计划任务;
当发生系统切换时,针对切换到后台的系统中的应用,执行所述应用对应的计划任务。
进一步的,所述在控制域中为各应用设置计划任务,包括:
在控制域中为每个系统建立对应的应用计划列表,并实时更新所述应用计划列表;
所述应用计划列表中保存有对应系统中的各应用表项,任一应用表项包括:应用的名称和为该应用设置的计划任务。
进一步的,所述计划任务,包括:执行完当前的任务后中止、继续执行设定时长后中止、或者一直保持运行状态;所述中止包括:暂停或者退出。
进一步的,所述方法,还包括:
当前台系统中开启的应用与后台系统中正在运行的应用产生应用冲突时,对后台系统中正在运行的应用进行阻塞。
进一步的,所述对后台系统中正在运行的应用进行阻塞,包括:
暂停后台系统中正在运行的应用并保存所述应用的运行状态,释放所述应用占据的资源;
当前台系统中的所述应用退出时,基于保存的所述运行状态为后台系统的所述应用恢复运行,同时释放前台系统中所述应用占据的资源,交还给后台系统的所述应用继续使用。
进一步的,所述应用冲突,包括:前台系统中开启的应用与后台系统中正在运行的应用针对独占资源发生的冲突;
所述独占资源,包括:同一时刻只能供一个应用使用的硬件资源,或者,因资源总量不足而在同一时刻只够支持一个应用运行的软硬件资源。
进一步的,应用计划列表中的任一应用表项,还包括:应用的状态,所述应用的状态的类型,包括:运行、阻塞、暂停和退出;
所述实时更新所述应用计划列表,包括:当应用的状态发生变化时,对相应的应用计划列表中应用的状态进行更新。
进一步的,当所述方法应用于双系统的移动通信终端时,所述双系统包括安全系统和普通系统。
本发明还提供一种系统切换时保持应用状态的装置,包括:
设置模块,用于在控制域中为各应用分别设置计划任务;
执行模块,用于当发生系统切换时,针对切换到后台的系统中的应用,执 行所述应用对应的计划任务。
本发明还提供一种终端,包含上述系统切换时保持应用状态的装置。
采用上述技术方案,本发明至少具有下列优点:
本发明所述系统切换时保持应用状态的方法、装置及终端,为双系统或者多系统移动通讯终端用户提供一个在系统切换时,保持正在运行的应用状态的方案。用户可以对每个应用分别进行计划任务的设置,根据用户需要设定多种不同的切换后应用运行计划任务。为两个系统间冲突的应用提供了阻塞和恢复的方法,而且本发明的方案简单易行。
附图说明
图1为本发明第一实施例的系统切换时保持应用状态的方法流程图;
图2为本发明第二实施例的系统切换时保持应用状态的方法流程图;
图3为本发明第三实施例的系统切换时保持应用状态的装置组成结构示意图;
图4为本发明第四实施例的系统切换时保持应用状态的装置组成结构示意图;
图5为本发明第六实施例的双系统手机的控制域中的模块划分示意图;
图6为本发明第七实施例的终端的组成结构示意图。
具体实施方式
为更进一步阐述本发明为达成预定目的所采取的技术手段及功效,以下结合附图及较佳实施例,对本发明进行详细说明如后。
本发明第一实施例,一种系统切换时保持应用状态的方法,如图1所示,包括以下具体步骤:
步骤S101,在控制域中为各应用分别设置计划任务;
具体的,在双系统或者多系统移动通信终端中,控制域是建立在虚拟层上的一个系统,其为特权可信环境,用于管理移动通信终端中各系统的访问控制 策略及管理资源共享,控制域控制移动通信终端资源的分配,如内存、外设资源等。由于控制域是本领域在多系统设备中的公知技术,此处不再详述。
在步骤S101中,在控制域中为各应用设置计划任务,包括:
在控制域中为每个系统建立对应的应用计划列表,并实时更新所述应用计划列表;
所述应用计划列表中保存有对应系统中的各应用表项,任一应用表项包括:应用的名称和为该应用设置的计划任务。
该计划任务,包括:执行完当前的任务后中止、继续执行设定时长后中止、或者一直保持运行状态;所述中止包括:暂停或者退出。应用的状态的类型包括:运行、阻塞、暂停和退出。
该阻塞,包括:暂停应用并保存所述应用的运行状态,释放所述应用占据的资源;当所述资源被其他应用释放时,基于保存的所述运行状态为所述应用恢复运行,同时将所述资源交还给所述应用继续使用。
优选的,任一应用表项还包括:应用的状态。
进一步的,所述实时更新所述应用计划列表,包括:当应用的状态发生变化时,对应用计划列表中应用的状态进行更新;当应用的名称或者应用的计划任务发生调整时,也会对应用计划列表中的相应内容进行。
本发明实施例的主要思路就是:当发生系统切换时,为切换到后台的系统保留最少的资源足够其应用使用即可,当前台系统开启的应用与后台系统中正在运行的应用发生应用冲突时,以优先满足前台系统的应用运行为原则进行资源的重新分配。
步骤S102,当发生系统切换时,针对切换到后台的系统中的应用,执行所述应用对应的计划任务。
本实施例的所述方法可以应用于双系统或者多系统的移动通信终端。当所述方法应用于双系统的移动通信终端时,所述双系统包括安全系统和普通系统。
本发明第二实施例,一种系统切换时保持应用状态的方法,本实施例所述方法与第一实施例大致相同,区别在于,如图2所示,本实施例的所述方法除 了包括与第一实施例步骤S101~S102对应的步骤S201~202之外,还包括以下具体步骤:
步骤S203,当前台系统中开启的应用与后台系统中正在运行的应用产生应用冲突时,对后台系统中正在运行的应用进行阻塞;
具体的,在步骤S203中,对后台系统中正在运行的应用进行阻塞,包括:暂停后台系统中正在运行的应用并保存所述应用的运行状态,释放所述应用占据的资源;
当前台系统中的所述应用退出时,基于保存的所述运行状态为后台系统的所述应用恢复运行,同时释放前台系统中所述应用占据的资源,交还给后台系统的所述应用继续使用。
本实施例中,位于前台的系统称为前台系统,位于后台的系统称为后台系统。所述应用冲突,包括:前台系统中开启的应用与后台系统中正在运行的应用针对独占资源发生的冲突;
所述独占资源,包括:同一时刻只能供一个应用使用的硬件资源,或者,因资源总量不足而在同一时刻只够支持一个应用运行的软硬件资源。
本发明第三实施例,与第一实施例的所述方法对应,本实施例介绍一种系统切换时保持应用状态的装置,如图3所示,包括以下组成部分:
1)设置模块100,用于在控制域中为各应用分别设置计划任务;
具体的,设置模块100,用于:
在控制域中为每个系统建立对应的应用计划列表,并实时更新所述应用计划列表;
所述应用计划列表中保存有对应系统中的各应用表项,任一应用表项包括:应用的名称和为该应用设置的计划任务。
优选的,该任一应用表项,还包括:该应用的状态。
设置模块100实时更新所述应用计划列表,具体是指:当应用的状态发生变化时,对应用计划列表中应用的状态进行更新;当应用的名称或者应用的计划任务发生调整时,也会对应用计划列表中的相应内容进行。
2)执行模块200,用于当发生系统切换时,针对切换到后台的系统中的 应用,执行所述应用对应的计划任务。
本发明第四实施例,与第二实施例的所述方法相对应,本实施例介绍一种系统切换时保持应用状态的装置,本实施例所述装置与第三实施例大致相同,区别在于,如图4所示,本实施例的所述方法除了包括设置模块100和执行模块200之外,还包括冲突处理模块300。
冲突处理模块300,用于当前台系统中开启的应用与后台系统中正在运行的应用产生应用冲突时,对后台系统中正在运行的应用进行阻塞。
具体的,冲突处理模块300对后台系统中正在运行的应用进行阻塞,包括:暂停后台系统中正在运行的应用并保存所述应用的运行状态,释放所述应用占据的资源;
当前台系统中的所述应用退出时,基于保存的所述运行状态为后台系统的所述应用恢复运行,同时释放前台系统中所述应用占据的资源,交还给后台系统的所述应用继续使用。
本发明第五实施例,本实施例是在第四实施例的基础上,介绍一种终端,包含第四实施例中的系统切换时保持应用状态的装置。本实施例的终端可以当作实体装置来理解。
本发明第六实施例,本实施例是在上述实施例的基础上,以双系统的手机为例,结合附图5介绍一个本发明的应用实例。
本实施例的双系统手机包含安全系统和普通系统,双系统手机的控制域是建立在虚拟层(Virtualizer)上的一个系统,其为特权可信环境,用于管理手机中各系统的访问控制策略及管理资源共享,控制域控制手机资源的分配,如内存、外设资源等。由于控制域是本领域在多系统设备中的公知技术,此处不再详述。
如图5所示,为了清楚的说明控制域在实施本发明技术方案时所执行的功能,将控制域中进行如下模块的划分:
1)状态监听模块10:用来监听当前手机的运行状态,包括:监听手机系 统切换操作、应用的启动/关闭、以及应用冲突等。并将监听到的信息发送给应用管理模块20。
2)应用管理模块20:根据状态监听模块10上报的信息、应用计划列表来控制切换保存模块30来管理系统正在运行的应用。
应用计划列表:该应用计划列表中的表项中记录了应用的名称、应用的状态、应用的计划任务,其中,应用的状态的类型包括以下几种:运行、暂停、阻塞和退出。计划任务可以为:保持状态、执行完当前任务后退出、继续执行设定时长后退出等。
需要说明的是该应用计划列表一共有两张,分别对应安全系统和普通系统。当应用计划列表中的应用的状态发生改变时,及时更新应用计划列表。
3)切换保存模块30:负责保存由于应用冲突而阻塞的应用的运行状态,并在条件适合时还原应用运行状态。
上述模块中,应用计划列表可以由第三、四实施例中的设置模块设置,也可以由应用管理模块20创建并维护,此时,设置模块包含于应用管理模块20中。控制域中的所有模块的功能类似于第三、四实施例中的执行模块和冲突处理模块所完成的功能,区别仅在于功能划分上的不同。
本实施例的控制域中的各模块所执行的流程如下:
步骤1,用户在应用计划列表中为每个应用设置系统切换后的应用运行计划任务。
步骤2,状态监听模块监听当前手机系统运行状态,并将系统切换、应用开启或关闭、应用冲突等事件的具体信息发送给应用管理模块。
步骤3,应用管理模块根据状态监听模块发送的信息,进行判断并执行相应的动作:
A.判断是否为应用冲突,如果是则通知切换保存模块阻塞后台系统中的相应应用,将该应用运行状态保存并开启运行切换后系统的对应应用,同时修改应用计划列表中对应的表项。
其中,应用冲突即为同时开启了需要占用相同独占资源的应用,如普通系统中的音乐播放器需要使用独占的硬件资源手机音响,在切换到安全系统后继续播放音乐,但如果此时安全系统也开启了其他需要使用手机音响的应用,这 便是一个应用冲突。
B.判断是否为系统切换,如果是且有应用的状态发生改变,则根据应用计划列表执行相应的应用管理操作,同时修改应用计划列表表项。
C.判断是否为应用冲突结束,如果是则通知切换保存模块将之前阻塞的应用状态还原,同时修改应用计划列表表项。
D.判断是否为应用开启或关闭信息,如果是则修改对应的应用计划列表表项。
本发明第七实施例,结合附图6介绍一个本发明的终端的应用实例。
如图6所示,该终端6可以包括:至少一个处理器61,例如CPU,至少一个通信总线62以及存储器63;处理器61可以结合图3或图4所示的系统切换时保持应用状态的装置;通信总线62用于实现这些组件之间的连接通信;存储器63可以是高速RAM存储器,也可以是非非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。存储器63中存储一组程序代码,且处理器61用于调用存储器63中存储的程序代码,用于执行以下操作:
在控制域中为各应用分别设置计划任务;
当发生系统切换时,针对切换到后台的系统中的应用,执行所述应用对应的计划任务。
在一种可选的实施方式中,所述处理器61在控制域中为各应用设置计划任务具体可以包括:
在控制域中为每个系统建立对应的应用计划列表,并实时更新所述应用计划列表;
所述应用计划列表中保存有对应系统中的各应用表项,任一应用表项包括:应用的名称和为该应用设置的计划任务。
其中,所述计划任务,包括:执行完当前的任务后中止、继续执行设定时长后中止、或者一直保持运行状态;所述中止包括:暂停或者退出。
进一步的,所述处理器61还可以执行以下操作:
当前台系统中开启的应用与后台系统中正在运行的应用产生应用冲突时,对后台系统中正在运行的应用进行阻塞。
在一种可选的实施方式中,所述处理器61对后台系统中正在运行的应用 进行阻塞具体可以包括:
暂停后台系统中正在运行的应用并保存所述应用的运行状态,释放所述应用占据的资源;
当前台系统中的所述应用退出时,基于保存的所述运行状态为后台系统的所述应用恢复运行,同时释放前台系统中所述应用占据的资源,交还给后台系统的所述应用继续使用。
其中,所述应用冲突,包括:前台系统中开启的应用与后台系统中正在运行的应用针对独占资源发生的冲突;
所述独占资源,包括:同一时刻只能供一个应用使用的硬件资源,或者,因资源总量不足而在同一时刻只够支持一个应用运行的软硬件资源。
应用计划列表中的任一应用表项,还包括:应用的状态;
所述应用的状态的类型,包括:运行、阻塞、暂停和退出;
所述实时更新所述应用计划列表,包括:当应用的状态发生变化时,对相应的应用计划列表中应用的状态进行更新。
可选的,当所述终端为双系统的移动通信终端时,所述双系统至少可以包括安全系统和普通系统。
本发明实施例的所述系统切换时保持应用状态的方法、装置及终端,为双系统或者多系统移动通讯终端用户提供一个在系统切换时,保持正在运行的应用状态的方案。用户可以对每个应用分别进行计划任务的设置,根据用户需要设定多种不同的切换后应用运行计划任务。为两个系统间冲突的应用提供了阻塞和恢复的方法,而且本发明的方案简单易行。
通过具体实施方式的说明,应当可对本发明为达成预定目的所采取的技术手段及功效得以更加深入且具体的了解,然而所附图示仅是提供参考与说明之用,并非用来对本发明加以限制。

Claims (24)

  1. 一种系统切换时保持应用状态的方法,其特征在于,包括:
    在控制域中为各应用分别设置计划任务;
    当发生系统切换时,针对切换到后台的系统中的应用,执行所述应用对应的计划任务。
  2. 根据权利要求1所述的系统切换时保持应用状态的方法,其特征在于,所述在控制域中为各应用设置计划任务,包括:
    在控制域中为每个系统建立对应的应用计划列表,并实时更新所述应用计划列表;
    所述应用计划列表中保存有对应系统中的各应用表项,任一应用表项包括:应用的名称和为该应用设置的计划任务。
  3. 根据权利要求2所述的系统切换时保持应用状态的方法,其特征在于,所述计划任务,包括:执行完当前的任务后中止、继续执行设定时长后中止、或者一直保持运行状态;所述中止包括:暂停或者退出。
  4. 根据权利要求1所述的系统切换时保持应用状态的方法,其特征在于,所述方法,还包括:
    当前台系统中开启的应用与后台系统中正在运行的应用产生应用冲突时,对后台系统中正在运行的应用进行阻塞。
  5. 根据权利要求4所述的系统切换时保持应用状态的方法,其特征在于,所述对后台系统中正在运行的应用进行阻塞,包括:
    暂停后台系统中正在运行的应用并保存所述应用的运行状态,释放所述应用占据的资源;
    当前台系统中的所述应用退出时,基于保存的所述运行状态为后台系统的所述应用恢复运行,同时释放前台系统中所述应用占据的资源,交还给后台系统的所述应用继续使用。
  6. 根据权利要求4所述的系统切换时保持应用状态的方法,其特征在于,所述应用冲突,包括:前台系统中开启的应用与后台系统中正在运行的应用针对独占资源发生的冲突;
    所述独占资源,包括:同一时刻只能供一个应用使用的硬件资源,或者,因资源总量不足而在同一时刻只够支持一个应用运行的软硬件资源。
  7. 根据权利要求2所述的系统切换时保持应用状态的方法,其特征在于,应用计划列表中的任一应用表项,还包括:应用的状态;
    所述应用的状态的类型,包括:运行、阻塞、暂停和退出;
    所述实时更新所述应用计划列表,包括:当应用的状态发生变化时,对相应的应用计划列表中应用的状态进行更新。
  8. 根据权利要求1~7中任一项所述的系统切换时保持应用状态的方法,其特征在于,当所述方法应用于双系统的移动通信终端时,所述双系统包括安全系统和普通系统。
  9. 一种系统切换时保持应用状态的装置,其特征在于,包括:
    设置模块,用于在控制域中为各应用分别设置计划任务;
    执行模块,用于当发生系统切换时,针对切换到后台的系统中的应用,执行所述应用对应的计划任务。
  10. 根据权利要求9所述的系统切换时保持应用状态的装置,其特征在于,所述设置模块具体用于:
    在控制域中为每个系统建立对应的应用计划列表,并实时更新所述应用计划列表;
    所述应用计划列表中保存有对应系统中的各应用表项,任一应用表项包括:应用的名称和为该应用设置的计划任务。
  11. 根据权利要求10所述的系统切换时保持应用状态的装置,其特征在于,所述计划任务,包括:执行完当前的任务后中止、继续执行设定时长后中止、或者一直保持运行状态;所述中止包括:暂停或者退出。
  12. 根据权利要求9所述的系统切换时保持应用状态的装置,其特征在于,还包括:
    冲突处理模块,用于当前台系统中开启的应用与后台系统中正在运行的应用产生应用冲突时,对后台系统中正在运行的应用进行阻塞。
  13. 根据权利要求12所述的系统切换时保持应用状态的装置,其特征在于,所述冲突处理模块具体用于:
    暂停后台系统中正在运行的应用并保存所述应用的运行状态,释放所述应用占据的资源;
    当前台系统中的所述应用退出时,基于保存的所述运行状态为后台系统的所述应用恢复运行,同时释放前台系统中所述应用占据的资源,交还给后台系统的所述应用继续使用。
  14. 根据权利要求12所述的系统切换时保持应用状态的装置,其特征在于,所述应用冲突,包括:前台系统中开启的应用与后台系统中正在运行的应用针对独占资源发生的冲突;
    所述独占资源,包括:同一时刻只能供一个应用使用的硬件资源,或者,因资源总量不足而在同一时刻只够支持一个应用运行的软硬件资源。
  15. 根据权利要求10所述的系统切换时保持应用状态的装置,其特征在于,应用计划列表中的任一应用表项,还包括:应用的状态;
    所述应用的状态的类型,包括:运行、阻塞、暂停和退出;
    所述实时更新所述应用计划列表,包括:当应用的状态发生变化时,对相应的应用计划列表中应用的状态进行更新。
  16. 根据权利要求9~15中任一项所述的系统切换时保持应用状态的装置,其特征在于,当所述装置应用于双系统的移动通信终端时,所述双系统包括安全系统和普通系统。
  17. 一种终端,其特征在于,所述终端包括处理器和存储器,其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,用于执行以下操作:
    在控制域中为各应用分别设置计划任务;
    当发生系统切换时,针对切换到后台的系统中的应用,执行所述应用对应的计划任务。
  18. 根据权利要求17所述的终端,其特征在于,所述处理器在控制域中为各应用设置计划任务具体包括:
    在控制域中为每个系统建立对应的应用计划列表,并实时更新所述应用计划列表;
    所述应用计划列表中保存有对应系统中的各应用表项,任一应用表项包 括:应用的名称和为该应用设置的计划任务。
  19. 根据权利要求18所述的终端,其特征在于,所述计划任务,包括:执行完当前的任务后中止、继续执行设定时长后中止、或者一直保持运行状态;所述中止包括:暂停或者退出。
  20. 根据权利要求17所述的终端,其特征在于,所述处理器还执行以下操作:
    当前台系统中开启的应用与后台系统中正在运行的应用产生应用冲突时,对后台系统中正在运行的应用进行阻塞。
  21. 根据权利要求20所述的终端,其特征在于,所述处理器对后台系统中正在运行的应用进行阻塞具体包括:
    暂停后台系统中正在运行的应用并保存所述应用的运行状态,释放所述应用占据的资源;
    当前台系统中的所述应用退出时,基于保存的所述运行状态为后台系统的所述应用恢复运行,同时释放前台系统中所述应用占据的资源,交还给后台系统的所述应用继续使用。
  22. 根据权利要求20所述的终端,其特征在于,所述应用冲突,包括:前台系统中开启的应用与后台系统中正在运行的应用针对独占资源发生的冲突;
    所述独占资源,包括:同一时刻只能供一个应用使用的硬件资源,或者,因资源总量不足而在同一时刻只够支持一个应用运行的软硬件资源。
  23. 根据权利要求18所述的终端,其特征在于,应用计划列表中的任一应用表项,还包括:应用的状态;
    所述应用的状态的类型,包括:运行、阻塞、暂停和退出;
    所述实时更新所述应用计划列表,包括:当应用的状态发生变化时,对相应的应用计划列表中应用的状态进行更新。
  24. 根据权利要求17~23中任一项所述的终端,其特征在于,当所述终端为双系统的移动通信终端时,所述双系统包括安全系统和普通系统。
PCT/CN2015/073433 2015-01-30 2015-02-28 一种系统切换时保持应用状态的方法、装置及终端 WO2016119284A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510051137.4A CN104572287B (zh) 2015-01-30 2015-01-30 一种系统切换时保持应用状态的方法、装置及终端
CN201510051137.4 2015-01-30

Publications (1)

Publication Number Publication Date
WO2016119284A1 true WO2016119284A1 (zh) 2016-08-04

Family

ID=53088434

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/073433 WO2016119284A1 (zh) 2015-01-30 2015-02-28 一种系统切换时保持应用状态的方法、装置及终端

Country Status (2)

Country Link
CN (1) CN104572287B (zh)
WO (1) WO2016119284A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204932A (zh) * 2015-08-26 2015-12-30 北京元心科技有限公司 智能终端及其应用程序状态控制方法
CN105159765B (zh) * 2015-08-31 2018-11-06 宇龙计算机通信科技(深圳)有限公司 多域间管理应用程序的方法以及装置
CN105260664B (zh) * 2015-09-24 2018-05-15 宇龙计算机通信科技(深圳)有限公司 一种多系统间的应用安全保护方法及终端
CN105554575B (zh) * 2015-12-11 2019-12-03 北京元心科技有限公司 多系统中对媒体播放功能进行处理的方法及装置
CN105653429A (zh) * 2015-12-23 2016-06-08 珠海格力电器股份有限公司 应用程序的处理方法和装置
CN106055406A (zh) * 2016-05-20 2016-10-26 深圳天珑无线科技有限公司 一种程序运行的方法和终端
CN108228335A (zh) * 2016-12-21 2018-06-29 阿里巴巴集团控股有限公司 一种软件运行方法、装置、系统及电子设备
CN107577508B (zh) * 2017-08-14 2020-07-21 Oppo广东移动通信有限公司 应用程序处理方法、装置、可读存储介质和移动终端
CN109992369B (zh) * 2017-12-29 2021-06-08 Oppo广东移动通信有限公司 应用程序处理方法和装置、电子设备、计算机可读存储介质
CN109992363B (zh) * 2017-12-29 2021-03-26 Oppo广东移动通信有限公司 应用程序处理方法和装置、电子设备、计算机可读存储介质
CN110032321B (zh) * 2018-01-12 2024-02-20 Oppo广东移动通信有限公司 应用程序处理方法和装置、电子设备、计算机可读存储介质
CN111290792A (zh) * 2018-12-07 2020-06-16 成都鼎桥通信技术有限公司 一种多容器域极速进行系统切换的方法
CN113630751B (zh) * 2020-05-06 2023-10-20 成都鼎桥通信技术有限公司 基于双系统的蓝牙使用方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6615303B1 (en) * 1999-05-21 2003-09-02 Hitachi, Ltd. Computer system with multiple operating system operation
CN102572093A (zh) * 2010-12-21 2012-07-11 Lg电子株式会社 移动终端以及其中控制模式切换的方法
CN103458125A (zh) * 2013-09-06 2013-12-18 叶鼎 一种高等级私密性智能手机及其私密信息的保护方法
CN104268017A (zh) * 2014-09-19 2015-01-07 福建升腾资讯有限公司 一种同时运行Android/Linux操作系统的方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE409904T1 (de) * 2003-04-09 2008-10-15 Jaluna Sa Betriebssysteme
GB0422086D0 (en) * 2004-10-05 2004-11-03 Symbian Software Ltd Navigating applications in a computing device
CN100470485C (zh) * 2007-05-09 2009-03-18 浙江大学 多操作系统协同工作实现方法
CN101364187A (zh) * 2007-08-08 2009-02-11 黄金富 可对抗木马程式的双操作系统计算机
CN101403981B (zh) * 2008-11-07 2011-03-16 中兴通讯股份有限公司 手机应用程序运行状态的管理方法和系统
CN103309737A (zh) * 2012-03-07 2013-09-18 联想(北京)有限公司 一种切换操作系统的方法及设备
CN102945344B (zh) * 2012-10-17 2015-12-09 北京奇虎科技有限公司 一种后台切换业务处理方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6615303B1 (en) * 1999-05-21 2003-09-02 Hitachi, Ltd. Computer system with multiple operating system operation
CN102572093A (zh) * 2010-12-21 2012-07-11 Lg电子株式会社 移动终端以及其中控制模式切换的方法
CN103458125A (zh) * 2013-09-06 2013-12-18 叶鼎 一种高等级私密性智能手机及其私密信息的保护方法
CN104268017A (zh) * 2014-09-19 2015-01-07 福建升腾资讯有限公司 一种同时运行Android/Linux操作系统的方法

Also Published As

Publication number Publication date
CN104572287A (zh) 2015-04-29
CN104572287B (zh) 2018-12-25

Similar Documents

Publication Publication Date Title
WO2016119284A1 (zh) 一种系统切换时保持应用状态的方法、装置及终端
US8266629B2 (en) Virtual machine system, hypervisor in virtual machine system, and scheduling method in virtual machine system
US10896065B2 (en) Efficient critical thread scheduling for non privileged thread requests
US7788669B2 (en) System for isolating first computing environment from second execution environment while sharing resources by copying data from first portion to second portion of memory
US10733032B2 (en) Migrating operating system interference events to a second set of logical processors along with a set of timers that are synchronized using a global clock
US10768960B2 (en) Method for affinity binding of interrupt of virtual network interface card, and computer device
TWI512619B (zh) 用於執行緒排程的方法以及系統
US11537430B1 (en) Wait optimizer for recording an order of first entry into a wait mode by a virtual central processing unit
WO2006035728A1 (ja) 情報処理装置、割り込み処理制御方法、並びにコンピュータ・プログラム
Masrur et al. VM-based real-time services for automotive control applications
US20110072254A1 (en) Method and system for secured dynamic bios update
KR20110103257A (ko) 가상 머신 모니터 및 가상 머신 모니터의 스케줄링 방법
US9189293B2 (en) Computer, virtualization mechanism, and scheduling method
CN107003891A (zh) 虚拟机切换方法、装置、电子设备和计算机程序产品
US9536075B2 (en) Dynamic resource sharing
US20080295104A1 (en) Realtime Processing Software Control Device and Method
CN112306669A (zh) 一种基于多核系统的任务处理方法及装置
CN113703912A (zh) 一种虚拟机管理方法及装置
CN104598309B (zh) 基于os虚拟化的多模式os的系统和其创建、切换方法
ES2802173T3 (es) Método de planificación de ordenador virtual
JP2007172611A (ja) 方法、記憶媒体(仮想共有環境におけるプロセッサの有効利用法)
US20100037086A1 (en) Robust critical section design in multithreaded applications
US11126474B1 (en) Reducing resource lock time for a virtual processing unit
CN115098230A (zh) 管理线程的方法及装置
WO2017203274A1 (en) Methods for reconciling interrupt conflicts

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: 15879492

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 PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 050118)

122 Ep: pct application non-entry in european phase

Ref document number: 15879492

Country of ref document: EP

Kind code of ref document: A1