CN111078374A - Task recovery method and device in multi-operating system environment and storage medium - Google Patents

Task recovery method and device in multi-operating system environment and storage medium Download PDF

Info

Publication number
CN111078374A
CN111078374A CN201811221667.9A CN201811221667A CN111078374A CN 111078374 A CN111078374 A CN 111078374A CN 201811221667 A CN201811221667 A CN 201811221667A CN 111078374 A CN111078374 A CN 111078374A
Authority
CN
China
Prior art keywords
task
operating system
information
storage area
recovery
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201811221667.9A
Other languages
Chinese (zh)
Inventor
杨建忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Zhongxing New Software Co Ltd
Original Assignee
Xian Zhongxing New Software Co Ltd
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 Xian Zhongxing New Software Co Ltd filed Critical Xian Zhongxing New Software Co Ltd
Priority to CN201811221667.9A priority Critical patent/CN111078374A/en
Publication of CN111078374A publication Critical patent/CN111078374A/en
Pending legal-status Critical Current

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
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A task recovery method, a device and a storage medium in a multi-operating system environment are provided, which relate to the field of computers and are used for automatically recovering tasks running before an operating system is switched back after the operating system is switched back. The method comprises the following steps: when a first operating system is switched to a second operating system, storing information of a first task under the first operating system into a storage area, wherein the first task is a task which is running under the first operating system when the operating system is switched; and when the second operating system is switched back to the first operating system, acquiring the information of the first task from the storage area, and recovering the first task based on the information of the first task. The application is used for task recovery.

Description

Task recovery method and device in multi-operating system environment and storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for task recovery in a multi-operating system environment, and a storage medium.
Background
With the increasing importance of users on data security, multiple operating system terminals are also in operation. The multi-os terminal refers to a terminal in which two or more os are installed. When using a multi-os terminal, a user often performs os switching, that is, switching a running os from an a os to a B os, and switching the B os back to the a os after a while.
If a running task a exists under the a operating system when the a operating system is switched to the B operating system, the user often needs to manually operate to re-run the task a after the B operating system is switched back to the a operating system, which results in low running efficiency.
Disclosure of Invention
The embodiment of the application provides a task recovery method in a multi-operating-system environment, so that after an operating system is switched back, a task which is running before the operating system is switched is automatically recovered, and therefore the running efficiency is improved.
In a first aspect, a method for task recovery in a multi-operating system environment is provided, which is applied to a terminal and includes:
when a first operating system is switched to a second operating system, storing information of a first task under the first operating system into a storage area, wherein the first task is a task which is running under the first operating system when the operating system is switched;
and when the second operating system is switched back to the first operating system, acquiring the information of the first task from the storage area, and recovering the first task based on the information of the first task.
In a second aspect, a task recovery apparatus in a multi-operating system environment is provided, including:
the storage module is used for storing information of a first task under a first operating system into a storage area when the first operating system is switched to a second operating system, wherein the first task is a task which is running under the first operating system when the operating system is switched;
an obtaining module, configured to obtain, from the storage area, information of the first task stored by the storage module when switching from the second operating system back to the first operating system;
and the processing module is used for recovering the first task based on the information of the first task acquired by the acquisition module.
In a third aspect, a terminal is provided, comprising a memory and a processor, the memory having stored thereon a computer program that, when executed by the processor, performs the following:
when a first operating system is switched to a second operating system, storing information of a first task under the first operating system into a storage area, wherein the first task is a task which is running under the first operating system when the operating system is switched;
and when the second operating system is switched back to the first operating system, acquiring the information of the first task from the storage area, and recovering the first task based on the information of the first task.
In a fourth aspect, there is provided a non-transitory computer readable storage medium having stored thereon a computer program that, when executed, performs the operations of:
when a first operating system is switched to a second operating system, storing information of a first task under the first operating system into a storage area, wherein the first task is a task which is running under the first operating system when the operating system is switched;
and when the second operating system is switched back to the first operating system, acquiring the information of the first task from the storage area, and recovering the first task based on the information of the first task.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
in the embodiment of the application, when switching from a first operating system to a second operating system, by storing information of a first task running under the first operating system in a storage area, and subsequently when switching back to the first operating system from the second operating system, information of the first task can be acquired from the storage area, and the first task is recovered based on the information of the first task. Therefore, after the operating system is switched back, the task which is running before the operating system is switched can be automatically recovered, and the running efficiency is improved.
Drawings
FIG. 1 is a flowchart of a task recovery method in a multi-operating system environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of another task recovery method in a multi-operating system environment according to an embodiment of the present application;
FIG. 3 is a block diagram illustrating a task recovery apparatus in a multi-operating system environment according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a terminal provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The task recovery method under the multi-operating-system environment provided by the embodiment of the application can be executed by the terminal. Two or more operating systems may be installed on the terminal. The multiple operating systems mentioned in the embodiments of the present invention may be multiple android operating systems, for example, different versions of the android operating system. Under the condition that a plurality of android operating systems of different versions are installed on the terminal, one version of the android operating system can be used as one operating system. In this way, the user can realize switching from one version of android operating system to another version of operating system by operating the terminal.
In the embodiment of the present invention, the operating system may be an operating system used in the mobile terminal. Meanwhile, the operating system switching in the embodiment of the invention can represent the switching of operating systems of different versions under the same type of operating system. For example, switching between different versions of the android operating system under the android operating system; for another example, switching of different versions of the iOS operating system under the iOS operating system developed by apple inc; as another example, a handover of a different version of an operating system under another operating system (e.g., a windows ce operating system) used in the mobile terminal.
Of course, the multi-operating system switching provided by the embodiment of the present invention may also be applicable to switching of different types of operating systems, for example, switching from an android operating system to an iOS operating system, switching from the iOS operating system to the android operating system, switching from the android operating system to another operating system, and the like.
In the embodiment of the present invention, the terminal may be a mobile terminal such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer, or a terminal device such as a desktop computer.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a task recovery method in a multi-operating system environment according to an embodiment of the present invention. Referring to fig. 1, the task recovery method in a multi-operating system environment according to the embodiment of the present invention may be applied to a terminal, and may include:
step 110, when a first operating system is switched to a second operating system, storing information of a first task under the first operating system into a storage area, wherein the first task is a task which is running under the first operating system when the operating system is switched.
In the embodiment of the present invention, the first operating system and the second operating system may be operating systems of different versions under the same type of operating system, such as android.
In the embodiment of the invention, the switching among the operating systems can be completed through keys on the terminal. The key may be a virtual button displayed on a display interface of the terminal, or may be a physical key provided on the terminal, such as a combination of a power key and a volume key. Once the key for triggering the os switch is triggered (e.g., clicking a virtual button displayed on the display interface or pressing a physical key combination), the inter-os switch can be directly initiated.
Of course, in the embodiment of the present invention, when the key triggering the switching of the operating systems is triggered, the switching between the operating systems is not directly started, but a prompt box (for example, a prompt of "whether to switch the operating systems") is displayed to prompt that the switching of the operating systems is to be performed immediately, and details of the switching of the operating systems can be displayed as needed, for example, the operating system is switched from the android 7.1 operating system to the android 7.3 operating system. In this way, the user can see the details of the operating system switch. In this process, if the user does not input any command, the os can be switched by default. When the user inputs an instruction for stopping switching, for example, if the option of whether to switch the operating system is selected to be NO, the switching of the operating system can be stopped, so that the switching of the operating system caused by misoperation of the user can be prevented.
In the embodiment of the present invention, the first task may be an application, a document, a web page, a game, or the like that is running under the first operating system. For example, when the operating system is switched, the user opens a video application to watch a video, and the running application can serve as a first task. For another example, when the operating system is switched, the user opens a certain web page for browsing, and the opened web page can be used as the first task.
In the embodiment of the present invention, the storage area may be a storage area located in a memory and/or a hard disk. To ensure the security of the storage area, the storage area may be located in the hard disk. When the storage area is located in the hard disk, an area may be set in the hard disk as a storage area, which is dedicated to storing information of the first task running under the first operating system.
In the embodiment of the present invention, the information of the first task may include data required when the first task is executed and an identifier indicating that the first task is in an executing state.
After the terminal stores the information of the first task under the first operating system in the storage area, the terminal can switch the first operating system to the second operating system and can end the first task. After the terminal is switched to the second operating system, the user can perform various operations under the second operating system. After the user operates under the second operating system for a period of time, if the user wants to return to the first operating system, the second operating system can be triggered to switch to the first operating system.
And 120, when the second operating system is switched back to the first operating system, acquiring the information of the first task from the storage area, and recovering the first task based on the information of the first task.
The manner of triggering the second operating system to switch to the first operating system may be similar to the manner of triggering the first operating system to switch to the second operating system, for example, through a virtual key or a physical key. Meanwhile, when the second operating system is switched back to the first operating system, a prompt box may be displayed, and the related content is as described above.
The obtaining of the information of the first task from the storage area may specifically be: and the terminal reads out the information of the first task from the storage area.
In the embodiment of the application, when switching from a first operating system to a second operating system, by storing information of a first task running under the first operating system in a storage area, and subsequently when switching back to the first operating system from the second operating system, information of the first task can be acquired from the storage area, and the first task is recovered based on the information of the first task. Therefore, after the operating system is switched back, the task which is running before the operating system is switched can be automatically recovered, and the running efficiency is improved.
In an embodiment of the present invention, switching between operating systems may be automatically initiated by default when a key for triggering switching of the operating systems is triggered (e.g., a virtual button displayed on a display interface is clicked or a physical key combination is pressed), and information of a first task running under a first operating system may be stored in a storage area by default. Of course, alternatively, in another embodiment of the present invention, only switching between the operating systems may be started when the key for triggering switching of the operating systems is triggered, information of the first task running under the first operating system is not directly stored in the storage area, but it is further determined whether the task recovery switch is turned on, and in a case where the task recovery switch is turned on, information of the first task running under the first operating system is stored in the storage area. Accordingly, when the terminal switches back from the second operating system to the first operating system, it may be further determined whether the task recovery switch is turned on, instead of directly acquiring the information of the first task from the storage area, and in a case where the task recovery switch is turned on, the information of the first task is acquired from the storage area and the first task is recovered based on the information of the first task.
As can be seen from the above, before the step 110 of storing the information of the first task under the first operating system in the storage area, the task recovery method provided in another embodiment of the present invention may further include: it is determined whether the task resume switch is on. Accordingly, the storing information of the first task under the first operating system into the storage area in step 110 may include: and when the task recovery switch is turned on, storing the information of the first task under the first operating system into a storage area. Meanwhile, before the step 110 of acquiring the information of the first task from the storage area, a task recovery method provided by another embodiment of the present invention may further include: it is determined whether the task resume switch is on. The step of the terminal determining whether the task recovery switch is turned on at this time may be performed after the second operating system is switched back to the first operating system, or may be performed during the process of the terminal switching the second operating system back to the first operating system. Accordingly, the obtaining the information of the first task from the storage area in step 110 may include: and when the task recovery switch is turned on, acquiring the information of the first task from the storage area.
The embodiment of the invention carries out task recovery when the task recovery switch is turned on, thus being capable of operating according to the user requirements and better meeting the user requirements. Meanwhile, under the condition that the task recovery switch is turned on, the running task before the switching of the operating system can be automatically recovered, so that the operation of a user is facilitated.
In the embodiment of the present invention, the state of the task recovery switch (i.e., on or off) may be set in various ways. For example, one way to set the task recovery switch is to set a shortcut key, and the task recovery switch may be set to an on state when the shortcut key is pressed an odd number of times and to an off state when the shortcut key is pressed an even number of times. For example, another way to set the task recovery switch is to set an indicator, such as an indicator light or an indicator icon, and the task recovery switch can be set to an on state when the indicator light is on or the indicator icon appears, and can be set to an off state when the indicator light is off or the indicator icon does not appear. The manner of lighting the trigger indicator light or displaying the indicator icon may not be limited, and may be, for example, clicking a certain designated position with a mouse or pressing a certain physical key.
Of course, in the embodiment of the present invention, the task recovery switch may also be set by displaying a setting interface (e.g., a menu). Specifically, before the terminal is switched from the first operating system to the second operating system, a setting interface containing the task recovery switch can be displayed; receiving an instruction for turning on the task recovery switch (for example, a user clicks the task recovery switch to set the task recovery switch to an on state), and turning on the task recovery switch according to the instruction. Therefore, the task recovery switch is set through the displayed setting interface, and the user operation can be facilitated. Meanwhile, the task recovery function can be actively started or closed through the setting of the task recovery switch, so that a user can select whether to start the task recovery function according to the requirement of the user. In addition, it is to be understood that the task recovery switch is set before the operating system is switched, so that the operating system can be quickly switched by a subsequent key, a display prompt box is not needed to prompt a user whether to switch the operating system, the switching efficiency of the operating system is improved, and the delay caused by the display prompt box is avoided.
Optionally, in an embodiment of the present invention, in the case that the information of the first task includes data required for the first task to run and an identifier indicating that the first task is in a running state, the recovering the first task based on the information of the first task in step 120 may include: and restoring to run the first task according to the identification and the data required by the running of the first task.
The form of the identifier (for example, a series of numbers such as 11) in the embodiment of the present invention may not be specifically limited, and it may be known that the first task is a task in an operating state, that is, a task that needs to be recovered through the identifier, and further, the first task may be recovered to operate through the acquired data required for the operation of the first task. For example, if a user has previously opened a certain web page, the web page may be automatically opened without additional operation of the user when the task is resumed after the operating system is switched back.
Further, the information of the first task may include, in addition to data required for the first task to run and an identifier indicating that the first task is in a running state: and indicating the running progress of the first task. The specific content and form of the progress indication information may be different according to different tasks. Accordingly, according to the identifier and the data required by the first task to operate, resuming the operation of the first task may specifically be: and restoring the first task to the operation progress indicated by the operation progress indication information to continue to operate according to the identifier, the data required by the operation of the first task and the operation progress indication information of the first task.
For example, when the user switches from the android 7.1 operating system to the android 7.3 operating system, the user is browsing a certain video on the application, for example, watching 11 minutes of the video, and if the user triggers the switching of the operating system, the terminal may record data required by the running of the application, an identifier indicating that the application is in a running state, and running progress indication information (including the 11 th minute of the playing progress), and store the information in the storage area, and when the subsequent user switches back from the android 7.3 operating system to the android 7.1 operating system, the video may be directly played at the 11 th minute position of the video through the running progress indication information.
In the task recovery process, the operation progress of the first task can be obtained through the operation progress indication information of the first task, so that the task can be recovered to the operation progress of the first task, and the task can continue to operate on the basis of the progress. Therefore, the task can be restored to the state before the switching of the operating system, the user requirements can be better met, and the operation burden of the user is reduced.
Fig. 2 is a flowchart of a task recovery method in a multi-operating system environment according to an embodiment of the present invention. Referring to fig. 2, a task recovery method in a multi-os environment according to an embodiment of the present invention may be executed by a terminal, and may include:
step 210, displaying a setting interface containing a task recovery switch.
Step 220, receiving an instruction for starting the task recovery switch, and starting the task recovery switch according to the instruction.
Wherein the user can click the task recovery switch to place it in an on state or slide the task recovery switch to place it in an on state.
Wherein, step 210 and step 220 are optional steps. In an embodiment of the present invention, the task recovery switch may be in an on state by default. Alternatively, in embodiments of the present invention, the task recovery method may be performed by default.
Step 230, receiving an instruction of triggering the switching of the multiple operating systems by the user, so as to switch from the first operating system to the second operating system.
The specific manner of triggering the multi-os switch can refer to the foregoing description. For example, by clicking on a physical case or a virtual case.
In step 240, the terminal determines whether the task recovery switch is on.
After receiving an instruction for triggering the switching of the multiple operating systems, the terminal can acquire the state of the task recovery switch and determine whether the task recovery switch is turned on. When the task recovery switch is turned on, step 250 may be performed; when the task resume switch is off, step 260 may be performed instead.
Wherein step 240 is an optional step.
And step 250, when the task recovery switch is turned on, the terminal stores the information of the task running under the first operating system in the storage area during the switching of the operating systems.
The information of the task may include: the data required by the task running and the mark indicating that the task is in a running state. The information of the task may further include running progress indication information of the task. The storage area may be a hard disk.
In step 260, the terminal switches the first operating system to the second operating system.
In the process of switching the first operating system to the second operating system, the terminal may end the task running under the first operating system. After the terminal is switched to the second operating system, the user can perform various operations under the second operating system. After the user operates under the second operating system for a period of time, if the user wants to return to the first operating system, the second operating system can be triggered to switch to the first operating system.
Step 270, receiving an instruction of a user to trigger switching of the multiple operating systems, so as to switch from the second operating system back to the first operating system.
The specific manner of triggering the multi-os switch can refer to the foregoing description. For example, by clicking on a physical case or a virtual case.
After step 270, the terminal may switch the second operating system back to the first operating system.
In step 280, the terminal determines whether the task recovery switch is on.
After receiving an instruction for triggering the switching of the multiple operating systems, the terminal can acquire the state of the task recovery switch and determine whether the task recovery switch is turned on. When the task recovery switch is on, step 290 may be performed; the process may end when the task resume switch is off.
Wherein step 280 is an optional step. Step 280 may be performed after the terminal switches the second operating system back to the first operating system, or during the process of the terminal switching the second operating system back to the first operating system.
And 290, when the task recovery switch is turned on, the terminal acquires the information of the task from the storage area and recovers the task based on the information of the task.
Wherein, step 290 may specifically be: and restoring the task to the operation progress indicated by the operation progress indication information to continue to operate according to the identifier, the data required by the task operation and the operation progress indication information of the task.
According to the task recovery method under the multi-operating-system environment, provided by the embodiment of the invention, the information of the task running under the first operating system is backed up when the first operating system is switched to the second operating system, and the information of the task is obtained when the second operating system is switched back to the first operating system, so that the task is recovered to the running progress of the task when the first operating system is switched to the second operating system to continue running, therefore, the operation burden required by a user to reopen the task can be reduced, the operation and running efficiency is improved, and the user experience is further improved.
Fig. 3 is a block diagram of a task recovery apparatus in a multi-operating system environment according to an embodiment of the present invention. Referring to fig. 3, a task recovery apparatus 300 in a multi-operating system environment according to an embodiment of the present invention may include: a storage module 310, an acquisition module 320, and a processing module 330. Wherein:
the storage module 310 is configured to store information of a first task under a first operating system into a storage area when switching from the first operating system to a second operating system, where the first task is a task that is running under the first operating system when switching between operating systems;
an obtaining module 320, configured to obtain, from the storage area, the information of the first task stored by the storing module 310 when switching back to the first operating system from the second operating system;
a processing module 330, configured to recover the first task based on the information of the first task acquired by the acquiring module 320.
According to the task recovery device in the multi-operating-system environment, when a first operating system is switched to a second operating system, information of a first task running under the first operating system is stored in a storage area, and when the second operating system is switched back to the first operating system, the information of the first task can be acquired from the storage area, and the first task is recovered based on the information of the first task. In this way, the task that was running before the operating system switch can be automatically resumed after the operating system switch back.
Optionally, in an embodiment of the present invention, the information of the first task includes: the data required by the first task to run and an identifier indicating that the first task is in a running state. Accordingly, when the first task is recovered based on the information of the first task, the processing module 330 may be specifically configured to: and restoring to run the first task according to the identification and the data required by the running of the first task.
Further, the information of the first task may further include: and indicating the running progress of the first task. When the first task is recovered based on the information of the first task, the processing module 330 may be specifically configured to: and restoring the first task to the operation progress indicated by the operation progress indication information to continue to operate according to the identifier, the data required by the operation of the first task and the operation progress indication information of the first task.
Optionally, in an embodiment of the present invention, the processing module 330 is further configured to: before the storage module 310 stores the information of the first task under the first operating system in the storage area, it is determined whether a task recovery switch is turned on. Accordingly, the storage module 310 may be specifically configured to: and when the task recovery switch is turned on, storing the information of the first task under the first operating system into a storage area. Meanwhile, the processing module 330 may be further configured to: and determining whether a task recovery switch is turned on or not before the information of the first task stored in the storage module is acquired from the storage area. Accordingly, the storage module 310 may be specifically configured to: and when the task recovery switch is turned on, acquiring the information of the first task from the storage area.
Optionally, in an embodiment of the present invention, the task recovery device 300 further includes: the display module is used for displaying a setting interface containing the task recovery switch before switching from the first operating system to the second operating system; and the receiving module is used for receiving an instruction for starting the task recovery switch. Accordingly, the processing module 330 may also be configured to: and starting the task recovery switch according to the instruction received by the receiving module.
Fig. 4 is a schematic diagram of a terminal according to an embodiment of the present invention. Referring to fig. 4, a terminal 400 provided by the embodiment of the present invention may include a memory 410 and a processor 420, where the memory 410 may store a computer program, and when the computer program is executed by the processor 420, the computer program may implement the steps in any of the task recovery methods described above. For example, the computer program may perform the following when executed by the processor 420: when a first operating system is switched to a second operating system, storing information of a first task under the first operating system into a storage area, wherein the first task is a task which is running under the first operating system when the operating system is switched; and when the second operating system is switched back to the first operating system, acquiring the information of the first task from the storage area, and recovering the first task based on the information of the first task.
According to the terminal provided by the embodiment of the application, when the first operating system is switched to the second operating system, the information of the running first task under the first operating system is stored in the storage area, and then when the second operating system is switched back to the first operating system, the information of the first task can be acquired from the storage area, and the first task is recovered based on the information of the first task. In this way, the task that was running before the operating system switch can be automatically resumed after the operating system switch back.
Furthermore, embodiments of the present invention may also provide a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed implements the steps in any of the task recovery methods described above. For example, the computer program when executed performs the following: when a first operating system is switched to a second operating system, storing information of a first task under the first operating system into a storage area, wherein the first task is a task which is running under the first operating system when the operating system is switched; and when the second operating system is switched back to the first operating system, acquiring the information of the first task from the storage area, and recovering the first task based on the information of the first task.
The non-transitory computer-readable storage medium provided by the embodiment of the application stores information of a first task running under a first operating system into a storage area when switching from the first operating system to a second operating system, and subsequently can acquire the information of the first task from the storage area when switching back to the first operating system from the second operating system, and recover the first task based on the information of the first task. In this way, the task that was running before the operating system switch can be automatically resumed after the operating system switch back.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

Claims (12)

1. A task recovery method under a multi-operating system environment is applied to a terminal and is characterized by comprising the following steps:
when a first operating system is switched to a second operating system, storing information of a first task under the first operating system into a storage area, wherein the first task is a task which is running under the first operating system when the operating system is switched;
and when the second operating system is switched back to the first operating system, acquiring the information of the first task from the storage area, and recovering the first task based on the information of the first task.
2. The task recovery method according to claim 1, wherein the information of the first task includes: data required for the first task to run and an identifier indicating that the first task is in a running state;
the restoring the first task based on the information of the first task comprises: and restoring to run the first task according to the identification and the data required by the running of the first task.
3. The task recovery method of claim 2, wherein the information of the first task further comprises: running progress indicating information of the first task;
the resuming the operation of the first task according to the identifier and the data required by the operation of the first task includes: and restoring the first task to the operation progress indicated by the operation progress indication information to continue to operate according to the identifier, the data required by the operation of the first task and the operation progress indication information of the first task.
4. The task recovery method according to claim 1, wherein before the storing information of the first task under the first operating system in a storage area, the task recovery method further comprises:
determining whether a task recovery switch is turned on;
the storing information of the first task under the first operating system into the storage area comprises: when the task recovery switch is turned on, storing information of a first task under the first operating system into a storage area;
before the acquiring the information of the first task from the storage area, the task recovery method further includes:
determining whether a task recovery switch is turned on;
the acquiring the information of the first task from the storage area comprises: and when the task recovery switch is turned on, acquiring the information of the first task from the storage area.
5. The task recovery method of claim 4, wherein prior to the switching from the first operating system to the second operating system, the task recovery method further comprises:
displaying a setting interface containing the task recovery switch;
and receiving an instruction for starting the task recovery switch, and starting the task recovery switch according to the instruction.
6. A task recovery apparatus in a multi-operating system environment, comprising:
the storage module is used for storing information of a first task under a first operating system into a storage area when the first operating system is switched to a second operating system, wherein the first task is a task which is running under the first operating system when the operating system is switched;
an obtaining module, configured to obtain, from the storage area, information of the first task stored by the storage module when switching from the second operating system back to the first operating system;
and the processing module is used for recovering the first task based on the information of the first task acquired by the acquisition module.
7. The task recovery apparatus according to claim 6, wherein the information of the first task includes: data required for the first task to run and an identifier indicating that the first task is in a running state;
when the first task is restored based on the information of the first task, the processing module is specifically configured to: and restoring to run the first task according to the identification and the data required by the running of the first task.
8. The task recovery apparatus of claim 7, wherein the information of the first task further comprises: running progress indicating information of the first task;
when the first task is restored based on the information of the first task, the processing module is specifically configured to: and restoring the first task to the operation progress indicated by the operation progress indication information to continue to operate according to the identifier, the data required by the operation of the first task and the operation progress indication information of the first task.
9. The task recovery apparatus of claim 6, wherein the processing module is further configured to: before the storage module stores the information of the first task under the first operating system into the storage area, determining whether a task recovery switch is turned on;
the storage module is specifically configured to: when the task recovery switch is turned on, storing information of a first task under the first operating system into a storage area;
accordingly, the processing module is further configured to: before the information of the first task stored in the storage module is acquired from the storage area, whether a task recovery switch is turned on or not is determined;
the storage module is specifically configured to: and when the task recovery switch is turned on, acquiring the information of the first task from the storage area.
10. The task recovery apparatus according to claim 9, further comprising:
the display module is used for displaying a setting interface containing the task recovery switch before switching from the first operating system to the second operating system;
the receiving module is used for receiving an instruction for starting the task recovery switch;
the processing module is further configured to: and starting the task recovery switch according to the instruction received by the receiving module.
11. A terminal, characterized in that it comprises a memory and a processor, said memory having stored thereon a computer program which, when executed by said processor, carries out the steps in the task recovery method according to any one of claims 1-5.
12. A non-transitory computer readable storage medium, wherein a computer program is stored on the storage medium, and when executed, the computer program implements the steps in the task recovery method according to any one of claims 1 to 5.
CN201811221667.9A 2018-10-19 2018-10-19 Task recovery method and device in multi-operating system environment and storage medium Pending CN111078374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811221667.9A CN111078374A (en) 2018-10-19 2018-10-19 Task recovery method and device in multi-operating system environment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811221667.9A CN111078374A (en) 2018-10-19 2018-10-19 Task recovery method and device in multi-operating system environment and storage medium

Publications (1)

Publication Number Publication Date
CN111078374A true CN111078374A (en) 2020-04-28

Family

ID=70309219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811221667.9A Pending CN111078374A (en) 2018-10-19 2018-10-19 Task recovery method and device in multi-operating system environment and storage medium

Country Status (1)

Country Link
CN (1) CN111078374A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334197A (en) * 2022-08-09 2022-11-11 青岛海信移动通信技术股份有限公司 Communication function changing method, multi-system terminal and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334197A (en) * 2022-08-09 2022-11-11 青岛海信移动通信技术股份有限公司 Communication function changing method, multi-system terminal and medium
CN115334197B (en) * 2022-08-09 2024-05-10 青岛海信移动通信技术有限公司 Communication function changing method, multi-system terminal and medium

Similar Documents

Publication Publication Date Title
EP3846025B1 (en) Window switching method and apparatus, and terminal and computer-readable storage medium
WO2016146056A1 (en) Page switching method and device
CN111459715A (en) Application exception recovery
CN112887802A (en) Video access method and device
CN109905770A (en) Terminal starting up method, apparatus and terminal
CN102467403B (en) Software fast switching method based on progress emigration/immigration and device thereof
CN105279431B (en) Method, device and system for recording operation information in mobile equipment
CN113312570A (en) Page jump method, terminal device and storage medium
CN104793836A (en) Information processing method and device based on user operations and terminal
EP4171006A1 (en) Previewing method and apparatus for effect application, and device and storage medium
CN109254709A (en) Screenshotss processing method, device, equipment and machine readable media
CN107368235B (en) Multi-task switching method of function machine and function machine
US20150324209A1 (en) Operating System Switching Method and Dual-Operating System Electronic Device Using the Same
CN111008044A (en) Application program recovery method and system and electronic equipment
US8468388B2 (en) Restoring programs after operating system failure
CN111143019A (en) Control method and system for pop-up window of mobile terminal
CN111078374A (en) Task recovery method and device in multi-operating system environment and storage medium
CN111897607A (en) Application interface loading and interaction method, device and storage medium
CN105786535B (en) information processing method and electronic equipment
CN109359482B (en) Webpage browsing method and device
CN114253752A (en) Application crash processing method, device, equipment and medium
CN104837064B (en) The control method and media player of the media player of open operating system
CN116009969A (en) Application program control method, device, electronic equipment, chip and storage medium
CN114238934A (en) Equipment information acquisition method, device, equipment and medium
CN112579938A (en) Page loading method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination