WO2012112331A2 - Dormant background applications on mobile devices - Google Patents
Dormant background applications on mobile devices Download PDFInfo
- Publication number
- WO2012112331A2 WO2012112331A2 PCT/US2012/024024 US2012024024W WO2012112331A2 WO 2012112331 A2 WO2012112331 A2 WO 2012112331A2 US 2012024024 W US2012024024 W US 2012024024W WO 2012112331 A2 WO2012112331 A2 WO 2012112331A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- state
- resource
- dormant
- dormant state
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/508—Monitor
Definitions
- an application On a contemporary mobile device, if an application is running and is subsequently replaced in the foreground by another application or experience, the first application is deactivated and the application's process is terminated by the operating system.
- An application may be deactivated if the user presses the Start button or if the device timeout causes the lock screen to be engaged, for example.
- the user may return to the application to continue an application task / experience from where the user left it.
- the user needs to wait for the device application framework to initialize, and for the application itself to load saved state and to resume the previous experience. Resuming in this way can seem relatively slow and thus provide a somewhat undesirable user experience.
- various aspects of the subject matter described herein are directed towards a technology by which an application is moved from a running (e.g., foreground) state into a dormant state in which the application process is retained in memory. Further, state data and execution context information are maintained in association with the application, which allows the application to be activated to the running state, e.g., in a rapid, efficient manner.
- moving the application from the running state into the dormant state includes pausing for a time duration to allow the application to prepare for the dormant state, e.g., persist data from memory, close any open files, and so forth.
- moving the foreground application from a running state into the dormant state includes detaching at least one resource from the application, pausing at least one update notification provided by a resource to the application, canceling at least one cancellable request, pausing at least one non-cancellable request, stopping at least one thread, and/or freeing at least one application resource (e.g., memory allocated to the application).
- detaching at least one resource from the application pausing at least one update notification provided by a resource to the application, canceling at least one cancellable request, pausing at least one non-cancellable request, stopping at least one thread, and/or freeing at least one application resource (e.g., memory allocated to the application).
- a resource monitor is configured to evaluate whether the application, when in the dormant state, is using at least one resource (e.g., CPU) beyond an allowed threshold. If so, the shell is configured to move the application from the dormant state into another state in which the process of the application is
- FIGURE 1 is a block diagram representing example applications in different states hosted by an operating system shell, including applications in a dormant state.
- FIG. 2 is state diagram showing example states for applications, including a dormant state, and transitions between the states.
- FIG. 3A is a sequence / control diagram representing an example flow of events / control among components when launching an application.
- FIG. 3B is a sequence / control diagram representing an example flow of
- FIG. 4A is a sequence / control diagram representing an example flow of events / control among components when resuming a deactivated application from a dormant state.
- FIG. 4B is a sequence / control diagram representing an example flow of events / control among components when closing an application.
- FIG. 5 is a block diagram representing an exemplary non-limiting computing system or operating environment, e.g., in the example of a mobile phone device, in which one or more aspects of various embodiments described herein can be implemented.
- a mobile device or the like maintains an application in a dormant state, generally corresponding to an application that cannot execute any code when in the background.
- the shell component / framework that comprises the (e.g., Windows® phone) application platform retains the application process in memory, and maintains state and execution context for the application, but does not allow the process to run.
- the shell may suspend thread activity within background applications.
- the dormant background application regains the ability to execute code when the user brings the application to foreground.
- the operating system does not terminate the application's process when deactivating an application. Instead, applications may go in the background and remain resident in memory. This eliminates the need to reinitialize the application and reload state, which implicitly means faster application resume time.
- FIG. 1 is a generalized block diagram showing various example components in a mobile device environment.
- a plurality of applications are controlled by a shell 102 (application framework), which provides access to device resources, including exclusive resources 104 (e.g., the display) that only one application, usually only the foreground application 106, typically can access, and shared resources 108 (e.g., memory, networking and so forth) that the foreground application 106 and other applications may use.
- exclusive resources 104 e.g., the display
- shared resources 108 e.g., memory, networking and so forth
- one or more applications are tombstoned applications 1 10r1 10 m . More particularly, in conventional mobile devices, applications are terminated shortly after they are no longer the foreground application. In previous devices, the application remained terminated (e.g., block 1 12) and had to be fully re-launched as a new instance. In some more
- each application instead may be tombstoned in contrast to terminated, meaning that the application is given a chance to save state, after which the process is torn down and a marker of its prior existence is kept on an application stack.
- the technology described herein is directed towards maintaining one or more applications as dormant applications 1 14 1 14 n , in which a dormant application (e.g., its process) is retained as resident in memory, in conjunction with maintaining the application's associated state and execution context. This allows a dormant application to be more rapidly activated (relative to tombstoned applications) to the foreground running state.
- a dormant application e.g., its process
- This allows a dormant application to be more rapidly activated (relative to tombstoned applications) to the foreground running state.
- FIG. 2 is a state diagram showing example states of an application once the user launches the application (block 222) and the application enters the running state 224.
- the application remains in the running state 224 until the user takes a user interaction, navigation-related action, namely a backward navigation action (block 226, e.g., back past the application in the stack, or a close the application action), which in response closes the application, or a forward navigation action (block 228), such as pressing the Start button, which deactivates the application.
- the shell / framework notifies the application and pauses for a duration (e.g., for up to ten seconds) to give the application time to prepare for becoming a dormant application. For example, the application is given time to persist memory, close any open files, and so forth.
- Pausing is represented in FIG. 2 by the pausing state 230, which when pausing completes (block 234) enters the dormant state 236.
- the application activated, block 240
- the application returns to the running state 224.
- the shell 102 detects when an application is deactivated, and moves it into the dormant state 236. When detected, the shell 102 performs certain operations to ensure that the dormant application is not able to interfere with the new foreground application. For example, the shell 102 cancels any cancellable requests, may block API utilization, releases exclusive hardware resources attached to the deactivated application, and suspends threads created by the application or on behalf of the application. The shell suspends the application's thread activity and prevents the background application from consuming CPU cycles. By doing so, dormant background applications act as if the process was terminated by the operating system and do not continue using the device's battery or slow down the device foreground activity.
- the shell may give the new application the display resource during the pause time so that the user does not have to wait the full ten seconds to perceive the change to the new foreground application.
- the foreground application may not be given the camera resource right away, e.g., in case the user inadvertently pressed the Start button, for example, and wants to return to the application that was running.
- the shell detaches resources from deactivated applications. Examples of such resources include the vibration controller, sound and media player, photo/video camera, location services, sensors, networking and so forth. By doing so, in the dormant state 236, dormant background applications act as if the process was terminated by the operating system and does not continue using device resources or prevent the application in the foreground from using these resources. [0029] The shell may release memory resources from dormant background applications to minimize the memory footprint in the operating system. The smaller the application memory footprint, the greater the number of dormant background applications that are able to reside in memory, and thus be quickly resumed.
- the shell 102 e.g., via a resource monitor component 120 (FIG. 1 , incorporated therein or coupled thereto) also may monitor usage of at least one resource (e.g., CPU usage) by the dormant application. More particularly, a general goal is that a dormant application performs no significant activity, including that no code runs; however some code (e.g., first party native
- each dormant application's CPU usage is checked. If still dormant and there is some CPU usage, (e.g., CPU usage > 0 or some other allowed threshold), the dormant application is moved to the tombstoned state 238 (FIG. 2). This may checked regardless of other state (e.g., not just when the device / phone is idle). Further, a progressive tightening policy may be used, e.g., the threshold may be non-zero and decrease over time.
- the shell may terminate the processes of dormant background applications, e.g., by tombstoning or fully terminating by not maintaining state / a marker. This frees up memory resources (and any other shared resources) for the application in the foreground.
- the system shell operates to detach exclusive use resources from underneath the application, and detach shared use resources from underneath the application.
- the shell pauses update notifications provided by a resource to the application. For cancellable requests that are pending, the shell cancels them; any non-cancellable requests are paused or given a completion notification.
- process (in-proc) native threads created on behalf of the application are stopped, and if possible, any out of process (out-of- proc) native threads created on behalf of the application are stopped. Any application resources that can be easily and quickly recreated are freed.
- the framework upon application activation, resumes the application threads and runs the normal failure paths for cancelled requests, and attaches resources on behalf of the application. More particularly, when resuming, the system shell operates to reattach exclusive use resources and restore their state. If possible, shared use resources are reattached and their state restored. Update
- notifications provided by a resource to the application are resumed.
- the normal failure path in the application is run. Any non-cancellable requests are resumed, and any pending completion notifications are fired.
- the shell recreates / resumes any in-proc native threads created on behalf of the application, and any out-of-proc native threads created on behalf of the application as needed. Freed resources are also recreated as needed.
- FIGS. 3A-4B are sequence diagrams directed towards a Windows® mobile device environment, generally showing how events trigger various components to participate in deactivating an application to the dormant state, and activating an application from the dormant state.
- FIG. 3A illustrates example combined control flows for a forward navigation scenario where an application is launching while an application (previously in the foreground) is deactivated (FIG. 3B).
- FIGS. 4A and 4B are sequence diagrams illustrating example combined control flows for resuming an activated application (FIG. 4A), and closing an application (FIG. 4B).
- the shell 102 comprises a server that hosts one or more client processes, e.g., the taskhost.exe 330 for each application.
- a shell execution manager 331 communicates with a client execution manager 332, which in turn signals a task host component 334.
- the task host component 334 communicates with a frame component 336 that handle pages exposed by application navigation, e.g., puts previous pages on a stack for navigation, manages buffers (including using an internal splash application to allocate image buffers) and so forth.
- the frame component generates events.
- the SLM/XNA and CLR components 338 and 340 refer to Silverlight®-based and common language runtimes, respectively, used in this example environment.
- the application code is represented via the app component 342. EXEMPLARY OPERATING ENVIRONMENT
- FIG. 5 illustrates an example of a suitable mobile device 500 on which aspects of the subject matter described herein may be implemented.
- the mobile device 500 is only one example of a device and is not intended to suggest any limitation as to the scope of use or functionality of aspects of the subject matter described herein. Neither should the mobile device 500 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in the exemplary mobile device 500.
- an exemplary device for implementing aspects of the subject matter described herein includes a mobile device 500.
- the mobile device 500 comprises a cell phone, a handheld device that allows voice communications with others, some other voice communications device, or the like.
- the mobile device 500 may be equipped with a camera for taking pictures, although this may not be required in other embodiments.
- the mobile device 500 may comprise a personal digital assistant (PDA), hand-held gaming device, notebook computer, printer, appliance including a set-top, media center, or other appliance, other mobile devices, or the like.
- PDA personal digital assistant
- the mobile device 500 may comprise devices that are generally considered non-mobile such as personal computers, servers, or the like.
- Components of the mobile device 500 may include, but are not limited to, a processing unit 505, system memory 510, and a bus 515 that couples various system components including the system memory 510 to the processing unit 505.
- the bus 515 may include any of several types of bus structures including a memory bus, memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures, and the like.
- the bus 515 allows data to be transmitted between various components of the mobile device 500.
- the mobile device 500 may include a variety of computer-readable media.
- Computer-readable media can be any available media that can be accessed by the mobile device 500 and includes both volatile and nonvolatile media, and removable and non-removable media.
- Computer-readable media may comprise computer storage media and
- Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules, or other data.
- Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD- ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the mobile device 500.
- Communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
- modulated data signal means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
- communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, Bluetooth®, Wireless USB, infrared, WiFi, WiMAX, and other wireless media. Combinations of any of the above should also be included within the scope of computer-readable media.
- the system memory 510 includes computer storage media in the form of volatile and/or nonvolatile memory and may include read only memory (ROM) and random access memory (RAM).
- ROM read only memory
- RAM random access memory
- operating system code 520 is sometimes included in ROM although, in other embodiments, this is not required.
- application programs 525 are often placed in RAM although again, in other embodiments, application programs may be placed in ROM or in other computer-readable memory.
- the heap 530 provides memory for state associated with the operating system 520 and the application programs 525. For example, the operating system 520 and application programs 525 may store variables and data structures in the heap 530 during their operations.
- the mobile device 500 may also include other removable/non-removable, volatile/nonvolatile memory.
- FIG. 5 illustrates a flash card
- the mobile device 500 may interface with these types of non-volatile removable memory via a removable memory interface 531 , or may be connected via a universal serial bus (USB), IEEE 5394, one or more of the wired port(s) 540, or antenna(s) 565.
- the removable memory devices 535-537 may interface with the mobile device via the communications module(s) 532. In some embodiments, not all of these types of memory may be included on a single mobile device. In other embodiments, one or more of these and other types of removable memory may be included on a single mobile device.
- the hard disk drive 536 may be connected in such a way as to be more permanently attached to the mobile device 500.
- the hard disk drive 536 may be connected to an interface such as parallel advanced technology attachment (PATA), serial advanced technology attachment (SATA) or otherwise, which may be connected to the bus 515.
- PATA parallel advanced technology attachment
- SATA serial advanced technology attachment
- removing the hard drive may involve removing a cover of the mobile device 500 and removing screws or other fasteners that connect the hard drive 536 to support structures within the mobile device 500.
- the removable memory devices 535-537 and their associated computer storage media provide storage of computer-readable instructions, program modules, data structures, and other data for the mobile device 500.
- the removable memory device or devices 535-537 may store images taken by the mobile device 500, voice recordings, contact information, programs, data for the programs and so forth.
- a user may enter commands and information into the mobile device 500 through input devices such as a key pad 541 and the microphone 542.
- the display 543 may be touch-sensitive screen and may allow a user to enter commands and information thereon.
- the key pad 541 and display 543 may be connected to the processing unit 505 through a user input interface 550 that is coupled to the bus 515, but may also be connected by other interface and bus structures, such as the communications module(s) 532 and wired port(s) 540.
- Motion detection 552 can be used to determine gestures made with the device 500.
- a user may communicate with other users via speaking into the
- the mobile device 500 may include a video unit 560 that provides signals to drive a camera 561 .
- the video unit 560 may also receive images obtained by the camera 561 and provide these images to the processing unit 505 and/or memory included on the mobile device 500.
- the images obtained by the camera 561 may comprise video, one or more images that do not form a video, or some combination thereof.
- the communication module(s) 532 may provide signals to and receive signals from one or more antenna(s) 565.
- One of the antenna(s) 565 may transmit and receive messages for a cell phone network.
- Another antenna may i o transmit and receive Bluetooth® messages.
- Yet another antenna (or a shared antenna) may transmit and receive network messages via a wireless Ethernet network standard.
- an antenna provides location-based information, e.g., GPS signals to a GPS interface and mechanism 572.
- the GPS mechanism 572 15 makes available the corresponding GPS data (e.g., time and coordinates) for processing.
- a single antenna may be used to transmit and/or receive messages for more than one type of network.
- a single antenna may transmit and receive voice and packet messages.
- the mobile device 500 may connect to one or more remote devices.
- the remote devices may include a personal computer, a server, a router, a network PC, a cell phone, a media playback device, a peer device or other common network node, and typically includes many or all of the elements described above relative to the mobile device 25 500.
- computers server computers, hand-held or laptop devices, multiprocessor systems, microcontroller-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
- aspects of the subject matter described herein may be described in the general context of computer-executable instructions, such as program modules, being executed by a mobile device.
- program modules include routines, programs, objects, components, data structures, and so forth, which perform particular tasks or implement particular abstract data types.
- aspects of the subject matter described herein may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing
- program modules may be located in both local and remote computer storage media including memory storage devices.
- server may be used herein, it will be recognized that this term may also encompass a client, a set of one or more processes distributed on one or more computers, one or more stand-alone storage devices, a set of one or more other devices, a combination of one or more of the above, and the like.
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)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The subject disclosure is directed towards a technology in which a mobile device maintains an application in a dormant state in which the application's process is not terminated and remains in memory, but the application cannot execute code. Further, state and execution context are maintained for the application, allowing the application to be quickly and efficiently resumed into the running state. To prevent the application from executing code while dormant, thread activity is suspended, requests canceled, completed or paused, resources detached, and so forth. Resource usage may be monitored for dormant applications, to remove a misbehaving dormant application process from memory if improperly using resources.
Description
DORMANT BACKGROUND APPLICATIONS ON MOBILE DEVICES
BACKGROUND
[0001] On a contemporary mobile device, if an application is running and is subsequently replaced in the foreground by another application or experience, the first application is deactivated and the application's process is terminated by the operating system. An application may be deactivated if the user presses the Start button or if the device timeout causes the lock screen to be engaged, for example.
[0002] In one system, the user may return to the application to continue an application task / experience from where the user left it. However, when returning to an application that was terminated by the operating system, the user needs to wait for the device application framework to initialize, and for the application itself to load saved state and to resume the previous experience. Resuming in this way can seem relatively slow and thus provide a somewhat undesirable user experience.
SUMMARY
[0003] This Summary is provided to introduce a selection of representative concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used in any way that would limit the scope of the claimed subject matter.
[0004] Briefly, various aspects of the subject matter described herein are directed towards a technology by which an application is moved from a running (e.g., foreground) state into a dormant state in which the application process is retained in memory. Further, state data and execution context information are maintained in association with the application, which allows the application to be activated to the running state, e.g., in a rapid, efficient manner. In one aspect, moving the application from the running state into the dormant state includes pausing for a time duration to allow the application to prepare for the dormant state, e.g., persist data from memory, close any open files, and so forth.
[0005] In one aspect, moving the foreground application from a running state into the dormant state includes detaching at least one resource from the application, pausing at least one update notification provided by a resource to the application, canceling at least one cancellable request, pausing at least one non-cancellable
request, stopping at least one thread, and/or freeing at least one application resource (e.g., memory allocated to the application).
[0006] To activate the application back from the dormant state to a foreground application in the running state, the state data and the execution context
5 information is accessed, and at least one resource is attached to the application.
Also described is resuming at least one update notification provided by a resource to the application, running a failure path for at least one cancellable request, resuming at least one non-cancellable request, firing at least one notification, recreating an resuming at least one thread, and/or recreating at least one
i o application resource.
[0007] In one aspect, a resource monitor is configured to evaluate whether the application, when in the dormant state, is using at least one resource (e.g., CPU) beyond an allowed threshold. If so, the shell is configured to move the application from the dormant state into another state in which the process of the application is
15 not retained in memory.
[0008] Other advantages may become apparent from the following detailed description when taken in conjunction with the drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The present invention is illustrated by way of example and not limited in
20 the accompanying figures in which like reference numerals indicate similar
elements and in which:
[0010] FIGURE 1 is a block diagram representing example applications in different states hosted by an operating system shell, including applications in a dormant state.
25 [001 1] FIG. 2 is state diagram showing example states for applications, including a dormant state, and transitions between the states.
[0012] FIG. 3A is a sequence / control diagram representing an example flow of events / control among components when launching an application.
[0013] FIG. 3B is a sequence / control diagram representing an example flow of
30 events / control among components when deactivating an application.
[0014] FIG. 4A is a sequence / control diagram representing an example flow of events / control among components when resuming a deactivated application from a dormant state.
[0015] FIG. 4B is a sequence / control diagram representing an example flow of events / control among components when closing an application.
[0016] FIG. 5 is a block diagram representing an exemplary non-limiting computing system or operating environment, e.g., in the example of a mobile phone device, in which one or more aspects of various embodiments described herein can be implemented.
DETAILED DESCRIPTION
[0017] Various aspects of the technology described herein are generally directed towards a technology in which a mobile device or the like maintains an application in a dormant state, generally corresponding to an application that cannot execute any code when in the background. To this end, the shell component / framework that comprises the (e.g., Windows® phone) application platform retains the application process in memory, and maintains state and execution context for the application, but does not allow the process to run. For example, the shell may suspend thread activity within background applications. The dormant background application regains the ability to execute code when the user brings the application to foreground.
[0018] In one implementation, the operating system does not terminate the application's process when deactivating an application. Instead, applications may go in the background and remain resident in memory. This eliminates the need to reinitialize the application and reload state, which implicitly means faster application resume time.
[0019] It should be understood that any of the examples herein are non-limiting. For one, example implementations and dormant applications are described in the context of a Windows® mobile device operating environment, however this is only for purposes of explanation, and other operating environments may benefit from the concept of a dormant application state as described herein. As such, the present invention is not limited to any particular embodiments, aspects, concepts, structures, functionalities or examples described herein. Rather, any of the embodiments, aspects, concepts, structures, functionalities or examples described herein are non-limiting, and the present invention may be used various ways that provide benefits and advantages in computing and application / task switching in general.
[0020] FIG. 1 is a generalized block diagram showing various example components in a mobile device environment. A plurality of applications are controlled by a shell 102 (application framework), which provides access to device resources, including exclusive resources 104 (e.g., the display) that only one application, usually only the foreground application 106, typically can access, and shared resources 108 (e.g., memory, networking and so forth) that the foreground application 106 and other applications may use.
[0021] As exemplified in FIG. 1 , one or more applications are tombstoned applications 1 10r1 10m. More particularly, in conventional mobile devices, applications are terminated shortly after they are no longer the foreground application. In previous devices, the application remained terminated (e.g., block 1 12) and had to be fully re-launched as a new instance. In some more
contemporary mobile devices, if the UX (user experience, including user interface components) provides mechanisms for the user to navigate back to application instances, each application instead may be tombstoned in contrast to terminated, meaning that the application is given a chance to save state, after which the process is torn down and a marker of its prior existence is kept on an application stack.
[0022] The technology described herein is directed towards maintaining one or more applications as dormant applications 1 14 1 14n, in which a dormant application (e.g., its process) is retained as resident in memory, in conjunction with maintaining the application's associated state and execution context. This allows a dormant application to be more rapidly activated (relative to tombstoned applications) to the foreground running state.
[0023] FIG. 2 is a state diagram showing example states of an application once the user launches the application (block 222) and the application enters the running state 224. In this example, the application remains in the running state 224 until the user takes a user interaction, navigation-related action, namely a backward navigation action (block 226, e.g., back past the application in the stack, or a close the application action), which in response closes the application, or a forward navigation action (block 228), such as pressing the Start button, which deactivates the application.
[0024] When deactivated, the shell / framework notifies the application and pauses for a duration (e.g., for up to ten seconds) to give the application time to prepare for becoming a dormant application. For example, the application is given time to persist memory, close any open files, and so forth.
[0025] Pausing is represented in FIG. 2 by the pausing state 230, which when pausing completes (block 234) enters the dormant state 236. In the event the user returns to the application (activated, block 240) before the full pause time is reached, the application returns to the running state 224.
[0026] The shell 102 detects when an application is deactivated, and moves it into the dormant state 236. When detected, the shell 102 performs certain operations to ensure that the dormant application is not able to interfere with the new foreground application. For example, the shell 102 cancels any cancellable requests, may block API utilization, releases exclusive hardware resources attached to the deactivated application, and suspends threads created by the application or on behalf of the application. The shell suspends the application's thread activity and prevents the background application from consuming CPU cycles. By doing so, dormant background applications act as if the process was terminated by the operating system and do not continue using the device's battery or slow down the device foreground activity.
[0027] Note that for performance / perceived performance, some of these operations may be in parallel with preparing the new foreground application. For example, the shell may give the new application the display resource during the pause time so that the user does not have to wait the full ten seconds to perceive the change to the new foreground application. The foreground application may not be given the camera resource right away, e.g., in case the user inadvertently pressed the Start button, for example, and wants to return to the application that was running.
[0028] The shell detaches resources from deactivated applications. Examples of such resources include the vibration controller, sound and media player, photo/video camera, location services, sensors, networking and so forth. By doing so, in the dormant state 236, dormant background applications act as if the process was terminated by the operating system and does not continue using device resources or prevent the application in the foreground from using these resources.
[0029] The shell may release memory resources from dormant background applications to minimize the memory footprint in the operating system. The smaller the application memory footprint, the greater the number of dormant background applications that are able to reside in memory, and thus be quickly resumed.
[0030] The shell 102, e.g., via a resource monitor component 120 (FIG. 1 , incorporated therein or coupled thereto) also may monitor usage of at least one resource (e.g., CPU usage) by the dormant application. More particularly, a general goal is that a dormant application performs no significant activity, including that no code runs; however some code (e.g., first party native
applications) may continue to run code. Thus, after the ten second duration to allow preparation for becoming dormant, the shell may enforce resource non- usage. To this end, periodically (e.g., every five minutes) or according to some other event, each dormant application's CPU usage is checked. If still dormant and there is some CPU usage, (e.g., CPU usage > 0 or some other allowed threshold), the dormant application is moved to the tombstoned state 238 (FIG. 2). This may checked regardless of other state (e.g., not just when the device / phone is idle). Further, a progressive tightening policy may be used, e.g., the threshold may be non-zero and decrease over time.
[0031] If necessary, such as when the operating system reaches out-of-memory conditions, the shell may terminate the processes of dormant background applications, e.g., by tombstoning or fully terminating by not maintaining state / a marker. This frees up memory resources (and any other shared resources) for the application in the foreground.
[0032] To summarize, when paused, the system shell operates to detach exclusive use resources from underneath the application, and detach shared use resources from underneath the application. The shell pauses update notifications provided by a resource to the application. For cancellable requests that are pending, the shell cancels them; any non-cancellable requests are paused or given a completion notification. In process (in-proc) native threads created on behalf of the application are stopped, and if possible, any out of process (out-of- proc) native threads created on behalf of the application are stopped. Any application resources that can be easily and quickly recreated are freed.
[0033] Turning to activating / resuming the application from the dormant state, upon application activation, the framework resumes the application threads and runs the normal failure paths for cancelled requests, and attaches resources on behalf of the application. More particularly, when resuming, the system shell operates to reattach exclusive use resources and restore their state. If possible, shared use resources are reattached and their state restored. Update
notifications provided by a resource to the application are resumed. For cancellable requests that were cancelled, the normal failure path in the application is run. Any non-cancellable requests are resumed, and any pending completion notifications are fired. The shell recreates / resumes any in-proc native threads created on behalf of the application, and any out-of-proc native threads created on behalf of the application as needed. Freed resources are also recreated as needed.
[0034] FIGS. 3A-4B are sequence diagrams directed towards a Windows® mobile device environment, generally showing how events trigger various components to participate in deactivating an application to the dormant state, and activating an application from the dormant state. FIG. 3A illustrates example combined control flows for a forward navigation scenario where an application is launching while an application (previously in the foreground) is deactivated (FIG. 3B). FIGS. 4A and 4B are sequence diagrams illustrating example combined control flows for resuming an activated application (FIG. 4A), and closing an application (FIG. 4B).
[0035] In FIGS. 3A-4B, the shell 102 comprises a server that hosts one or more client processes, e.g., the taskhost.exe 330 for each application. To start a launched task (FIG. 3A), a shell execution manager 331 communicates with a client execution manager 332, which in turn signals a task host component 334. In FIGS. 3A-4D, the task host component 334 communicates with a frame component 336 that handle pages exposed by application navigation, e.g., puts previous pages on a stack for navigation, manages buffers (including using an internal splash application to allocate image buffers) and so forth. As the user interacts via pages, the frame component generates events. The SLM/XNA and CLR components 338 and 340 refer to Silverlight®-based and common language runtimes, respectively, used in this example environment. The application code is represented via the app component 342.
EXEMPLARY OPERATING ENVIRONMENT
[0036] FIG. 5 illustrates an example of a suitable mobile device 500 on which aspects of the subject matter described herein may be implemented. The mobile device 500 is only one example of a device and is not intended to suggest any limitation as to the scope of use or functionality of aspects of the subject matter described herein. Neither should the mobile device 500 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in the exemplary mobile device 500.
[0037] With reference to FIG. 5, an exemplary device for implementing aspects of the subject matter described herein includes a mobile device 500. In some embodiments, the mobile device 500 comprises a cell phone, a handheld device that allows voice communications with others, some other voice communications device, or the like. In these embodiments, the mobile device 500 may be equipped with a camera for taking pictures, although this may not be required in other embodiments. In other embodiments, the mobile device 500 may comprise a personal digital assistant (PDA), hand-held gaming device, notebook computer, printer, appliance including a set-top, media center, or other appliance, other mobile devices, or the like. In yet other embodiments, the mobile device 500 may comprise devices that are generally considered non-mobile such as personal computers, servers, or the like.
[0038] Components of the mobile device 500 may include, but are not limited to, a processing unit 505, system memory 510, and a bus 515 that couples various system components including the system memory 510 to the processing unit 505. The bus 515 may include any of several types of bus structures including a memory bus, memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures, and the like. The bus 515 allows data to be transmitted between various components of the mobile device 500.
[0039] The mobile device 500 may include a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by the mobile device 500 and includes both volatile and nonvolatile media, and removable and non-removable media. By way of example, and not limitation, computer-readable media may comprise computer storage media and
communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology
for storage of information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD- ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the mobile device 500.
[0040] Communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, Bluetooth®, Wireless USB, infrared, WiFi, WiMAX, and other wireless media. Combinations of any of the above should also be included within the scope of computer-readable media.
[0041] The system memory 510 includes computer storage media in the form of volatile and/or nonvolatile memory and may include read only memory (ROM) and random access memory (RAM). On a mobile device such as a cell phone, operating system code 520 is sometimes included in ROM although, in other embodiments, this is not required. Similarly, application programs 525 are often placed in RAM although again, in other embodiments, application programs may be placed in ROM or in other computer-readable memory. The heap 530 provides memory for state associated with the operating system 520 and the application programs 525. For example, the operating system 520 and application programs 525 may store variables and data structures in the heap 530 during their operations.
[0042] The mobile device 500 may also include other removable/non-removable, volatile/nonvolatile memory. By way of example, FIG. 5 illustrates a flash card
535, a hard disk drive 536, and a memory stick 537. The hard disk drive 536 may be miniaturized to fit in a memory slot, for example. The mobile device 500 may interface with these types of non-volatile removable memory via a removable memory interface 531 , or may be connected via a universal serial bus (USB),
IEEE 5394, one or more of the wired port(s) 540, or antenna(s) 565. In these embodiments, the removable memory devices 535-537 may interface with the mobile device via the communications module(s) 532. In some embodiments, not all of these types of memory may be included on a single mobile device. In other embodiments, one or more of these and other types of removable memory may be included on a single mobile device.
[0043] In some embodiments, the hard disk drive 536 may be connected in such a way as to be more permanently attached to the mobile device 500. For example, the hard disk drive 536 may be connected to an interface such as parallel advanced technology attachment (PATA), serial advanced technology attachment (SATA) or otherwise, which may be connected to the bus 515. In such
embodiments, removing the hard drive may involve removing a cover of the mobile device 500 and removing screws or other fasteners that connect the hard drive 536 to support structures within the mobile device 500.
[0044] The removable memory devices 535-537 and their associated computer storage media, discussed above and illustrated in FIG. 5, provide storage of computer-readable instructions, program modules, data structures, and other data for the mobile device 500. For example, the removable memory device or devices 535-537 may store images taken by the mobile device 500, voice recordings, contact information, programs, data for the programs and so forth.
[0045] A user may enter commands and information into the mobile device 500 through input devices such as a key pad 541 and the microphone 542. In some embodiments, the display 543 may be touch-sensitive screen and may allow a user to enter commands and information thereon. The key pad 541 and display 543 may be connected to the processing unit 505 through a user input interface 550 that is coupled to the bus 515, but may also be connected by other interface and bus structures, such as the communications module(s) 532 and wired port(s) 540. Motion detection 552 can be used to determine gestures made with the device 500.
[0046] A user may communicate with other users via speaking into the
microphone 542 and via text messages that are entered on the key pad 541 or a touch sensitive display 543, for example. The audio unit 555 may provide electrical signals to drive the speaker 544 as well as receive and digitize audio signals received from the microphone 542.
[0047] The mobile device 500 may include a video unit 560 that provides signals to drive a camera 561 . The video unit 560 may also receive images obtained by the camera 561 and provide these images to the processing unit 505 and/or memory included on the mobile device 500. The images obtained by the camera 5 561 may comprise video, one or more images that do not form a video, or some combination thereof.
[0048] The communication module(s) 532 may provide signals to and receive signals from one or more antenna(s) 565. One of the antenna(s) 565 may transmit and receive messages for a cell phone network. Another antenna may i o transmit and receive Bluetooth® messages. Yet another antenna (or a shared antenna) may transmit and receive network messages via a wireless Ethernet network standard.
[0049] Still further, an antenna provides location-based information, e.g., GPS signals to a GPS interface and mechanism 572. In turn, the GPS mechanism 572 15 makes available the corresponding GPS data (e.g., time and coordinates) for processing.
[0050] In some embodiments, a single antenna may be used to transmit and/or receive messages for more than one type of network. For example, a single antenna may transmit and receive voice and packet messages.
20 [0051] When operated in a networked environment, the mobile device 500 may connect to one or more remote devices. The remote devices may include a personal computer, a server, a router, a network PC, a cell phone, a media playback device, a peer device or other common network node, and typically includes many or all of the elements described above relative to the mobile device 25 500.
[0052] Aspects of the subject matter described herein are operational with numerous other general purpose or special purpose computing system
environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with aspects of
30 the subject matter described herein include, but are not limited to, personal
computers, server computers, hand-held or laptop devices, multiprocessor systems, microcontroller-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed
computing environments that include any of the above systems or devices, and the like.
[0053] Aspects of the subject matter described herein may be described in the general context of computer-executable instructions, such as program modules, being executed by a mobile device. Generally, program modules include routines, programs, objects, components, data structures, and so forth, which perform particular tasks or implement particular abstract data types. Aspects of the subject matter described herein may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing
environment, program modules may be located in both local and remote computer storage media including memory storage devices.
[0054] Furthermore, although the term server may be used herein, it will be recognized that this term may also encompass a client, a set of one or more processes distributed on one or more computers, one or more stand-alone storage devices, a set of one or more other devices, a combination of one or more of the above, and the like.
CONCLUSION
[0055] While the invention is susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described above in detail. It should be understood, however, that there is no intention to limit the invention to the specific forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents falling within the spirit and scope of the invention.
Claims
1 . In a computing environment, a method performed at least in part on at least one processor, comprising, moving an application from a running state into a dormant state, including retaining an application process in memory, and maintaining state data and execution context information in association with the application that allows the application to be activated to the running state.
2. The method of claim 1 wherein moving the application from the running state into the dormant state includes pausing for a time duration to allow the application to prepare for the dormant state.
3. The method of claim 1 wherein moving the application from the running state into the dormant state occurs in response to detecting user interaction corresponding to forward navigation.
4. The method of claim 1 further comprising, activating the application from the dormant state into a running state, wherein moving the application from the dormant state into the running state occurs in response to detecting user interaction corresponding to backward navigation.
5. The method of claim 1 wherein moving the application from the running state into the dormant state includes suspending at least one thread created by the application or on behalf of the application, canceling at least one cancellable request, blocking utilization of APIs by the application, or releasing at least one resource attached to the application, or any combination of suspending at least one thread created by the application or on behalf of the application, canceling at least one cancellable request, blocking utilization of APIs by the application, or releasing at least one resource attached to the application.
6. The method of claim 1 wherein the application is dormant on a mobile computing device, and further comprising, determining that the device needs more available memory, terminating the application process, including moving the application from the dormant state into a terminated state, and reclaiming at least some of the memory that was used for retaining the application process.
7. The method of claim 1 further comprising, monitoring resource usage of the dormant application, and if the resource usage exceeds a threshold, moving the application from the dormant state into a tombstoned state.
8. In a computing environment, a system comprising, a shell
component configured to transition applications between states, including from a running state into a dormant state in which a process of the application is retained in memory, and a resource monitor component coupled to the shell component, the resource monitor component configured to evaluate whether the application when in the dormant state is using at least one resource beyond an allowed threshold, and if so, the shell component configured to move the application from the dormant state into a state in which the process of the application is not retained in memory.
9. The system of claim 8 wherein the shell component is further configured to activate the application from the dormant state to a running state, including by attaching at least one resource to the application, resuming at least one update notification provided by a resource to the application, running a failure path for at least one cancellable request, resuming at least one non-cancellable request, firing at least one notification, recreating an resuming at least one thread, or recreating at least one application resource, or any combination thereof.
10. One or more computer-readable media having computer-executable instructions, which when executed perform steps, comprising,
moving a foreground application from a running state into a dormant state, including pausing for a time to allow the application to prepare for the dormant state, detaching at least one resource from the application, blocking API utilization, pausing at least one update notification provided by a resource to the application, canceling at least one cancellable request, pausing at least one non-cancellable request, stopping at least one thread, or freeing at least one application resource, or any combination thereof; and
moving the application from the dormant state to a foreground application in the running state, including by attaching at least one resource to the application, resuming at least one update notification provided by a resource to the application, allowing API utilization, running a failure path for at least one cancellable request, resuming at least one non-cancellable request, firing at least one notification, recreating an resuming at least one thread, or recreating at least one application resource, or any combination thereof.
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201161442735P | 2011-02-14 | 2011-02-14 | |
US61/442,735 | 2011-02-14 | ||
US13/164,497 | 2011-06-20 | ||
US13/164,497 US20120210321A1 (en) | 2011-02-14 | 2011-06-20 | Dormant Background Applications on Mobile Devices |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2012112331A2 true WO2012112331A2 (en) | 2012-08-23 |
WO2012112331A3 WO2012112331A3 (en) | 2012-10-26 |
Family
ID=46673091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2012/024024 WO2012112331A2 (en) | 2011-02-14 | 2012-02-06 | Dormant background applications on mobile devices |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN102681896A (en) |
TW (1) | TW201241640A (en) |
WO (1) | WO2012112331A2 (en) |
Cited By (65)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014197260A1 (en) * | 2013-06-02 | 2014-12-11 | Microsoft Corporation | Idle worker-process page-out |
US20170285977A1 (en) * | 2016-04-01 | 2017-10-05 | Intel Corporation | Methods and apparatus to manage a process under a memory constraint |
EP3506093A4 (en) * | 2016-09-09 | 2019-09-04 | Huawei Technologies Co., Ltd. | Application process management method and terminal device |
US10747498B2 (en) | 2015-09-08 | 2020-08-18 | Apple Inc. | Zero latency digital assistant |
US10978090B2 (en) | 2013-02-07 | 2021-04-13 | Apple Inc. | Voice trigger for a digital assistant |
US10984798B2 (en) | 2018-06-01 | 2021-04-20 | Apple Inc. | Voice interaction at a primary device to access call functionality of a companion device |
US11009970B2 (en) | 2018-06-01 | 2021-05-18 | Apple Inc. | Attention aware virtual assistant dismissal |
US11037565B2 (en) | 2016-06-10 | 2021-06-15 | Apple Inc. | Intelligent digital assistant in a multi-tasking environment |
US11070949B2 (en) | 2015-05-27 | 2021-07-20 | Apple Inc. | Systems and methods for proactively identifying and surfacing relevant content on an electronic device with a touch-sensitive display |
US11087759B2 (en) | 2015-03-08 | 2021-08-10 | Apple Inc. | Virtual assistant activation |
US11120372B2 (en) | 2011-06-03 | 2021-09-14 | Apple Inc. | Performing actions associated with task items that represent tasks to perform |
US11133008B2 (en) | 2014-05-30 | 2021-09-28 | Apple Inc. | Reducing the need for manual start/end-pointing and trigger phrases |
US11152002B2 (en) | 2016-06-11 | 2021-10-19 | Apple Inc. | Application integration with a digital assistant |
US11169616B2 (en) | 2018-05-07 | 2021-11-09 | Apple Inc. | Raise to speak |
US11237797B2 (en) | 2019-05-31 | 2022-02-01 | Apple Inc. | User activity shortcut suggestions |
US11257504B2 (en) | 2014-05-30 | 2022-02-22 | Apple Inc. | Intelligent assistant for home automation |
CN114312618A (en) * | 2021-12-09 | 2022-04-12 | 中汽创智科技有限公司 | Control method and system for Internet of vehicles system |
US11321116B2 (en) | 2012-05-15 | 2022-05-03 | Apple Inc. | Systems and methods for integrating third party services with a digital assistant |
US11348582B2 (en) | 2008-10-02 | 2022-05-31 | Apple Inc. | Electronic devices with voice command and contextual data processing capabilities |
CN114585054A (en) * | 2022-02-23 | 2022-06-03 | 北京小米移动软件有限公司 | WIFI connection control method and device and storage medium |
US11380310B2 (en) | 2017-05-12 | 2022-07-05 | Apple Inc. | Low-latency intelligent automated assistant |
US11388291B2 (en) | 2013-03-14 | 2022-07-12 | Apple Inc. | System and method for processing voicemail |
US11405466B2 (en) | 2017-05-12 | 2022-08-02 | Apple Inc. | Synchronization and task delegation of a digital assistant |
US11423886B2 (en) | 2010-01-18 | 2022-08-23 | Apple Inc. | Task flow identification based on user intent |
US11431642B2 (en) | 2018-06-01 | 2022-08-30 | Apple Inc. | Variable latency device coordination |
US11467802B2 (en) | 2017-05-11 | 2022-10-11 | Apple Inc. | Maintaining privacy of personal information |
US11500672B2 (en) | 2015-09-08 | 2022-11-15 | Apple Inc. | Distributed personal assistant |
US11516537B2 (en) | 2014-06-30 | 2022-11-29 | Apple Inc. | Intelligent automated assistant for TV user interactions |
US11526368B2 (en) | 2015-11-06 | 2022-12-13 | Apple Inc. | Intelligent automated assistant in a messaging environment |
US11532306B2 (en) | 2017-05-16 | 2022-12-20 | Apple Inc. | Detecting a trigger of a digital assistant |
US11580990B2 (en) | 2017-05-12 | 2023-02-14 | Apple Inc. | User-specific acoustic models |
US11599331B2 (en) | 2017-05-11 | 2023-03-07 | Apple Inc. | Maintaining privacy of personal information |
US11657813B2 (en) | 2019-05-31 | 2023-05-23 | Apple Inc. | Voice identification in digital assistant systems |
US11670289B2 (en) | 2014-05-30 | 2023-06-06 | Apple Inc. | Multi-command single utterance input method |
US11671920B2 (en) | 2007-04-03 | 2023-06-06 | Apple Inc. | Method and system for operating a multifunction portable electronic device using voice-activation |
US11675829B2 (en) | 2017-05-16 | 2023-06-13 | Apple Inc. | Intelligent automated assistant for media exploration |
US11675491B2 (en) | 2019-05-06 | 2023-06-13 | Apple Inc. | User configurable task triggers |
US11696060B2 (en) | 2020-07-21 | 2023-07-04 | Apple Inc. | User identification using headphones |
US11705130B2 (en) | 2019-05-06 | 2023-07-18 | Apple Inc. | Spoken notifications |
US11710482B2 (en) | 2018-03-26 | 2023-07-25 | Apple Inc. | Natural assistant interaction |
CN116567132A (en) * | 2022-01-28 | 2023-08-08 | 荣耀终端有限公司 | Power consumption control method and device |
US11727219B2 (en) | 2013-06-09 | 2023-08-15 | Apple Inc. | System and method for inferring user intent from speech inputs |
US11755276B2 (en) | 2020-05-12 | 2023-09-12 | Apple Inc. | Reducing description length based on confidence |
US11765209B2 (en) | 2020-05-11 | 2023-09-19 | Apple Inc. | Digital assistant hardware abstraction |
US11783815B2 (en) | 2019-03-18 | 2023-10-10 | Apple Inc. | Multimodality in digital assistant systems |
US11790914B2 (en) | 2019-06-01 | 2023-10-17 | Apple Inc. | Methods and user interfaces for voice-based control of electronic devices |
US11798547B2 (en) | 2013-03-15 | 2023-10-24 | Apple Inc. | Voice activated device for use with a voice-based digital assistant |
US11809783B2 (en) | 2016-06-11 | 2023-11-07 | Apple Inc. | Intelligent device arbitration and control |
US11809483B2 (en) | 2015-09-08 | 2023-11-07 | Apple Inc. | Intelligent automated assistant for media search and playback |
US11838734B2 (en) | 2020-07-20 | 2023-12-05 | Apple Inc. | Multi-device audio adjustment coordination |
US11854539B2 (en) | 2018-05-07 | 2023-12-26 | Apple Inc. | Intelligent automated assistant for delivering content from user experiences |
US11853647B2 (en) | 2015-12-23 | 2023-12-26 | Apple Inc. | Proactive assistance based on dialog communication between devices |
US11853536B2 (en) | 2015-09-08 | 2023-12-26 | Apple Inc. | Intelligent automated assistant in a media environment |
US11888791B2 (en) | 2019-05-21 | 2024-01-30 | Apple Inc. | Providing message response suggestions |
US11886805B2 (en) | 2015-11-09 | 2024-01-30 | Apple Inc. | Unconventional virtual assistant interactions |
US11893992B2 (en) | 2018-09-28 | 2024-02-06 | Apple Inc. | Multi-modal inputs for voice commands |
US11914848B2 (en) | 2020-05-11 | 2024-02-27 | Apple Inc. | Providing relevant data items based on context |
US11947873B2 (en) | 2015-06-29 | 2024-04-02 | Apple Inc. | Virtual assistant for media playback |
US12001933B2 (en) | 2015-05-15 | 2024-06-04 | Apple Inc. | Virtual assistant in a communication session |
US12010262B2 (en) | 2013-08-06 | 2024-06-11 | Apple Inc. | Auto-activating smart responses based on activities from remote devices |
US12014118B2 (en) | 2017-05-15 | 2024-06-18 | Apple Inc. | Multi-modal interfaces having selection disambiguation and text modification capability |
US12051413B2 (en) | 2015-09-30 | 2024-07-30 | Apple Inc. | Intelligent device identification |
US12067985B2 (en) | 2018-06-01 | 2024-08-20 | Apple Inc. | Virtual assistant operations in multi-device environments |
US12073147B2 (en) | 2013-06-09 | 2024-08-27 | Apple Inc. | Device, method, and graphical user interface for enabling conversation persistence across two or more instances of a digital assistant |
US12087308B2 (en) | 2010-01-18 | 2024-09-10 | Apple Inc. | Intelligent automated assistant |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981906A (en) * | 2012-11-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | Application program background process management method and device |
GB2514093B (en) | 2013-03-28 | 2016-10-19 | Microsoft Technology Licensing Llc | Receiving a communication event |
CN104375887B (en) * | 2013-08-16 | 2019-06-25 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN105183123B (en) * | 2015-09-21 | 2018-01-09 | 北京元心科技有限公司 | A kind of method and apparatus that power management is carried out in the multisystem based on container |
CN105554575B (en) * | 2015-12-11 | 2019-12-03 | 北京元心科技有限公司 | Method and device for processing media playing function in multiple systems |
US10268254B2 (en) * | 2016-01-15 | 2019-04-23 | Google Llc | Systems and methods for extending battery life by monitoring mobile application activity |
US10462745B2 (en) | 2016-01-15 | 2019-10-29 | Google Llc | Systems and methods for extending battery life by monitoring device activity |
CN105867979A (en) * | 2016-04-15 | 2016-08-17 | 奇酷软件(深圳)有限公司 | Application management method, application management device and terminal |
CN106055406A (en) * | 2016-05-20 | 2016-10-26 | 深圳天珑无线科技有限公司 | Program operation method and terminal |
US10520979B2 (en) | 2016-06-10 | 2019-12-31 | Apple Inc. | Enhanced application preview mode |
US10725761B2 (en) | 2016-06-10 | 2020-07-28 | Apple Inc. | Providing updated application data for previewing applications on a display |
US10747467B2 (en) * | 2016-06-10 | 2020-08-18 | Apple Inc. | Memory management for application loading |
US11196875B2 (en) * | 2017-09-20 | 2021-12-07 | Fujifilm Business Innovation Corp. | Application apparatus, image processing apparatus, and non-transitory computer readable medium with plurality of recovery methods for applications switching to be in operation target state |
CN108920263B (en) * | 2018-06-08 | 2020-10-13 | 上海连尚网络科技有限公司 | Method and apparatus for application retention |
CN117692998B (en) * | 2023-07-27 | 2024-09-13 | 荣耀终端有限公司 | Data acquisition method under abnormal dormancy condition and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040194153A1 (en) * | 2003-03-24 | 2004-09-30 | Sony Corporation And Sony Electronics Inc. | Conservation of system resources by efficiently activating/de-activating applications |
US20090113444A1 (en) * | 2007-10-31 | 2009-04-30 | Google Inc. | Application Management |
US20100281481A1 (en) * | 2009-04-30 | 2010-11-04 | Nokia Corporation | Apparatus and method for providing a user interface within a computing device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003504753A (en) * | 1999-07-13 | 2003-02-04 | サン・マイクロシステムズ・インコーポレイテッド | Method and apparatus for managing an application according to an application life cycle |
US7512952B1 (en) * | 2001-04-06 | 2009-03-31 | Palmsource, Inc. | Task switching with state preservation for programs running on an electronic device |
WO2004061662A2 (en) * | 2002-12-31 | 2004-07-22 | Globespanvirata Incorporated | System and method for providing balanced thread scheduling |
JP2007508612A (en) * | 2003-10-10 | 2007-04-05 | コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ | JAVA life cycle model for BD discs |
US7484220B2 (en) * | 2004-05-26 | 2009-01-27 | Qualcomm Incorporated | Method, software and apparatus for using application state history information when re-launching applications |
-
2012
- 2012-01-19 TW TW101102210A patent/TW201241640A/en unknown
- 2012-02-06 WO PCT/US2012/024024 patent/WO2012112331A2/en active Application Filing
- 2012-02-14 CN CN2012100322877A patent/CN102681896A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040194153A1 (en) * | 2003-03-24 | 2004-09-30 | Sony Corporation And Sony Electronics Inc. | Conservation of system resources by efficiently activating/de-activating applications |
US20090113444A1 (en) * | 2007-10-31 | 2009-04-30 | Google Inc. | Application Management |
US20100281481A1 (en) * | 2009-04-30 | 2010-11-04 | Nokia Corporation | Apparatus and method for providing a user interface within a computing device |
Non-Patent Citations (1)
Title |
---|
BRIAN X. CHEN ET AL.: ''Wired.com Explains: How Mobile Multitasking Works', wired.com', [Online] 01 July 2007, Retrieved from the Internet: <URL:http://www.wired.com/gadgetlab/2010/07/mobile-multitasking-explainer> * |
Cited By (95)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11671920B2 (en) | 2007-04-03 | 2023-06-06 | Apple Inc. | Method and system for operating a multifunction portable electronic device using voice-activation |
US11348582B2 (en) | 2008-10-02 | 2022-05-31 | Apple Inc. | Electronic devices with voice command and contextual data processing capabilities |
US11900936B2 (en) | 2008-10-02 | 2024-02-13 | Apple Inc. | Electronic devices with voice command and contextual data processing capabilities |
US12087308B2 (en) | 2010-01-18 | 2024-09-10 | Apple Inc. | Intelligent automated assistant |
US11423886B2 (en) | 2010-01-18 | 2022-08-23 | Apple Inc. | Task flow identification based on user intent |
US11120372B2 (en) | 2011-06-03 | 2021-09-14 | Apple Inc. | Performing actions associated with task items that represent tasks to perform |
US11321116B2 (en) | 2012-05-15 | 2022-05-03 | Apple Inc. | Systems and methods for integrating third party services with a digital assistant |
US11636869B2 (en) | 2013-02-07 | 2023-04-25 | Apple Inc. | Voice trigger for a digital assistant |
US11557310B2 (en) | 2013-02-07 | 2023-01-17 | Apple Inc. | Voice trigger for a digital assistant |
US11862186B2 (en) | 2013-02-07 | 2024-01-02 | Apple Inc. | Voice trigger for a digital assistant |
US10978090B2 (en) | 2013-02-07 | 2021-04-13 | Apple Inc. | Voice trigger for a digital assistant |
US11388291B2 (en) | 2013-03-14 | 2022-07-12 | Apple Inc. | System and method for processing voicemail |
US11798547B2 (en) | 2013-03-15 | 2023-10-24 | Apple Inc. | Voice activated device for use with a voice-based digital assistant |
WO2014197260A1 (en) * | 2013-06-02 | 2014-12-11 | Microsoft Corporation | Idle worker-process page-out |
US10425349B2 (en) | 2013-06-02 | 2019-09-24 | Microsoft Technology Licensing, Llc | Idle worker-process page-out |
US9584438B2 (en) | 2013-06-02 | 2017-02-28 | Microsoft Technology Licensing, Llc | Idle worker-process page-out |
US11727219B2 (en) | 2013-06-09 | 2023-08-15 | Apple Inc. | System and method for inferring user intent from speech inputs |
US12073147B2 (en) | 2013-06-09 | 2024-08-27 | Apple Inc. | Device, method, and graphical user interface for enabling conversation persistence across two or more instances of a digital assistant |
US12010262B2 (en) | 2013-08-06 | 2024-06-11 | Apple Inc. | Auto-activating smart responses based on activities from remote devices |
US11670289B2 (en) | 2014-05-30 | 2023-06-06 | Apple Inc. | Multi-command single utterance input method |
US11257504B2 (en) | 2014-05-30 | 2022-02-22 | Apple Inc. | Intelligent assistant for home automation |
US11810562B2 (en) | 2014-05-30 | 2023-11-07 | Apple Inc. | Reducing the need for manual start/end-pointing and trigger phrases |
US11699448B2 (en) | 2014-05-30 | 2023-07-11 | Apple Inc. | Intelligent assistant for home automation |
US11133008B2 (en) | 2014-05-30 | 2021-09-28 | Apple Inc. | Reducing the need for manual start/end-pointing and trigger phrases |
US11516537B2 (en) | 2014-06-30 | 2022-11-29 | Apple Inc. | Intelligent automated assistant for TV user interactions |
US11838579B2 (en) | 2014-06-30 | 2023-12-05 | Apple Inc. | Intelligent automated assistant for TV user interactions |
US11842734B2 (en) | 2015-03-08 | 2023-12-12 | Apple Inc. | Virtual assistant activation |
US11087759B2 (en) | 2015-03-08 | 2021-08-10 | Apple Inc. | Virtual assistant activation |
US12001933B2 (en) | 2015-05-15 | 2024-06-04 | Apple Inc. | Virtual assistant in a communication session |
US11070949B2 (en) | 2015-05-27 | 2021-07-20 | Apple Inc. | Systems and methods for proactively identifying and surfacing relevant content on an electronic device with a touch-sensitive display |
US11947873B2 (en) | 2015-06-29 | 2024-04-02 | Apple Inc. | Virtual assistant for media playback |
US10747498B2 (en) | 2015-09-08 | 2020-08-18 | Apple Inc. | Zero latency digital assistant |
US11809483B2 (en) | 2015-09-08 | 2023-11-07 | Apple Inc. | Intelligent automated assistant for media search and playback |
US11500672B2 (en) | 2015-09-08 | 2022-11-15 | Apple Inc. | Distributed personal assistant |
US11853536B2 (en) | 2015-09-08 | 2023-12-26 | Apple Inc. | Intelligent automated assistant in a media environment |
US11954405B2 (en) | 2015-09-08 | 2024-04-09 | Apple Inc. | Zero latency digital assistant |
US11126400B2 (en) | 2015-09-08 | 2021-09-21 | Apple Inc. | Zero latency digital assistant |
US11550542B2 (en) | 2015-09-08 | 2023-01-10 | Apple Inc. | Zero latency digital assistant |
US12051413B2 (en) | 2015-09-30 | 2024-07-30 | Apple Inc. | Intelligent device identification |
US11526368B2 (en) | 2015-11-06 | 2022-12-13 | Apple Inc. | Intelligent automated assistant in a messaging environment |
US11809886B2 (en) | 2015-11-06 | 2023-11-07 | Apple Inc. | Intelligent automated assistant in a messaging environment |
US11886805B2 (en) | 2015-11-09 | 2024-01-30 | Apple Inc. | Unconventional virtual assistant interactions |
US11853647B2 (en) | 2015-12-23 | 2023-12-26 | Apple Inc. | Proactive assistance based on dialog communication between devices |
WO2017172213A1 (en) * | 2016-04-01 | 2017-10-05 | Intel Corporation | Methods and apparatus to manage a process under a memory constraint |
US20170285977A1 (en) * | 2016-04-01 | 2017-10-05 | Intel Corporation | Methods and apparatus to manage a process under a memory constraint |
US10552320B2 (en) * | 2016-04-01 | 2020-02-04 | Intel Corporation | Using a projected out of memory score to selectively terminate a process without transitioning to a background mode |
US11037565B2 (en) | 2016-06-10 | 2021-06-15 | Apple Inc. | Intelligent digital assistant in a multi-tasking environment |
US11657820B2 (en) | 2016-06-10 | 2023-05-23 | Apple Inc. | Intelligent digital assistant in a multi-tasking environment |
US11749275B2 (en) | 2016-06-11 | 2023-09-05 | Apple Inc. | Application integration with a digital assistant |
US11152002B2 (en) | 2016-06-11 | 2021-10-19 | Apple Inc. | Application integration with a digital assistant |
US11809783B2 (en) | 2016-06-11 | 2023-11-07 | Apple Inc. | Intelligent device arbitration and control |
EP3506093A4 (en) * | 2016-09-09 | 2019-09-04 | Huawei Technologies Co., Ltd. | Application process management method and terminal device |
US11599331B2 (en) | 2017-05-11 | 2023-03-07 | Apple Inc. | Maintaining privacy of personal information |
US11467802B2 (en) | 2017-05-11 | 2022-10-11 | Apple Inc. | Maintaining privacy of personal information |
US11862151B2 (en) | 2017-05-12 | 2024-01-02 | Apple Inc. | Low-latency intelligent automated assistant |
US11538469B2 (en) | 2017-05-12 | 2022-12-27 | Apple Inc. | Low-latency intelligent automated assistant |
US11580990B2 (en) | 2017-05-12 | 2023-02-14 | Apple Inc. | User-specific acoustic models |
US11405466B2 (en) | 2017-05-12 | 2022-08-02 | Apple Inc. | Synchronization and task delegation of a digital assistant |
US11380310B2 (en) | 2017-05-12 | 2022-07-05 | Apple Inc. | Low-latency intelligent automated assistant |
US12014118B2 (en) | 2017-05-15 | 2024-06-18 | Apple Inc. | Multi-modal interfaces having selection disambiguation and text modification capability |
US11532306B2 (en) | 2017-05-16 | 2022-12-20 | Apple Inc. | Detecting a trigger of a digital assistant |
US11675829B2 (en) | 2017-05-16 | 2023-06-13 | Apple Inc. | Intelligent automated assistant for media exploration |
US11710482B2 (en) | 2018-03-26 | 2023-07-25 | Apple Inc. | Natural assistant interaction |
US11169616B2 (en) | 2018-05-07 | 2021-11-09 | Apple Inc. | Raise to speak |
US11487364B2 (en) | 2018-05-07 | 2022-11-01 | Apple Inc. | Raise to speak |
US11854539B2 (en) | 2018-05-07 | 2023-12-26 | Apple Inc. | Intelligent automated assistant for delivering content from user experiences |
US11907436B2 (en) | 2018-05-07 | 2024-02-20 | Apple Inc. | Raise to speak |
US11900923B2 (en) | 2018-05-07 | 2024-02-13 | Apple Inc. | Intelligent automated assistant for delivering content from user experiences |
US10984798B2 (en) | 2018-06-01 | 2021-04-20 | Apple Inc. | Voice interaction at a primary device to access call functionality of a companion device |
US12080287B2 (en) | 2018-06-01 | 2024-09-03 | Apple Inc. | Voice interaction at a primary device to access call functionality of a companion device |
US12067985B2 (en) | 2018-06-01 | 2024-08-20 | Apple Inc. | Virtual assistant operations in multi-device environments |
US11360577B2 (en) | 2018-06-01 | 2022-06-14 | Apple Inc. | Attention aware virtual assistant dismissal |
US11630525B2 (en) | 2018-06-01 | 2023-04-18 | Apple Inc. | Attention aware virtual assistant dismissal |
US11431642B2 (en) | 2018-06-01 | 2022-08-30 | Apple Inc. | Variable latency device coordination |
US11009970B2 (en) | 2018-06-01 | 2021-05-18 | Apple Inc. | Attention aware virtual assistant dismissal |
US11893992B2 (en) | 2018-09-28 | 2024-02-06 | Apple Inc. | Multi-modal inputs for voice commands |
US11783815B2 (en) | 2019-03-18 | 2023-10-10 | Apple Inc. | Multimodality in digital assistant systems |
US11675491B2 (en) | 2019-05-06 | 2023-06-13 | Apple Inc. | User configurable task triggers |
US11705130B2 (en) | 2019-05-06 | 2023-07-18 | Apple Inc. | Spoken notifications |
US11888791B2 (en) | 2019-05-21 | 2024-01-30 | Apple Inc. | Providing message response suggestions |
US11237797B2 (en) | 2019-05-31 | 2022-02-01 | Apple Inc. | User activity shortcut suggestions |
US11657813B2 (en) | 2019-05-31 | 2023-05-23 | Apple Inc. | Voice identification in digital assistant systems |
US11790914B2 (en) | 2019-06-01 | 2023-10-17 | Apple Inc. | Methods and user interfaces for voice-based control of electronic devices |
US11765209B2 (en) | 2020-05-11 | 2023-09-19 | Apple Inc. | Digital assistant hardware abstraction |
US11914848B2 (en) | 2020-05-11 | 2024-02-27 | Apple Inc. | Providing relevant data items based on context |
US11924254B2 (en) | 2020-05-11 | 2024-03-05 | Apple Inc. | Digital assistant hardware abstraction |
US11755276B2 (en) | 2020-05-12 | 2023-09-12 | Apple Inc. | Reducing description length based on confidence |
US11838734B2 (en) | 2020-07-20 | 2023-12-05 | Apple Inc. | Multi-device audio adjustment coordination |
US11696060B2 (en) | 2020-07-21 | 2023-07-04 | Apple Inc. | User identification using headphones |
US11750962B2 (en) | 2020-07-21 | 2023-09-05 | Apple Inc. | User identification using headphones |
CN114312618A (en) * | 2021-12-09 | 2022-04-12 | 中汽创智科技有限公司 | Control method and system for Internet of vehicles system |
CN114312618B (en) * | 2021-12-09 | 2023-12-26 | 中汽创智科技有限公司 | Control method and system for Internet of vehicles system |
CN116567132A (en) * | 2022-01-28 | 2023-08-08 | 荣耀终端有限公司 | Power consumption control method and device |
CN114585054A (en) * | 2022-02-23 | 2022-06-03 | 北京小米移动软件有限公司 | WIFI connection control method and device and storage medium |
CN114585054B (en) * | 2022-02-23 | 2023-11-14 | 北京小米移动软件有限公司 | WIFI connection control method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
TW201241640A (en) | 2012-10-16 |
CN102681896A (en) | 2012-09-19 |
WO2012112331A3 (en) | 2012-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20120210321A1 (en) | Dormant Background Applications on Mobile Devices | |
WO2012112331A2 (en) | Dormant background applications on mobile devices | |
US11720368B2 (en) | Memory management of data processing systems | |
JP6073323B2 (en) | Application resumption and / or application interruption exclusion | |
EP3223151B1 (en) | Hot-switching method and device for operating systems, and mobile terminal | |
TWI573075B (en) | Persistent and resilient worker processes | |
US9286115B2 (en) | Performant runtime pause with no CPU utilization | |
US20170061105A1 (en) | Client apparatus and license management method | |
JP6639665B2 (en) | Method, apparatus and terminal for terminal-based wakelock control | |
EP3678023A1 (en) | Method and device for handling timeout of system service | |
US9584438B2 (en) | Idle worker-process page-out | |
WO2018039967A1 (en) | Virtual machine switching method and apparatus, electronic device, and computer program product | |
US20160072856A1 (en) | Cross-Process Media Handling in a Voice-Over-Internet Protocol (VOIP) Application Platform | |
US9864708B2 (en) | Safely discovering secure monitors and hypervisor implementations in systems operable at multiple hierarchical privilege levels | |
CN115576645A (en) | Virtual processor scheduling method and device, storage medium and electronic equipment | |
JP5014179B2 (en) | OS priority changing device and OS priority changing program | |
US9319246B2 (en) | Voice-over-internet protocol (VOIP) application platform | |
US9535772B2 (en) | Creating a communication channel between different privilege levels using wait-for-event instruction in systems operable at multiple levels hierarchical privilege levels | |
WO2015184902A1 (en) | Concurrent processing method for intelligent split-screen and corresponding intelligent terminal | |
US8832708B2 (en) | Process pool of empty application hosts to improve user perceived launch time of applications | |
US9319456B2 (en) | “Go home” feature for roaming applications | |
TWI525544B (en) | Background transfer service for applications on mobile devices | |
Gilder et al. | Go home” feature for roaming applications | |
JP2007293730A (en) | Execution method of intermediate code program and information terminal |
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: 12746461 Country of ref document: EP Kind code of ref document: A2 |
|
NENP | Non-entry into the national phase in: |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12746461 Country of ref document: EP Kind code of ref document: A2 |