A method and device for processing a virtual task stack

By obtaining the startup parameters of the page to be started and the source page, determining the virtual affinity and selecting the target virtual task stack, the problem of the startup effect not meeting the expectations caused by the virtual task stack processing method is solved, and the correct superposition or independent startup of pages is achieved.

CN116450279BActive Publication Date: 2025-09-12BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210023394.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-10
Publication Date
2025-09-12
Estimated Expiration
2042-01-10

AI Technical Summary

Technical Problem

The existing virtual task stack processing method causes the startup effect of application pages to not meet expectations.

Method used

By obtaining the startup parameters of the page to be started and the source page, the virtual affinity of the page to be started is determined, and the target virtual task stack is selected based on the affinity. The storage location of the target virtual task stack is determined by comprehensively considering the priority relationship between the startup mode and the startup flag.

Benefits of technology

Improved the launch performance of application pages to meet expectations, ensuring that pages are correctly superimposed or launched independently, avoiding unnecessary repeated creation or restarts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116450279B_ABST
    Figure CN116450279B_ABST
Patent Text Reader

Abstract

The present application discloses a method for processing a virtual task stack. Before starting the page to be started, the startup parameters of the page to be started and the startup parameters of the source page of the page to be started can be obtained. Based on the startup parameters of the page to be started and the startup parameters of the source page, the virtual affinity of the page to be started is determined; then, based on the virtual affinity of the page to be started, the target virtual task stack for storing the page to be started is determined. It can be seen that the target virtual task stack for storing the page to be started is determined based on the virtual affinity of the page to be started, and the virtual affinity is determined according to the startup parameters of the page to be started and the startup parameters of the source page. Therefore, the determined target virtual task stack comprehensively considers the factors that need to be considered when starting the page to be started based on the source page. Therefore, using the determined target virtual task stack to store the page to be started can make the startup effect of the page to be started meet expectations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for processing a virtual task stack. Background Art

[0002] Installation-free technology provides a complete virtual operating environment. Applications using this technology can achieve the same operating effects as installed applications without having to be installed on the system.

[0003] For example, a game box is an application that uses installation-free technology. A game box is a way to implement a game platform and distribution. Implementing a game box requires using Android plug-in technology, which runs games in a plug-in manner. If a game is run in a plug-in manner, the game box can be used to handle page jump issues. In one implementation, the game box middleware can add a virtual task stack, which is mapped to the system task stack, replacing the system's task stack management. The virtual task stack is used to manage game pages.

[0004] The current processing method of the virtual task stack has the problem that the startup effect of the application page does not meet the expectations. Therefore, a solution is urgently needed to solve the above problem. Summary of the Invention

[0005] The technical problem to be solved by the present application is that the virtual stack processing mode causes the startup effect of the application page to be unsatisfactory. A method and device for processing a virtual task stack are provided.

[0006] In a first aspect, an embodiment of the present application provides a method for processing a virtual task stack, the method comprising:

[0007] Obtaining startup parameters of a page to be started and startup parameters of a source page of the page to be started;

[0008] Determining the virtual affinity of the page to be started based on the startup parameters of the page to be started and the startup parameters of the source page;

[0009] Based on the virtual affinity, a target virtual task stack for storing the page to be started is determined.

[0010] Optionally, the virtual affinity of the page to be started includes:

[0011] The first affinity or the second affinity, wherein the first affinity is the real affinity of the page to be started, and the second affinity is the affinity of the first virtual task stack, and the first virtual task stack is the virtual task stack storing the source page.

[0012] Optionally, if the virtual affinity is the first affinity, determining a target virtual task stack for storing the to-be-started page based on the virtual affinity includes:

[0013] The target virtual task stack is determined based on the first affinity and the startup parameters of the to-be-started page.

[0014] Optionally, determining the target virtual task stack based on the virtual affinity and the startup parameters of the to-be-started page includes:

[0015] Determining, from existing virtual task stacks, a virtual task stack with the first affinity as a pending virtual task stack;

[0016] In a case where the pending virtual task stack meets the startup parameters of the to-be-started page, the pending virtual task stack is determined as the target virtual task stack.

[0017] Optionally, determining the target virtual task stack based on the virtual affinity and the startup parameters of the to-be-started page includes:

[0018] The target virtual task stack is created based on the startup parameters of the to-be-started page, and the affinity of the target virtual task stack is the first affinity.

[0019] Optionally, if the virtual affinity is the second affinity, determining a target virtual task stack for storing the to-be-started page based on the virtual affinity includes:

[0020] The target virtual task stack is determined based on the second affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page.

[0021] Optionally, determining the target virtual task stack based on the virtual affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page includes:

[0022] Determining, from the existing virtual task stacks, a virtual task stack with the second affinity as a pending virtual task stack;

[0023] In a case where the pending virtual task stack meets the startup parameters of the to-be-started page and the startup parameters of the source page, the pending virtual task stack is determined as the target virtual task stack.

[0024] Optionally, determining the target virtual task stack based on the virtual affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page includes:

[0025] The target virtual task stack is created based on the startup parameters of the to-be-started page or the startup parameters of the source page, and the affinity of the target virtual task stack is the second affinity.

[0026] Optionally, the startup parameters include a startup mode and a startup flag, and if there is a conflict between the startup mode and the startup flag of the page to be started, determining the target virtual task stack based on the first affinity and the startup parameters of the page to be started includes:

[0027] If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the first affinity and the startup mode of the to-be-started page.

[0028] Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-activated page has a lower priority than the startup flag of the to-be-activated page, the target virtual task stack is determined based on the first affinity and the startup flag of the to-be-activated page.

[0029] Optionally, the startup parameters include a startup mode and a startup flag, and if there is a conflict between the startup mode and the startup flag of the page to be started, determining the target virtual task stack based on the second affinity, the startup parameters of the page to be started, and the startup parameters of the source page includes:

[0030] If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, determining the target virtual task stack based on the second affinity, the startup mode of the to-be-started page, and the startup parameters of the source page;

[0031] Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-started page has a lower priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the second affinity, the startup flag of the to-be-started page, and the startup parameters of the source page.

[0032] In a second aspect, an embodiment of the present application provides a device for processing a virtual task stack, the device comprising:

[0033] An acquisition unit, configured to acquire startup parameters of a page to be started and startup parameters of a source page of the page to be started;

[0034] a first determining unit, configured to determine the virtual affinity of the page to be started based on the startup parameters of the page to be started and the startup parameters of the source page;

[0035] The second determining unit is configured to determine, based on the virtual affinity, a target virtual task stack for storing the page to be started.

[0036] Optionally, the virtual affinity of the page to be started includes:

[0037] The first affinity or the second affinity, wherein the first affinity is the real affinity of the page to be started, and the second affinity is the affinity of the first virtual task stack, and the first virtual task stack is the virtual task stack storing the source page.

[0038] Optionally, if the virtual affinity is the first affinity, the second determining unit is configured to:

[0039] The target virtual task stack is determined based on the first affinity and the startup parameters of the to-be-started page.

[0040] Optionally, the second determining unit is configured to:

[0041] Determining, from existing virtual task stacks, a virtual task stack with the first affinity as a pending virtual task stack;

[0042] In a case where the pending virtual task stack meets the startup parameters of the to-be-started page, the pending virtual task stack is determined as the target virtual task stack.

[0043] Optionally, the second determining unit is configured to:

[0044] The target virtual task stack is created based on the startup parameters of the to-be-started page, and the affinity of the target virtual task stack is the first affinity.

[0045] Optionally, if the virtual affinity is the second affinity, the second determining unit is configured to:

[0046] The target virtual task stack is determined based on the second affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page.

[0047] Optionally, the second determining unit is configured to:

[0048] Determining, from the existing virtual task stacks, a virtual task stack with the second affinity as a pending virtual task stack;

[0049] In a case where the pending virtual task stack meets the startup parameters of the to-be-started page and the startup parameters of the source page, the pending virtual task stack is determined as the target virtual task stack.

[0050] Optionally, the second determining unit is configured to:

[0051] The target virtual task stack is created based on the startup parameters of the to-be-started page or the startup parameters of the source page, and the affinity of the target virtual task stack is the second affinity.

[0052] Optionally, the startup parameters include a startup mode and a startup flag, and the startup mode and the startup flag of the to-be-started page conflict with each other, and the second determining unit is configured to:

[0053] If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the first affinity and the startup mode of the to-be-started page.

[0054] Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-activated page has a lower priority than the startup flag of the to-be-activated page, the target virtual task stack is determined based on the first affinity and the startup flag of the to-be-activated page.

[0055] Optionally, the startup parameters include a startup mode and a startup flag, and if the startup mode and the startup flag of the to-be-started page conflict, the second determining unit is configured to:

[0056] If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, determining the target virtual task stack based on the second affinity, the startup mode of the to-be-started page, and the startup parameters of the source page;

[0057] Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-started page has a lower priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the second affinity, the startup flag of the to-be-started page, and the startup parameters of the source page.

[0058] In a third aspect, an embodiment of the present application provides a device, comprising a processor and a memory;

[0059] The processor is configured to execute instructions stored in the memory, so that the device executes the method described in any one of the first aspects above.

[0060] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it includes instructions, and the instructions instruct a device to execute any method described in the first aspect above.

[0061] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.

[0062] Compared with the prior art, the embodiments of the present application have the following advantages:

[0063] The embodiment of the present application provides a method for processing a virtual task stack. Specifically, before starting the page to be started, the startup parameters of the page to be started and the startup parameters of the source page of the page to be started can be obtained. Based on the startup parameters of the page to be started and the startup parameters of the source page, the virtual affinity of the page to be started is determined; then, based on the virtual affinity of the page to be started, the target virtual task stack for storing the page to be started is determined. It can be seen that in the embodiment of the present application, the target virtual task stack for storing the page to be started is determined based on the virtual affinity of the page to be started, and the virtual affinity is determined according to the startup parameters of the page to be started and the startup parameters of the source page. Therefore, the determined target virtual task stack comprehensively considers the factors that need to be considered when starting the page to be started based on the source page. Therefore, using the determined target virtual task stack to store the page to be started can make the startup effect of the page to be started meet expectations. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0065] Figure 1 A flowchart of a method for processing a virtual task stack provided in an embodiment of the present application;

[0066] Figure 2 A schematic diagram of the structure of a virtual task stack processing device provided in an embodiment of the present application;

[0067] Figure 3 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0069] After research, the inventors of this application discovered that, in conventional techniques, before launching a page, a virtual stack for storing the page to be launched can be determined based on the affinity of the page to be launched and the startup parameters of the page to be launched. The affinity of the virtual task stack storing the page to be launched is always the affinity of the page to be launched. However, using this approach can, in some scenarios, result in unexpected results after the page to be launched is launched.

[0070] The startup parameters include the startup mode. In Android, these modes can be standard, singleTop, singleTask, and singleInstance. Furthermore, to achieve additional page startup effects, the startup parameters can also include a startup flag. The startup mode and startup flag are not described in detail here.

[0071] in:

[0072] Standard is the default startup mode.

[0073] singleTop means that if the page to be started is already in the virtual task stack, the virtual task stack will be reused. In other words, singleTop indicates that if there is already a page (such as page C) at the top of the virtual task stack, the page (such as page C) cannot be started again.

[0074] singleTask indicates that the page to be started needs to be at the top of the virtual task stack, and other pages stored in the virtual task stack need to be popped out.

[0075] SingleInstance is a global singleton mode, meaning that once a virtual task stack corresponding to a page has been created, the corresponding virtual task stack will not be re-created when the page needs to be launched again. In other words, when the launch mode of a page is singleInstance, only one page can be stored in the virtual task stack of the page.

[0076] Regarding the startup flag of the page to be started, the embodiment of the present application does not make any specific limitation. In one example, the startup flag may include multipleTask, which indicates that a new virtual task stack needs to be created to store the page.

[0077] The following are several possible scenarios.

[0078] Scenario 1: The virtual task stack affinity of page A is abc, and the startup mode of page A is singleTask; the task stack affinity of page B is default, and the startup mode is standard.

[0079] When page B is started based on page A, the desired effect is that page B is directly superimposed on page A. In other words, the virtual task stack storing page B should be the virtual task stack storing page A, where the affinity of the virtual task stack storing page A is abc.

[0080] However, in traditional technology, the affinity of the virtual task stack storing page B is determined by the page affinity of page B itself. Therefore, when page B is started, page B is stored in the virtual task stack with the default affinity instead of the virtual task stack with the affinity of abc, resulting in the startup effect of page B not meeting expectations.

[0081] Scenario 2: Page A has the default affinity and the startup mode is single Instance; Page B has the default affinity and the startup mode is singleTop.

[0082] In conventional technology, page B is stored in the virtual task stack where page A is located. However, the startup mode of page A indicates that the virtual task stack can only store one page. Therefore, the startup effect of page B does not meet expectations.

[0083] Scenario 3: Page A and Page B are the same page. The startup parameters of Page A and Page B are: startup mode is singleTask or singleTop, startup flag is multipleTask.

[0084] When page B is started based on page A, the desired effect is to not restart page B. In traditional technology, a new virtual task stack is created to store page B, and page B is started.

[0085] Scenario 4: Page A has the default affinity, standard startup mode, and multipleTask startup flag. Page B has the default affinity, standard startup mode, and no startup flag.

[0086] When page B is started based on page A, the desired effect is to store page B in the virtual task stack where page A is stored.

[0087] In traditional technology, when the first page of an application is launched, a virtual task stack (e.g., virtual task stack 1) is created with the default affinity. After page A is launched, a new virtual task stack (e.g., virtual task stack 2) is created based on the launch flag of page A to store page A. The affinity of virtual task stack 2 for page A is also the default. When page B is launched, virtual task stack 1 is selected as the virtual task stack for page B from among the two virtual task stacks with the default affinity, based on the order in which the application's pages are launched.

[0088] Scenario 5: Page A and Page B are the same page. Page A has the default affinity and the singleTask startup mode. Page B also has the singleTask startup mode and the multipleTask startup flag.

[0089] When page B is started based on page A, the desired effect is to not start page B. However, in conventional technology, a new virtual task stack is created to store page B, and page B is restarted.

[0090] Scenario 6: Pages A and B are the same page. Page A has the default affinity and the singleTop startup mode. Page B also has the singleTop startup mode and the multipleTask startup flag.

[0091] When page B is started based on page A, the desired effect is to not start page B. However, in conventional technology, a new virtual task stack is created to store page B, and page B is restarted.

[0092] It should be noted that the page affinity mentioned above refers to the actual affinity of the page. For the Android operating system, the actual affinity of the page can be defined in the Android development file AndroidManifest.xml.

[0093] In order to solve the above problems, an embodiment of the present application provides a method for processing a virtual task stack, which can ensure that the startup effect of a page meets expectations.

[0094] Various non-limiting embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0095] Exemplary Methods

[0096] See also Figure 1, which is a flow chart of a method for processing a virtual task stack provided by an embodiment of the present application. The method provided by the embodiment of the present application can be executed by an installation-free application, which can be, for example, a game application, and the embodiment of the present application does not make specific limitations.

[0097] Figure 1 The method shown may, for example, include the following steps: S101 - S103 .

[0098] S101: Acquire startup parameters of a page to be started and startup parameters of a source page of the page to be started.

[0099] The to-be-started page in the embodiment of the present application is a page that needs to be loaded during the operation of the installation-free application.

[0100] In one example, the startup parameters of the page can be defined in the Android development file AndroidManifest.xml. Therefore, in the embodiment of the present application, the startup parameters of the page to be started and the startup parameters of the source page can be obtained through the Android development file AndroidManifest.xml.

[0101] Regarding the startup parameters, it should be noted that for a page, the startup parameters of the page are used to describe the startup effect of the page. In one example, the startup parameters include: startup mode. In the Android system, the startup mode may include standard, singleTop, singleTask, and singleInstance. In addition, in order to achieve additional page startup effects, the startup parameters may also include a startup flag. Regarding the startup mode and startup flag, please refer to the relevant description section above, which will not be repeated here.

[0102] Regarding the source page of the page to be launched, it should be noted that the source page of the page to be launched refers to the page that is loaded as the basis for the page to be launched. For example: if page A is launched based on page B, then page B is the source page of page A.

[0103] S102: Determine the virtual affinity of the page to be started based on the startup parameters of the page to be started and the startup parameters of the source page.

[0104] In the embodiment of the present application, since the page to be started is started based on the source page, the actual startup effect of the page to be started is not only related to the startup parameters of the page to be started, but also to the startup parameters of the source page. Therefore, in the embodiment of the present application, the virtual affinity of the page to be started can be determined based on the startup parameters of the page to be started and the startup parameters of the source page, so as to further determine the target virtual task stack for storing the page to be started based on the virtual affinity.

[0105] Regarding S102 , it should be noted that the virtual affinity of the page to be started may be the real affinity of the page to be started or a second affinity, wherein the second affinity is the affinity of the first virtual task stack, which is the virtual task stack storing the source page.

[0106] It should be noted that, in the embodiment of the present application, for a virtual task stack, its affinity is the virtual affinity of the first page pushed into the stack. It is understandable that the second affinity is the virtual affinity of the source page.

[0107] In some embodiments, if the startup parameters of the to-be-started page and the startup parameters of the source page indicate that the startup effect of the to-be-started page is: after the to-be-started page is started, it is independent of the source page, that is, after the to-be-started page is started, it is not superimposed on the source page, then the virtual affinity of the to-be-started page is the real affinity of the to-be-started page. If the startup parameters of the to-be-started page and the startup parameters of the source page indicate that the startup effect of the to-be-started page is: directly superimposed on the source page, then the virtual affinity of the to-be-started page is the second affinity.

[0108] For the convenience of description, hereinafter, the “real affinity of the page to be started” is referred to as the “first affinity”.

[0109] S103: Determine a target virtual task stack for storing the page to be started based on the virtual affinity.

[0110] After determining the virtual affinity of the page to be started, a target virtual task stack for storing the page to be started may be determined based on the virtual affinity.

[0111] In the embodiment of the present application, the affinity of the target virtual task stack is the virtual affinity. In one example, in a specific implementation of S103, for example, an existing virtual task stack with the virtual affinity can be determined as the target virtual task stack, or a new virtual task stack can be created as the target virtual task stack, which is not specifically limited in the embodiment of the present application.

[0112] As described above, the virtual affinity can be the first affinity or the second affinity. The following describes the specific implementation of S103 when the virtual affinity is the first affinity or the second affinity.

[0113] In one example, if the virtual affinity is the first affinity, it means that the page to be started does not need to be superimposed on the source page. At this time, the startup effect of the page to be started can be determined according to the startup parameters of the page to be started. For this case, when S103 is implemented, the target virtual task stack can be determined based on the first affinity and the startup parameters of the page to be started. Among them, "determining the target virtual task stack based on the first affinity and the startup parameters of the page to be started" can be implemented in multiple ways. Two possible implementation methods are introduced below.

[0114] As mentioned above, the affinity of the target virtual task stack is equal to the virtual affinity. In some embodiments, a virtual task stack with an affinity of the first affinity can be determined as a pending virtual task stack from the existing virtual task stack, and then, based on the startup parameters of the page to be started, it is judged whether the pending virtual task stack meets the startup parameters of the page to be started. If the pending virtual task stack meets the startup parameters of the page to be started, the pending virtual task stack is determined as the target virtual task stack. For example: if the startup mode of the page to be started is standard, it can be considered that the pending virtual task stack meets the startup parameters of the page to be started. If the startup flag of the page to be started is multipleTask, it can be considered that the pending virtual task stack does not meet the startup parameters of the page to be started (because multipleTask indicates the creation of a new virtual task stack).

[0115] In some other embodiments, the target virtual task stack can be created based on the startup parameters of the page to be started. As mentioned above, the affinity of the virtual task stack is the virtual affinity of the first page pushed into the stack. The target virtual task stack is used to store the page to be started, and the virtual affinity of the page to be started is the first affinity, so the affinity of the target virtual task stack is the first affinity. In one example, if the startup parameters of the page to be started indicate that a new virtual task stack needs to be created, the target virtual task stack can be created. In another example, if the aforementioned pending virtual task stack does not meet the startup parameters of the page to be started, the target virtual task stack can be created. For example: if the startup flag of the page to be started is multipleTask, the target virtual task stack can be created.

[0116] In one example, if the virtual affinity is the second affinity, it means that the page to be started needs to be superimposed on the source page. At this time, the startup effect of the page to be started can be determined based on the startup parameters of the page to be started and the startup parameters of the source page. For this case, when S103 is implemented, the target virtual task stack can be determined based on the second affinity, the startup parameters of the page to be started and the startup parameters of the source page. Among them, "determining the target virtual task stack based on the second affinity, the startup parameters of the page to be started and the startup parameters of the source page" can be implemented in a variety of ways. Two possible implementation methods are introduced below.

[0117] As previously described, the affinity of the target virtual task stack is equal to the virtual affinity. In some embodiments, a virtual task stack with the second affinity can be determined as a pending virtual task stack from existing virtual task stacks. Then, based on the startup parameters of the page to be started and the startup parameters of the source page, it is determined whether the pending virtual task stack meets the startup parameters of the page to be started and the startup parameters of the source page. If the pending virtual task stack meets the startup parameters of the page to be started and the startup parameters of the source page, the pending virtual task stack is determined as the target virtual task stack.

[0118] Example 1: The pending virtual task stack is the first virtual task stack, the startup mode of the page to be started is Standard, the startup mode of the source page is SingleTask, and the page to be started and the source page are different. In this case, the pending virtual task stack is considered to meet the startup parameters of the page to be started and the startup parameters of the source page.

[0119] Example 2: The pending virtual task stack is the first virtual task stack, and the startup mode of the to-be-started page is singleTop, and the startup mode of the source page is single Instance. It can be considered that the pending virtual task stack does not meet the startup parameters of the source page (because single Instance indicates that the virtual task stack can only store one page).

[0120] In some other embodiments, the target virtual task stack can be created based on the startup parameters of the page to be started or the startup parameters of the source page. It can be understood that since the affinity of the virtual task stack is the virtual affinity of the first page pushed into the stack. The target virtual task stack is used to store the page to be started, and the virtual affinity of the page to be started is the second affinity, therefore, the affinity of the target virtual task stack is the second affinity. In one example, if the startup parameters of the page to be started indicate that a new virtual task stack needs to be created, the target virtual task stack can be created. In another example, if the aforementioned pending virtual task stack does not meet the startup parameters of the page to be started or the startup parameters of the source page, the target virtual task stack can be created. In some embodiments, when the pending virtual task stack is the first virtual task stack and the startup parameters of the source page indicate that the first virtual task stack can no longer store the page to be started, the target virtual task stack can be created.

[0121] Example 1: If the startup flag of the page to be started is multipleTask, the target virtual task stack can be created.

[0122] Example 2: If the pending virtual task stack is the first virtual task stack and the startup mode of the source page is single instance, the target virtual task stack can be created according to the single instance.

[0123] As previously mentioned, in some examples, the startup parameters may include a startup mode and a startup flag. In some scenarios, for a page to be started, its startup mode and startup flag may conflict. A conflict between the startup mode and the startup flag refers to a discrepancy between the target virtual task stack determined according to the startup mode and the target virtual task stack determined according to the startup flag.

[0124] For example, if the pending virtual task stack is the first virtual task stack, the startup mode of the page to be launched is singleInstance, and the startup flag of the page to be launched is multipleTask, then when the pending virtual task stack is the first virtual task stack, and the source pages of the pages to be launched are different pages, the first virtual task stack can be determined as the target virtual task stack based on the startup mode of the page to be launched, and the target virtual task stack needs to be created based on the startup flag of the page to be launched.

[0125] In view of this, in an embodiment of the present application, a priority relationship can be pre-set. When there is a conflict between the startup mode of the page to be started and the startup flag of the page to be started, the priority of the startup mode of the page to be started and the startup flag of the page to be started are determined according to the pre-set priority relationship, and the target virtual task stack is determined based on the factor with higher priority. Specifically: if the priority of the startup mode of the page to be started is higher than the priority of the startup flag of the page to be started, the target virtual task stack is determined based on the startup mode of the page to be started. If the priority of the startup mode of the page to be started is lower than the priority of the startup flag of the page to be started, the target virtual task stack is determined based on the startup flag of the page to be started.

[0126] For example: the pending virtual task stack is the first virtual task stack, the startup mode of the page to be started is singleInstance, the startup flag of the page to be started is multipleTask, the pending virtual task stack is the first virtual task stack, and the source page of the page to be started is not the same page. Based on the startup mode of the page to be started, the first virtual task stack can be determined as the target virtual task stack, and according to the startup flag of the page to be started, the target virtual task stack needs to be created. In an embodiment of the present application, the priority of the startup mode single Instance is higher than the startup flagmultipleTask. Therefore, the target virtual task stack is determined based on the startup mode single Instance, that is, the first virtual task stack is determined as the target virtual task stack, rather than creating a new virtual task stack as the target virtual task stack.

[0127] Regarding the pre-set priority relationship, it can be specifically set according to actual conditions and is not specifically limited in the embodiments of the present application.

[0128] As previously mentioned, S103 can be implemented in two ways: one way is to determine the target virtual task stack based on the first affinity and the startup parameters of the page to be started. The other way is to determine the target virtual task stack based on the second affinity, the startup parameters of the page to be started, and the startup parameters of the source page.

[0129] Therefore, when there is a conflict between the startup mode and the startup flag of the page to be started, “determining the target virtual task stack based on the first affinity and the startup parameters of the page to be started” may include:

[0130] If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the first affinity and the startup mode of the to-be-started page.

[0131] Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-activated page has a lower priority than the startup flag of the to-be-activated page, the target virtual task stack is determined based on the first affinity and the startup flag of the to-be-activated page.

[0132] Regarding the specific implementation of "determining the target virtual task stack based on the first affinity and the startup mode of the page to be started" and "determining the target virtual task stack based on the first affinity and the startup flag of the page to be started", please refer to the above description of "determining the target virtual task stack based on the first affinity and the startup parameters of the page to be started", which will not be repeated here.

[0133] When there is a conflict between the startup mode and the startup flag of the page to be started, “determining the target virtual task stack based on the second affinity, the startup parameters of the page to be started, and the startup parameters of the source page”, in specific implementation, may include:

[0134] If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, determining the target virtual task stack based on the second affinity, the startup mode of the to-be-started page, and the startup parameters of the source page;

[0135] Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-started page has a lower priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the second affinity, the startup flag of the to-be-started page, and the startup parameters of the source page.

[0136] Regarding the specific implementation of "determining the target virtual task stack based on the second affinity, the startup mode of the page to be started, and the startup parameters of the source page" and "determining the target virtual task stack based on the second affinity, the startup flag of the page to be started, and the startup parameters of the source page", please refer to the above description of "determining the target virtual task stack based on the second affinity, the startup parameters of the page to be started, and the startup parameters of the source page", which will not be repeated here.

[0137] It can be understood that when there is no conflict between the startup mode of the page to be started and the startup flag of the page to be started, the target virtual task stack is determined based on the startup parameters of the page to be started, that is: the target virtual task stack is determined based on the startup mode of the page to be started and the startup flag of the page to be started.

[0138] As described above, the virtual affinity is determined based on the startup parameters of the page to be started and the startup parameters of the source page. Therefore, the target virtual task stack determined based on the virtual affinity comprehensively considers the factors that need to be considered when starting the page to be started based on the source page. Therefore, using the determined target virtual task stack to store the page to be started can ensure that the startup effect of the page to be started meets expectations.

[0139] Next, the page startup effects of the six scenarios mentioned above are introduced after applying the solution provided by the embodiments of the present application.

[0140] Scenario 1: The virtual task stack affinity of page A is abc, and the startup mode of page A is singleTask; the task stack affinity of page B is default, and the startup mode is standard.

[0141] After using this solution, the virtual affinity of page B is determined to be abc, and since the virtual task stack of page A meets the startup parameters of page A and the startup parameters of page B, the virtual task stack of page A is determined to be the virtual task stack for storing page B, thereby achieving the effect of page B being directly superimposed on page A.

[0142] Scenario 2: Page A has the default affinity and the startup mode is single Instance; Page B has the default affinity and the startup mode is singleTop.

[0143] After using this solution, the virtual affinity of page B is determined to be the default, and the startup mode of page A is singleInstance. Therefore, the virtual task stack of page A is determined to be the pending virtual task stack of page A. However, since the pending virtual task stack does not meet the startup parameters (single Instance) of page A, a new virtual task stack is created to store page B, so that the startup effect of page B meets expectations.

[0144] Scenario 3: Page A and Page B are the same page. The startup parameters of Page A and Page B are: startup mode is singleTask or singleTop, startup flag is multipleTask.

[0145] After utilizing the solution of the embodiment of the present application, since the priority of singleTask is higher than that of multipleTask (the priority of singleTop is also higher than that of multipleTask), page A will not be restarted.

[0146] Scenario 4: Page A has the default affinity, standard startup mode, and multipleTask startup flag. Page B has the default affinity, standard startup mode, and no startup flag.

[0147] After using this solution, the affinity of the virtual task stack of page A is no longer the default affinity, but the virtual affinity of page A (for example, affinity cde). The virtual affinity of page B is also cde, and the pending virtual task stack (the virtual task stack of page A) meets the startup parameters of page A and page B. Therefore, the virtual task stack of page A is determined to be the virtual task stack for storing page B, achieving the effect of page B being directly superimposed on page A.

[0148] Scenario 5: Page A and Page B are the same page. Page A has the default affinity and the singleTask startup mode. Page B also has the singleTask startup mode and the multipleTask startup flag.

[0149] After utilizing the solution of the embodiment of the present application, since the priority of singleTask is higher than that of multipleTask, page A will not be restarted.

[0150] Scenario 6: Pages A and B are the same page. Page A has the default affinity and the singleTop startup mode. Page B also has the singleTop startup mode and the multipleTask startup flag.

[0151] After utilizing the solution of the embodiment of the present application, since the priority of singleTop is higher than that of multipleTask, page A will not be restarted.

[0152] Exemplary devices

[0153] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.

[0154] See also Figure 2 , which is a schematic diagram of the structure of a virtual task stack processing device provided by an embodiment of the present application. The device 200 may specifically include: an acquisition unit 201, a first determination unit 202 and a second determination unit 203.

[0155] The acquisition unit 201 is used to acquire the startup parameters of the page to be started and the startup parameters of the source page of the page to be started;

[0156] A first determining unit 202 is configured to determine the virtual affinity of the page to be started based on the startup parameters of the page to be started and the startup parameters of the source page;

[0157] The second determining unit 203 is configured to determine a target virtual task stack for storing the to-be-started page based on the virtual affinity.

[0158] Optionally, the virtual affinity of the page to be started includes:

[0159] The first affinity or the second affinity, wherein the first affinity is the real affinity of the page to be started, and the second affinity is the affinity of the first virtual task stack, and the first virtual task stack is the virtual task stack storing the source page.

[0160] Optionally, if the virtual affinity is the first affinity, the second determining unit 202 is configured to:

[0161] The target virtual task stack is determined based on the first affinity and the startup parameters of the to-be-started page.

[0162] Optionally, the second determining unit 202 is configured to:

[0163] Determining, from existing virtual task stacks, a virtual task stack with the first affinity as a pending virtual task stack;

[0164] In a case where the pending virtual task stack meets the startup parameters of the to-be-started page, the pending virtual task stack is determined as the target virtual task stack.

[0165] Optionally, the second determining unit 202 is configured to:

[0166] The target virtual task stack is created based on the startup parameters of the to-be-started page, and the affinity of the target virtual task stack is the first affinity.

[0167] Optionally, if the virtual affinity is the second affinity, the second determining unit 202 is configured to:

[0168] The target virtual task stack is determined based on the second affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page.

[0169] Optionally, the second determining unit 202 is configured to:

[0170] Determining, from the existing virtual task stacks, a virtual task stack with the second affinity as a pending virtual task stack;

[0171] In a case where the pending virtual task stack meets the startup parameters of the to-be-started page and the startup parameters of the source page, the pending virtual task stack is determined as the target virtual task stack.

[0172] Optionally, the second determining unit 202 is configured to:

[0173] The target virtual task stack is created based on the startup parameters of the to-be-started page or the startup parameters of the source page, and the affinity of the target virtual task stack is the second affinity.

[0174] Optionally, the startup parameters include a startup mode and a startup flag, and the startup mode and the startup flag of the to-be-started page conflict, and the second determining unit 202 is configured to:

[0175] If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the first affinity and the startup mode of the to-be-started page.

[0176] Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-activated page has a lower priority than the startup flag of the to-be-activated page, the target virtual task stack is determined based on the first affinity and the startup flag of the to-be-activated page.

[0177] Optionally, the startup parameters include a startup mode and a startup flag, and if the startup mode and the startup flag of the to-be-started page conflict, the second determining unit 202 is configured to:

[0178] If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, determining the target virtual task stack based on the second affinity, the startup mode of the to-be-started page, and the startup parameters of the source page;

[0179] Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-started page has a lower priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the second affinity, the startup flag of the to-be-started page, and the startup parameters of the source page.

[0180] Since the device 200 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 200 is based on the same concept as the above method embodiment. Therefore, regarding the specific implementation of each unit of the device 200, please refer to the description part of the above method embodiment, which will not be repeated here.

[0181] An embodiment of the present application further provides a device, the device comprising a processor and a memory;

[0182] The processor is configured to execute instructions stored in the memory, so that the device executes the method described in any one of the above method embodiments.

[0183] Reference below Figure 3 , which shows a schematic structural diagram of an electronic device 300 suitable for implementing an embodiment of the present application. The electronic devices in the embodiments of the present application may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable Android devices), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs (televisions) and desktop computers. Figure 3 The electronic device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0184] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. Various programs and data required for the operation of the electronic device 300 are also stored in the RAM 303. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0185] Typically, the following devices may be connected to the I / O interface 305: an input device 306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0186] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present application are performed.

[0187] The electronic device provided in the embodiment of the present application and the method provided in the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0188] An embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any of the above embodiments is implemented.

[0189] It should be noted that the computer-readable medium mentioned above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0190] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0191] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0192] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the method.

[0193] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0194] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0195] The units involved in the embodiments described in this application may be implemented by software or hardware. In some cases, the name of a unit / module does not constitute a limitation of the unit itself. For example, a voice data acquisition module may also be described as a "data acquisition module."

[0196] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0197] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0198] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0199] It should be understood that the present application is not limited to the precise structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0200] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A method for processing a virtual task stack, characterized in that: The method comprises: Obtaining startup parameters of a page to be started and startup parameters of a source page of the page to be started; Determining a virtual affinity of the page to be started based on startup parameters of the page to be started and startup parameters of the source page, the virtual affinity of the page to be started including: a first affinity or a second affinity, the first affinity being a real affinity of the page to be started, the second affinity being an affinity of a first virtual task stack, the first virtual task stack being a virtual task stack storing the source page, the affinity of the first virtual task stack being a virtual affinity of a page first entered into the first virtual task stack; Based on the virtual affinity, a target virtual task stack for storing the page to be started is determined.

2. The method according to claim 1, characterized in that If the virtual affinity is the first affinity, determining a target virtual task stack for storing the to-be-started page based on the virtual affinity includes: The target virtual task stack is determined based on the first affinity and the startup parameters of the to-be-started page.

3. The method according to claim 2, characterized in that The determining the target virtual task stack based on the virtual affinity and the startup parameters of the to-be-started page includes: Determining, from existing virtual task stacks, a virtual task stack with the first affinity as a pending virtual task stack; In a case where the pending virtual task stack meets the startup parameters of the to-be-started page, the pending virtual task stack is determined as the target virtual task stack.

4. The method according to claim 2, characterized in that The determining the target virtual task stack based on the virtual affinity and the startup parameters of the to-be-started page includes: The target virtual task stack is created based on the startup parameters of the to-be-started page, and the affinity of the target virtual task stack is the first affinity.

5. The method according to claim 1, wherein If the virtual affinity is the second affinity, determining a target virtual task stack for storing the to-be-started page based on the virtual affinity includes: The target virtual task stack is determined based on the second affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page.

6. The method according to claim 5, characterized in that The determining the target virtual task stack based on the virtual affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page includes: Determining, from existing virtual task stacks, a virtual task stack with the second affinity as a pending virtual task stack; In a case where the pending virtual task stack meets the startup parameters of the to-be-started page and the startup parameters of the source page, the pending virtual task stack is determined as the target virtual task stack.

7. The method according to claim 5, characterized in that The determining the target virtual task stack based on the virtual affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page includes: The target virtual task stack is created based on the startup parameters of the to-be-started page or the startup parameters of the source page, and the affinity of the target virtual task stack is the second affinity.

8. The method according to claim 2, characterized in that The startup parameters include a startup mode and a startup flag, and there is a conflict between the startup mode and the startup flag of the to-be-started page. Determining the target virtual task stack based on the first affinity and the startup parameters of the to-be-started page includes: If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, determining the target virtual task stack based on the first affinity and the startup mode of the to-be-started page; Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-activated page has a lower priority than the startup flag of the to-be-activated page, the target virtual task stack is determined based on the first affinity and the startup flag of the to-be-activated page.

9. The method according to claim 5, characterized in that The startup parameters include a startup mode and a startup flag, and if there is a conflict between the startup mode and the startup flag of the to-be-started page, determining the target virtual task stack based on the second affinity, the startup parameters of the to-be-started page, and the startup parameters of the source page includes: If the predetermined priority relationship indicates that the startup mode of the to-be-started page has a higher priority than the startup flag of the to-be-started page, determining the target virtual task stack based on the second affinity, the startup mode of the to-be-started page, and the startup parameters of the source page; Alternatively, if the predetermined priority relationship indicates that the startup mode of the to-be-started page has a lower priority than the startup flag of the to-be-started page, the target virtual task stack is determined based on the second affinity, the startup flag of the to-be-started page, and the startup parameters of the source page.

10. A virtual task stack processing device, characterized in that: The device comprises: An acquisition unit, configured to acquire startup parameters of a page to be started and startup parameters of a source page of the page to be started; a first determining unit, configured to determine a virtual affinity of the page to be started based on startup parameters of the page to be started and startup parameters of the source page, the virtual affinity of the page to be started comprising: a first affinity, or a second affinity, the first affinity being a real affinity of the page to be started, the second affinity being an affinity of a first virtual task stack, the first virtual task stack being a virtual task stack storing the source page, the affinity of the first virtual task stack being a virtual affinity of a page first entered into the first virtual task stack; The second determining unit is configured to determine, based on the virtual affinity, a target virtual task stack for storing the page to be started.

11. A device, characterized in that The device includes a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the device performs the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Application program Activity starting method and device

    CN106778248A