Launch method for applications with early-time memory reclaim and electronic device
Abstract
A launch method and an electronic device are provided. The electronic device includes a first memory, a first memory controller, and a first processor. The first memory controller is coupled to the first memory. According to the launch method, the first processor executes the launch program to receive a signal indicating that a first application is to be launched, notify a background service to prepare memory space of the first memory for launch of the first application in response to the received signal, and launch the first application after notifying the background service to prepare the memory space of the first memory.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A launch method for a first application on an electronic device when a launch program is loaded and executed by a first processor, comprising:
receiving a signal indicating that the first application is to be launched; notifying a background service to prepare memory space of a first memory for launch of the first application in response to the received signal; and launching the first application after notifying the background service to prepare the memory space of the first memory.
2 . The launch method as claimed in claim 1 further comprising:
preparing the memory space of the first memory for the launch of the first application by the background service.
3 . The launch method as claimed in claim 2 , the step of preparing the memory space of the first memory for the launch of the first application by the background service comprising:
determining whether available space of the first memory is sufficient to finish launching the first application; and when the available space is not sufficient to finish launching the first application, freeing occupied space of the first memory to obtain the memory space of the first memory.
4 . The launch method as claimed in claim 3 , wherein the step of freeing occupied space of the first memory to obtain the memory space of the first memory comprises:
moving data stored in the first memory for a second application into a second memory.
5 . The launch method as claimed in claim 3 , wherein the step of freeing occupied space of the first memory to obtain the memory space of the first memory comprises:
discarding data stored in the first memory for a second application.
6 . The launch method as claimed in claim 3 , wherein the step of freeing occupied space of the first memory to obtain the memory space of the first memory comprises:
ending a second application which is running on the first processor.
7 . The launch method as claimed in claim 6 , wherein the second application has a lower priority value among other application running on the first processor.
8 . The launch method as claimed in claim 1 , further comprising:
calculating usage space of the first memory which is used for launch of the first application, updating history data for the launch of the first application according to the calculated usage space. wherein the memory space is prepared according to the history data.
9 . The launch method as claimed in claim 1 , wherein the background service is executed by a second processor different from the first processor.
10 . An electronic device comprising:
a first memory; a first memory controller coupled to the first memory; a first processor executing the launch program to receive a signal indicating that a first application is to be launched, notify a background service to prepare memory space of the first memory for launch of the first application in notifying the background service to prepare the memory space of the first memory.
11 . The electronic device as claimed in claim 10 , wherein the background service is executed to determine whether available space of the first memory is sufficient to finish launching the first application and control the first memory controller to free occupied space of the first memory to obtain the memory space of the first memory when the available space is not sufficient to finish launching the first application.
12 . The electronic device as claimed in claim 11 , further comprising:
a second memory; and a second memory controller controlled to the second memory, wherein the background service is executed to control the first memory controller to read data stored in the first memory for a second application and control the second memory controller to write the data read from the first memory into the second memory to obtain the memory space of the first memory.
13 . The electronic device as claimed in claim 11 , wherein the background service is executed to end a second application which is running on the first processor.
14 . The electronic device as claimed in claim 13 , wherein the second application has a low priority value.
15 . The electronic device as claimed in claim 10 , wherein the first processor calculates usage space of the first memory which is used for the launch of the first application and updates history data for the launch of the first application according to the calculated usage space, and the background service is executed to prepare the memory space according to the history data.
16 . The electronic device as claimed in claim 10 , further comprising:
a second processor executing the background service.
17 . A launch method for an application on an electronic device when a launch program is loaded and executed by a first processor, comprising:
notifying a background service to prepare memory space of a memory for launch of the application; launching the application by accessing the prepared memory space of the memory; obtaining space of the memory occupied for the launch of the application; and updating history usage space for the launch of the application according to the obtained space of the memory occupied for the launch of the application.
18 . The launch method as claimed in claim 17 , further comprising:
querying the space of the memory occupied for the launch of the application from an operating system performed by the first processor.
19 . The launch method as claimed in claim 18 , further comprising:
determining whether the available space of the memory is less than the history usage space by the background service before the launch of the application; and when the available space of the memory is less than the history usage space, freeing occupied space of the memory to prepare the memory space of the memory by the background service.
20 . The launch method as claimed in claim 18 , wherein the background service is executed by a second processor different from the first processor.Join the waitlist — get patent alerts
Track US2018113735A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.