CN109408149B - Application program starting method, device, equipment and storage medium - Google Patents

Application program starting method, device, equipment and storage medium Download PDF

Info

Publication number
CN109408149B
CN109408149B CN201811276611.3A CN201811276611A CN109408149B CN 109408149 B CN109408149 B CN 109408149B CN 201811276611 A CN201811276611 A CN 201811276611A CN 109408149 B CN109408149 B CN 109408149B
Authority
CN
China
Prior art keywords
application program
data
application
running
physical memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811276611.3A
Other languages
Chinese (zh)
Other versions
CN109408149A (en
Inventor
臧晓华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vidaa Netherlands International Holdings BV
Original Assignee
Qingdao Hisense Media Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201811276611.3A priority Critical patent/CN109408149B/en
Publication of CN109408149A publication Critical patent/CN109408149A/en
Application granted granted Critical
Publication of CN109408149B publication Critical patent/CN109408149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention provides a method, a device, equipment and a storage medium for starting an application program, wherein the method comprises the following steps: the method comprises the steps of obtaining an application program switching instruction according to operation of a user, wherein the application program switching instruction is used for indicating that a first application program is switched to a second application program, stopping running the first application program according to the application program switching instruction, and storing running data of the first application program. And then writing the data in the physical memory page occupied by the first application program in the memory into the exchange partition, releasing the memory occupied by the first application program, and starting the second application program. The memory occupation of the system is reduced, meanwhile, the running state of the application program can be quickly recovered according to the stored data and running data of the application program, and the starting speed of the application program when the application program is restarted is increased.

Description

Application program starting method, device, equipment and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method, an apparatus, a device, and a storage medium for starting an application.
Background
With the popularization of terminal devices, applications are used more variously and frequently, and have been integrated into the aspects of people's life, users have increasingly high requirements for the operation senses of starting and running of applications.
Currently, in the process of switching from the application 1 to the application 2, for providing better application start speed and running speed, two solutions are provided in the prior art: 1) when the application program is switched, the application program 1 is switched to the background, and the memory of the application program 1 is not released to the maximum extent, so that the restart of the application program can be accelerated; 2) when the application program is switched, the application program 1 is completely quitted, and the running memory is released to improve the running speed.
The two schemes are contradictory in the aspects of improving the starting speed of the application program and ensuring the running speed, and both the memory occupation reduction and the application program starting speed acceleration cannot be realized.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for starting an application program, aiming at overcoming the contradiction between the improvement of the starting speed of the application program and the guarantee of the running speed in the prior art.
In a first aspect, the present invention provides a method for starting an application, which is applied to a terminal device, and includes:
acquiring a starting instruction of a first application program according to the operation of a user;
acquiring data of the first application program from a switching partition according to the starting instruction, and writing the data of the first application program into a physical memory page applied by the first application program; wherein the data of the first application program in the swap partition is stored by the first application program when the operation is paused last time.
And acquiring pre-stored running data of the first application program, and starting the running of the first application program.
Further, the starting instruction is further configured to instruct to switch from a second application to a first application for running, and before acquiring data of the first application from a switch partition according to the starting instruction, the method further includes:
stopping running the second application program according to the starting instruction, and storing running data of the second application program;
and writing the data in the physical memory page occupied by the second application program in the memory into the exchange partition, and releasing the memory occupied by the second application program.
In a specific implementation manner, the writing data in a physical memory page occupied by the second application program in the memory into the swap partition includes:
scanning a virtual memory area in a process, and acquiring a page table entry of the second application program;
acquiring a physical memory page occupied by the second application program in a memory according to the page table entry of the second application program;
and writing the data in the physical memory page into the swap partition.
In a specific implementation manner, the releasing the memory occupied by the second application includes:
removing the mapping relation between the page table item of the second application program and the physical memory page;
and releasing the physical memory page, and adding the physical memory page to an idle linked list.
In a second aspect, the present invention provides an apparatus for starting an application, including:
the acquisition module is used for acquiring a starting instruction of the first application program according to the operation of a user;
the first processing module is used for acquiring the data of the first application program from the exchange partition according to the starting instruction and writing the data of the first application program into a physical memory page applied by the first application program; wherein the data of the first application program in the swap partition is stored by the first application program when the operation is paused last time.
And the second processing module is used for acquiring the pre-stored running data of the first application program and starting the running of the first application program.
In a specific implementation manner, the apparatus further includes: a third processing module and a fourth processing module;
the third processing module is used for stopping running the second application program according to the starting instruction and storing running data of the second application program;
the fourth processing module is configured to write data in a physical memory page occupied by the second application program in a memory into an exchange partition, and release the memory occupied by the second application program.
Specifically, the fourth processing module is specifically configured to:
scanning a virtual memory area in a process, and acquiring a page table entry of the second application program;
acquiring a physical memory page occupied by the second application program in a memory according to the page table entry of the second application program;
and writing the data in the physical memory page into the swap partition.
Further, the fourth processing module is further specifically configured to:
removing the mapping relation between the page table item of the second application program and the physical memory page;
and releasing the physical memory page, and adding the physical memory page to an idle linked list.
In a third aspect, the present invention provides a terminal device, including: memory, a processor, and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the method of launching an application program according to any of claims 1 to 4.
In a fourth aspect, the present invention provides a storage medium comprising: readable storage medium and computer program for implementing the method for launching an application program according to any one of claims 1 to 4.
The embodiment of the invention provides a method, a device, equipment and a storage medium for starting an application program. The method comprises the steps of obtaining data of a first application program from an exchange partition according to a starting instruction of a user, writing the data of the first application program into a physical memory page applied by the first application program, wherein the data of the first application program in the exchange partition are stored in the first application program when the operation is paused last time, obtaining pre-stored operation data of the first application program, and starting the operation of the first application program. The scheme not only reduces the occupation of the system memory, but also accelerates the starting speed of the application program.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a first embodiment of a method for starting an application according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a second embodiment of a method for starting an application according to the present invention;
fig. 3 is a schematic flowchart of a third embodiment of a method for starting an application according to the present invention;
fig. 4 is a schematic flowchart of a fourth embodiment of a method for starting an application according to the embodiment of the present invention;
FIG. 5 is a flowchart illustrating a process of suspending an application according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of application process recovery according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of application program switching according to an embodiment of the present invention;
fig. 8 is a schematic view of an application scenario of an application switching apparatus according to an embodiment of the present invention;
fig. 9 is a first schematic structural diagram of an apparatus for starting an application according to an embodiment of the present invention;
fig. 10 is a second schematic structural diagram of an application startup device according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, in the process of switching from the application 1 to the application 2, there are two schemes for providing better application starting speed and running speed: 1) when the application program is switched, the application program 1 is switched to the background, and the memory of the application program 1 is not released to the maximum extent, so that the restart of the application program can be accelerated; 2) when the application program is switched, the application program 1 is completely quitted, and the running memory is released to improve the running speed. The two schemes are contradictory in the aspects of improving the starting speed of the application program and ensuring the running speed, and both the reduction of the memory occupation and the acceleration of the starting speed of the application program cannot be realized.
Meanwhile, the Linux operating system is provided with a Swap mechanism, and the Linux system can scan the use condition of the memory at regular time, and can switch the memory to the switching partition according to a certain algorithm to release the memory when finding that the memory is inactive. However, this is passive, not timely and incomplete for the application process.
In order to overcome the problems in the prior art, the scheme provides a starting method of an application program by combining a Swap mechanism of a Linux system. By adding a process active Swap mechanism, according to an application program switching instruction of a user, stopping running a first application program, storing running data of the first application program, writing data stored in a memory occupied by the first application program into an exchange partition, releasing the memory occupied by the first application program, and restoring the running state of a second application program by reading second application data stored in the exchange partition into the memory. The method can reduce the occupation of the system memory, can accelerate the starting speed of the application program, and is convenient for the application program to recover the running state.
This scheme is illustrated in detail below by means of several specific examples.
The first embodiment is as follows:
fig. 1 is a schematic flowchart of a first embodiment of a method for starting an application according to an embodiment of the present invention, and as shown in fig. 1, the method for starting an application includes:
s101: and acquiring a starting instruction of the first application program according to the operation of the user.
In this step, it should be understood that the first application is running in the system background, and the running data is stored and the memory data is exchanged to the application of the swap partition.
In a specific implementation manner, a user views all application programs running in a system background through an interface of the terminal device, and selects an application program to be started in reply. In another specific implementation, the user jumps to an application running in the background of the system through the application currently running, for example, the user sees an article pushed by the flight news public number while using the WeChat, and jumps to the flight news application by selecting to view details. In another specific implementation manner, the user starts the running program in the system background through the hot key, so that the currently running program stops running and is switched to the system background.
Optionally, the terminal equipment can be a mobile phone, a tablet personal computer, an intelligent wearable product and the like, and the scheme does not require the terminal equipment.
S102: and acquiring the data of the first application program from a switching partition according to the starting instruction, and writing the data of the first application program into a physical memory page applied by the first application program.
In this step, the first application is a non-first-started application, data of the first application is stored in the swap partition, and the operation data of the first application that was previously run is stored in the storage medium of the terminal device. And when a starting instruction of a user is received, the first application program is restored to run, the system stores the data of the first application program into the physical memory again according to the applied physical memory page through a Swap mechanism of the Linux system, and quickly restores the previous running state of the second application program according to the running data stored in the storage medium to continue running.
Specifically, when the first application program starts to resume running and a system accesses a memory, data of the first application program is not found, and then, the Linux kernel triggers a page missing interrupt signal to further apply for a physical memory page, and data of the second application program in the exchange partition is stored in the physical memory again by using a Swap mechanism.
S103: and acquiring pre-stored running data of the first application program, and starting the running of the first application program.
In this step, the first application program obtains pre-stored running data in the storage medium, where the running data is stored in a previous program suspension pre-operation, and according to the running data, the first application program may be restored to a previous running state to continue running.
According to the starting method of the application program, the data of the first application program is obtained from the exchange partition according to the starting instruction of the user, and the data of the first application program is written into the physical memory page applied by the first application program, wherein the data of the first application program in the exchange partition is stored by the first application program when the operation is paused last time, the pre-stored operation data of the first application program is obtained, and the operation of the first application program is started, so that the occupation of a system memory is reduced, and the starting speed of the application program is accelerated.
Example two
Fig. 2 is a flowchart of a second embodiment of a method for starting an application according to an embodiment of the present invention, where on the basis of the first embodiment, as shown in fig. 2, when acquiring a start instruction of a first application, if a second application is running, the method for starting the application further includes the following steps:
s201: and stopping running the second application program according to the starting instruction, and storing the running data of the second application program.
In this step, after receiving a start instruction of the first application program, if the system is running the second application program, the system performs a suspend pre-operation of the second application program, mainly completes the suspension of the second application program, records the current running state of the second application program, and stores running data, where the running data may be a time point when the video playing program stops playing the video, an e-book reading page when the e-book program stops, or a commodity page when the shopping program stops. Therefore, when the second application program is started again, the system can quickly recover the previous running state of the second application program according to the stored running data.
Optionally, the operation data may be stored in a storage medium such as a hard disk, an SD card, a CF card, or the like of the terminal device, which is not required in the present solution.
S202: and writing the data in the physical memory page occupied by the second application program in the memory into the exchange partition, and releasing the memory occupied by the second application program.
In this step, the system searches all data stored in the physical memory by the second application program, writes the data into the swap partition, and then releases the occupied physical memory page, thereby reducing the occupation of the system memory.
The switching partition is created by a Linux system, is a virtual memory partition of the Linux system, and is also called a Swap partition.
Example three:
fig. 3 is a flowchart illustrating a third embodiment of a method for starting an application according to an embodiment of the present invention, where on the basis of the second embodiment, fig. 3 shows a specific step of writing data in a physical memory of a second application into a swap partition in the second embodiment, and as shown in fig. 3, the method for starting an application further includes:
s301: and scanning the virtual memory area in the process to obtain a page table entry of the second application program.
In this step, all page table entries of the second application program may be obtained by scanning all virtual memory areas in the process, so as to obtain a physical memory page of the second application program.
Specifically, the CPU accesses the memory when executing a process. However, the CPU cannot directly access the physical memory page, and needs to indirectly access the physical memory page through the virtual memory area. The virtual memory area and the physical memory page are in one-to-one correspondence through the page table.
S302: and acquiring a physical memory page occupied by the second application program in the memory according to the page table entry of the second application program.
In this step, it should be understood that the page table entries correspond to the physical memory pages one to one, and all the physical memory pages occupied by the second application in the memory can be obtained by traversing all the page table entries of the second application, so as to obtain all the data of the second application.
S303: and writing the data in the physical memory page into the exchange partition.
In this step, the data in all the physical memory pages of the application program is written into the system swap partition. Here, it should be understood that writing data in a physical memory page into the swap partition can realize fast recovery of an application program without occupying a memory.
In the embodiment of the invention, the virtual memory area in the process is scanned to obtain the page table entries of the application program, the physical memory page of the application program can be obtained by traversing all the page table entries, and the data in the physical memory page is written into the exchange partition for the quick recovery of the running state of the application program.
Example four:
fig. 4 is a flowchart illustrating a fourth embodiment of a method for starting an application according to the second embodiment of the present invention, where on the basis of the second embodiment, fig. 4 shows specific steps of releasing a memory of a second application in the second embodiment, and as shown in fig. 4, the method for starting an application further includes:
s401: and removing the mapping relation between the page table item of the second application program and the physical memory page.
In this step, after the data stored in the physical memory page by the application program is written into the swap partition, the mapping relationship between the page table entry of the application program and the physical memory page is released.
S402: and releasing the physical memory page and adding the physical memory page to the idle linked list.
In this step, the physical memory page is released, for example, the physical memory page is marked as free, and the physical memory page is added to the idle linked list, so that the system completes memory recovery and reduces the occupation of the physical memory of the system.
In the embodiment of the invention, after the data in the application program physical memory is written into the exchange partition, the mapping relation between the page table entry and the physical memory page is removed, the physical memory page is added into the idle linked list, the recovery of the system memory is completed, and the occupation of the system physical memory is reduced.
Example five:
on the basis of the above embodiment, the method for starting the application program provided by the present invention will be described below by taking the currently running program as the application 1 and the system background program as the application 2, in three aspects of application program process suspension, application program process recovery, and application program switching.
Fig. 5 is a schematic flowchart of a process suspension process of an application according to an embodiment of the present invention, and as shown in fig. 5, the specific steps of the process suspension process of the application include:
a) the application suspension pre-operation mainly finishes the suspended operation of the application, records the current operation state and synchronizes data to the storage device;
b) triggering process suspension operation, and scanning all Virtual Memory Areas (VMA) of the process;
c) traversing all Page Table Entries (PTE), wherein each Page Table Entry corresponds to a physical memory Page;
d) writing a physical memory page corresponding to a page table entry to a swap partition;
e) the mapping relation between the PTE page table entries and the physical memory pages is released;
f) releasing a physical memory page and adding the physical memory page into an idle linked list; the memory releasing function is realized.
Fig. 6 is a schematic flowchart of a process recovery process of an application according to an embodiment of the present invention, and as shown in fig. 6, the specific steps of the process recovery process of the application include:
a) the application resumes running;
b) accessing the memory, and recovering the page into the memory by the system automatically by using the Swap mechanism of the Linux system because the actual memory is already swapped to the Swap partition;
c) and restoring the last suspended state and continuing running the application.
Fig. 7 is a schematic flowchart of application program switching according to an embodiment of the present invention, and as shown in fig. 7, the specific steps of application program switching are as follows:
(1) the user triggers the switch application to switch from application 1 to application 2.
(2) The application management module performs the suspended application 1 operation.
(3) And triggering memory exchange operation of the page table entry, and exchanging the physical memory page corresponding to the memory page table entry used by the process to the exchange partition of the EMMC. Thereby ensuring that the application 1 does not occupy the memory in the suspended state.
(4) The application management module starts the application 2.
(5) The kernel triggers the interruption of the page missing of the memory, the interruption signal triggers an action, and the action can Swap the memory page in the Swap partition to the memory, thereby realizing the quick start of the application 2.
Based on the embodiments shown in fig. 5 to fig. 7, fig. 8 is a schematic view of an application scenario of an application switching apparatus according to an embodiment of the present invention, as shown in fig. 8:
1. the currently running applications are: application 1;
2. application 2 was previously run, and application 2 is currently in a suspended state;
3. the user performs a switching operation from application 1 to application 2 (i.e., restarts application 2);
the invention provides an application program switching device which can be used for executing the technical scheme of any one of the methods in the first embodiment to the fourth embodiment.
Fig. 9 is a schematic structural diagram of an application program starting apparatus according to an embodiment of the present invention, as shown in fig. 9, the application program starting apparatus 10 includes:
an obtaining module 101, configured to obtain a start instruction of a first application program according to an operation of a user;
the first processing module 102 is configured to obtain data of the first application program from a switch partition according to the start instruction, and write the data of the first application program into a physical memory page applied by the first application program; wherein the data of the first application program in the swap partition is stored by the first application program when the operation is paused last time.
The second processing module 103 is configured to acquire pre-stored operation data of the first application program, and start operation of the first application program.
The starting device of the application program provided in this embodiment is used for executing the technical scheme of the starting method of the application program in any one of the foregoing method embodiments, and the implementation principle and technical effect of the starting device are similar, and according to a starting instruction of a user, data of a first application program is acquired from an exchange partition, and the data of the first application program is written into a physical memory page applied by the first application program, where the data of the first application program in the exchange partition is stored by the first application program when the operation is suspended last time, and the pre-stored operation data of the first application program is acquired, and the operation of the first application program is started. The method and the device have the advantages that the occupied system memory is reduced, the data and the running data of the first application program are saved, the running state of the application program is convenient to recover, and the starting speed of the application program when the application program is restarted is increased.
On the basis of the above device embodiment, fig. 10 is a schematic structural diagram of a second starting device for an application program according to an embodiment of the present invention, and as shown in fig. 10, the second starting device for an application program 10 further includes:
a third processing module 104 and a fourth processing module 105;
the third processing module 104 is configured to stop running the second application program according to the start instruction, and store running data of the second application program;
the fourth processing module 105 is configured to write data in a physical memory page occupied by the second application program in the memory into the swap partition, and release the memory occupied by the second application program.
In a specific implementation manner, the fourth processing module 105 is specifically configured to:
scanning a virtual memory area in a process, and acquiring a page table entry of the first application program;
acquiring a physical memory page occupied by the first application program in a memory according to the page table entry of the first application program;
and writing the data in the physical memory page into the swap partition.
In another specific implementation, the fourth processing module 105 is further specifically configured to:
removing the mapping relation between the page table item of the first application program and the physical memory page;
and releasing the physical memory page, and adding the physical memory page to an idle linked list.
Fig. 11 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention. As shown in fig. 11, the terminal device 20 of the present embodiment includes: a processor 202 and a memory 201; wherein
A memory 201 for storing computer execution instructions;
the processor 202 is configured to execute the computer-executable instructions stored in the memory to implement the steps performed by the terminal device in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 201 may be separate or integrated with the processor 202.
When the memory 201 is provided separately, the terminal device further includes a bus 203 for connecting the memory 201 and the processor 202.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the method for starting an application program is implemented.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A starting method of an application program is applied to a terminal device, and comprises the following steps:
acquiring a starting instruction of a first application program according to the operation of a user;
acquiring data of the first application program from a switching partition according to the starting instruction, and writing the data of the first application program into a physical memory page applied by the first application program; wherein the data of the first application program in the swap partition is stored by the first application program when the operation is paused last time;
acquiring prestored operation data of the first application program, and starting the operation of the first application program; the running data is stored in the previous program suspension pre-operation and is used for the first application program to recover to the previous running state to continue running.
2. The method according to claim 1, wherein the start instruction is further used to instruct switching from a second application to a first application for execution, and before the data of the first application is obtained from a switch partition according to the start instruction, the method further comprises:
stopping running the second application program according to the starting instruction, and storing running data of the second application program;
and writing the data in the physical memory page occupied by the second application program in the memory into the exchange partition, and releasing the memory occupied by the second application program.
3. The method of claim 2, wherein writing data in the physical memory page occupied by the second application in the memory to a swap partition comprises:
scanning a virtual memory area in a process, and acquiring a page table entry of the second application program;
acquiring a physical memory page occupied by the second application program in a memory according to the page table entry of the second application program;
and writing the data in the physical memory page into the swap partition.
4. The method of claim 3, wherein the releasing the memory occupied by the second application comprises:
removing the mapping relation between the page table item of the second application program and the physical memory page;
and releasing the physical memory page, and adding the physical memory page to an idle linked list.
5. An apparatus for starting an application program, comprising:
the acquisition module is used for acquiring a starting instruction of the first application program according to the operation of a user;
the first processing module is used for acquiring the data of the first application program from the exchange partition according to the starting instruction and writing the data of the first application program into a physical memory page applied by the first application program; wherein the data of the first application program in the swap partition is stored by the first application program when the operation is paused last time;
the second processing module is used for acquiring prestored running data of the first application program and starting the running of the first application program; the running data is stored in the previous program suspension pre-operation and is used for the first application program to recover to the previous running state to continue running.
6. The apparatus of claim 5, further comprising: a third processing module and a fourth processing module;
the third processing module is used for stopping running a second application program according to the starting instruction and storing running data of the second application program;
the fourth processing module is configured to write data in a physical memory page occupied by the second application program in a memory into an exchange partition, and release the memory occupied by the second application program.
7. The apparatus according to claim 6, wherein the fourth processing module is specifically configured to:
scanning a virtual memory area in a process, and acquiring a page table entry of the second application program;
acquiring a physical memory page occupied by the second application program in a memory according to the page table entry of the second application program;
and writing the data in the physical memory page into the swap partition.
8. The apparatus of claim 7, wherein the fourth processing module is further specifically configured to:
removing the mapping relation between the page table item of the second application program and the physical memory page;
and releasing the physical memory page, and adding the physical memory page to an idle linked list.
9. A terminal device, comprising: memory, a processor, and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the method of launching an application program according to any of claims 1 to 4.
10. A storage medium, comprising: readable storage medium and computer program for implementing the method for launching an application program according to any one of claims 1 to 4.
CN201811276611.3A 2018-10-30 2018-10-30 Application program starting method, device, equipment and storage medium Active CN109408149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811276611.3A CN109408149B (en) 2018-10-30 2018-10-30 Application program starting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811276611.3A CN109408149B (en) 2018-10-30 2018-10-30 Application program starting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109408149A CN109408149A (en) 2019-03-01
CN109408149B true CN109408149B (en) 2022-02-25

Family

ID=65469956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811276611.3A Active CN109408149B (en) 2018-10-30 2018-10-30 Application program starting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109408149B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905256B (en) * 2019-12-03 2024-02-09 北京奇艺世纪科技有限公司 Data processing method, device, electronic equipment and storage medium
CN111045749B (en) * 2019-12-18 2021-06-08 青岛海信传媒网络技术有限公司 Application program starting method and device
CN113849339B (en) * 2020-06-28 2023-07-11 华为技术有限公司 Method, device and storage medium for restoring running state of application program
CN114546523A (en) * 2022-01-29 2022-05-27 阿里巴巴(中国)有限公司 Application program starting method and device, electronic equipment, medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779072A (en) * 2012-06-18 2012-11-14 中国科学院上海微系统与信息技术研究所 Embedded system and dormancy and wake-up method of application process thereof
CN104035791A (en) * 2014-05-08 2014-09-10 Tcl集团股份有限公司 Methods for starting and stopping application program and intelligent terminal
CN105389174A (en) * 2014-09-04 2016-03-09 Tcl集团股份有限公司 Application program acceleration starting method and system based on mobile operating system
CN106155733A (en) * 2015-04-23 2016-11-23 腾讯科技(深圳)有限公司 A kind of method and apparatus running application program
CN106951291A (en) * 2017-03-28 2017-07-14 努比亚技术有限公司 Application program accelerates to start method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009237767A (en) * 2008-03-26 2009-10-15 Nippon Telegr & Teleph Corp <Ntt> Information succession method and saving/restoration device and information succession program
CN101788936B (en) * 2010-01-08 2013-11-06 中兴通讯股份有限公司 Snapshot backup and restoration method and device when in running of mobile terminal
CN106155778A (en) * 2016-07-07 2016-11-23 中国科学院声学研究所 A kind of startup method and system of application container
CN108037683A (en) * 2017-12-20 2018-05-15 深圳市沃特沃德股份有限公司 Onboard system recovers the method and onboard system of application program running state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779072A (en) * 2012-06-18 2012-11-14 中国科学院上海微系统与信息技术研究所 Embedded system and dormancy and wake-up method of application process thereof
CN104035791A (en) * 2014-05-08 2014-09-10 Tcl集团股份有限公司 Methods for starting and stopping application program and intelligent terminal
CN105389174A (en) * 2014-09-04 2016-03-09 Tcl集团股份有限公司 Application program acceleration starting method and system based on mobile operating system
CN106155733A (en) * 2015-04-23 2016-11-23 腾讯科技(深圳)有限公司 A kind of method and apparatus running application program
CN106951291A (en) * 2017-03-28 2017-07-14 努比亚技术有限公司 Application program accelerates to start method and device

Also Published As

Publication number Publication date
CN109408149A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109408149B (en) Application program starting method, device, equipment and storage medium
US11531625B2 (en) Memory management method and apparatus
CN106484472B (en) Memory recovery method and terminal
US9870288B2 (en) Container-based processing method, apparatus, and system
US10169088B2 (en) Lockless free memory ballooning for virtual machines
US9081692B2 (en) Information processing apparatus and method thereof
CN104598294B (en) Efficient and safe virtualization method for mobile equipment and equipment thereof
EP2863310A1 (en) Data processing method and apparatus, and shared storage device
US9727368B1 (en) Virtual machine migration acceleration with page state indicators
KR20120000089A (en) Inter operating system memory hotswap to support memory growth in a non-virtualized system
KR101673299B1 (en) Operating system recovery method and apparatus, and terminal device
CN104205050A (en) Accessing a device on a remote machine
CN110247984A (en) Method for processing business, device and storage medium
WO2011137769A1 (en) Multi-core online patching method and apparatus
CN105940375A (en) Dynamic reassignment for multi-operating system devices
CN107408073B (en) Reducing memory commit overhead using memory compression
CN114185494A (en) Memory anonymous page processing method, electronic device and readable storage medium
US9104606B2 (en) Temporal standby list
CN113127263B (en) Kernel crash recovery method, device, equipment and storage medium
KR101552580B1 (en) Method for system recovery including mobile device and backup supporting multi operation system
CN116302376A (en) Process creation method, process creation device, electronic equipment and computer readable medium
CN115268767A (en) Data processing method and device
US11210074B2 (en) On-demand binary translation state map generation
CN112099907B (en) Virtual machine operation method, device and server
CN117271383A (en) Memory recycling management method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221025

Address after: 83 Intekte Street, Devon, Netherlands

Patentee after: VIDAA (Netherlands) International Holdings Ltd.

Address before: 266061 room 131, 248 Hong Kong East Road, Laoshan District, Qingdao City, Shandong Province

Patentee before: QINGDAO HISENSE MEDIA NETWORKS Ltd.

TR01 Transfer of patent right