技术领域technical field
本发明涉及计算机处理技术领域,特别是一种实现插件的多任务栈的方法和装置。The invention relates to the technical field of computer processing, in particular to a method and device for realizing a plug-in multitasking stack.
背景技术Background technique
在软件开发中,为了方便对软件进行功能扩展,可以采用插件方式进行开发,将软件所要实现的一个一个功能封装在插件中,最后将各个插件集成在软件主程序包中一同发布。In software development, in order to facilitate the function extension of the software, plug-ins can be used for development, and the functions to be realized by the software are encapsulated in the plug-ins, and finally the plug-ins are integrated into the main software package and released together.
Task是一个具有栈结构的容器,可以放置多个活动界面的实例。例如,启动一个应用,系统就会为之创建一个Task,来放置根Activity;默认情况下,一个Activity启动另一个Activity时,两个Activity是放置在同一个Task中的,后者被压入前者所在的Task栈,当用户按下后退键,后者从Task被弹出,前者又显示在幕前。Task is a container with a stack structure, which can place multiple instances of active interfaces. For example, when an application is started, the system will create a Task for it to place the root Activity; by default, when one Activity starts another Activity, the two Activities are placed in the same Task, and the latter is pushed into the former The Task stack where it is located, when the user presses the back key, the latter is popped from the Task, and the former is displayed on the screen.
插件的所有任务(一个任务可以是一种功能)都只能在一个Task中运行,因而无法进行多任务切换。例如,当前用户在操作任务A,打开了任务A的若干个界面;用户从任务A打开任务B,在任务B进行若干操作;如果此时用户需要临时切换到任务A,则必须退出任务B,才能回到任务A。那么,如何实现多任务间的自由切换成为亟待解决的技术问题。All tasks of the plug-in (a task can be a function) can only be run in one Task, so multi-task switching cannot be performed. For example, the current user is operating task A and opens several interfaces of task A; the user opens task B from task A and performs some operations on task B; if the user needs to temporarily switch to task A at this time, he must exit task B. To return to task A. Then, how to realize free switching among multi-tasks has become an urgent technical problem to be solved.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种实现插件的多任务栈的方法和装置。In view of the above problems, the present invention is proposed to provide a method and device for implementing a plug-in multitasking stack that overcomes the above problems or at least partially solves the above problems.
依据本发明实施例的一方面,提供了一种实现插件的多任务栈的方法,包括:According to an aspect of the embodiments of the present invention, a method for implementing a plug-in multitasking stack is provided, including:
获取宿主的插件的多个任务,在宿主的配置文件中注册所述多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task;Obtaining multiple tasks of the plug-in of the host, and registering the Tasks to which the respective active interfaces of the multiple tasks belong in the configuration file of the host, wherein the respective active interfaces of different tasks belong to different Tasks;
当宿主加载插件并启动所述多个任务中的任意任务的当前活动界面时,在所述配置文件中查找所述当前活动界面所属的目标Task;When the host loads the plug-in and starts the current active interface of any task in the multiple tasks, search the configuration file for the target Task to which the current active interface belongs;
在宿主中查找所述目标Task对应的所有注册界面,并依据预设的选取策略从所述目标Task对应的所有注册界面中选取目标注册界面;Find all registration interfaces corresponding to the target Task in the host, and select a target registration interface from all registration interfaces corresponding to the target Task according to a preset selection strategy;
将所述目标注册界面分配给所述当前活动界面使用。Allocating the target registration interface to the current active interface.
可选地,所述多个任务各自能够实现插件的不同功能。Optionally, each of the multiple tasks can implement different functions of the plug-in.
可选地,所述Task是具有栈结构的容器,能够放置一个或多个活动界面。Optionally, the Task is a container with a stack structure, capable of placing one or more active interfaces.
可选地,同一个任务的活动界面属于同一个Task。Optionally, the active interfaces of the same task belong to the same Task.
可选地,所述在宿主的配置文件中注册所述多个任务各自的活动界面所属的Task,包括:Optionally, the registering the Tasks to which the respective active interfaces of the multiple tasks belong in the configuration file of the host includes:
获取宿主的多个Task;Get multiple tasks of the host;
在宿主的配置文件中注册所述多个任务各自的活动界面在所述多个Task中所属的Task。The task to which the respective active interfaces of the multiple tasks belong among the multiple Tasks is registered in the configuration file of the host.
可选地,所述在宿主的配置文件中注册所述多个任务各自的活动界面在所述多个Task中所属的Task,包括:Optionally, the registering the Tasks to which the respective active interfaces of the multiple tasks belong among the multiple Tasks in the configuration file of the host includes:
在宿主的配置文件中注册所述多个任务各自的活动界面的TaskAffinity属性,由该属性指示活动界面在所述多个Task中所属的Task。The TaskAffinity attribute of each active interface of the plurality of tasks is registered in the configuration file of the host, and the attribute indicates the Task to which the active interface belongs among the plurality of Tasks.
可选地,所述获取宿主的多个Task,包括:Optionally, the acquiring multiple tasks of the host includes:
读取宿主的配置文件;Read the configuration file of the host;
查找在宿主的配置文件中注册的宿主的多个Task。Find multiple tasks for the host registered in the host's configuration file.
可选地,所述方法还包括:Optionally, the method also includes:
在宿主中为所述多个Task中的各个Task预设多个注册界面;Presetting multiple registration interfaces for each of the multiple Tasks in the host;
对各个Task预设的多个注册界面进行分组,其中,各组对应一个或多个注册界面。Group multiple registration interfaces preset by each Task, where each group corresponds to one or more registration interfaces.
可选地,所述方法还包括:Optionally, the method also includes:
将不同的启动模式分配给各个注册界面的LaunchMode属性,其中,所述不同的启动模式包括下列任意之一:Different launch modes are assigned to the LaunchMode attribute of each registration interface, wherein the different launch modes include any one of the following:
Standard、SingleTop、SingleTask、SingleInstance。Standard, SingleTop, SingleTask, SingleInstance.
可选地,所述对各个Task预设的多个注册界面进行分组,包括:Optionally, the grouping of multiple registration interfaces preset by each Task includes:
按照不同的启动模式对各个Task预设的多个注册界面进行分组,其中,一种启动模式对应一个组。Group multiple registration interfaces preset by each Task according to different startup modes, where one startup mode corresponds to a group.
可选地,所述依据预设的选取策略从所述目标Task对应的所有注册界面中选取目标注册界面,包括:Optionally, selecting a target registration interface from all registration interfaces corresponding to the target Task according to a preset selection strategy includes:
确定所述当前活动界面的启动模式;Determine the startup mode of the current active interface;
在所述目标Task对应的多组注册界面中,查找所述当前活动界面的启动模式对应的分组;In the multiple groups of registration interfaces corresponding to the target Task, search for the group corresponding to the startup mode of the current active interface;
在所述当前活动界面的启动模式对应的分组中查找所有注册界面;Searching for all registered interfaces in the group corresponding to the startup mode of the current active interface;
在查找到的所有注册界面中确定使用状态为空余状态的注册界面,并从中选取任意注册界面作为目标注册界面。From among all the found registration interfaces, determine the registration interface whose use state is the idle state, and select any registration interface as the target registration interface.
可选地,所述将所述目标注册界面分配给所述当前活动界面使用,包括:Optionally, the allocating the target registration interface to the current active interface includes:
将所述目标注册界面的信息传递给插件的加载器,由插件的加载器根据所述目标注册界面的信息启动目标注册界面,供所述当前活动界面使用。The information of the target registration interface is transmitted to the loader of the plug-in, and the loader of the plug-in starts the target registration interface according to the information of the target registration interface for use by the current active interface.
依据本发明实施例的另一方面,还提供了一种实现插件的多任务栈的装置,包括:According to another aspect of the embodiments of the present invention, there is also provided an apparatus for implementing a plug-in multitasking stack, including:
注册模块,适于获取宿主的插件的多个任务,在宿主的配置文件中注册所述多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task;The registration module is adapted to obtain multiple tasks of the plug-in of the host, and registers the Tasks to which the respective active interfaces of the multiple tasks belong in the configuration file of the host, wherein the respective active interfaces of different tasks belong to different Tasks;
查找模块,适于当宿主加载插件并启动所述多个任务中的任意任务的当前活动界面时,在所述配置文件中查找所述当前活动界面所属的目标Task;A search module, adapted to search the configuration file for the target Task to which the current active interface belongs when the host loads the plug-in and starts the current active interface of any task in the plurality of tasks;
选取模块,适于在宿主中查找所述目标Task对应的所有注册界面,并依据预设的选取策略从所述目标Task对应的所有注册界面中选取目标注册界面;The selection module is adapted to find all registration interfaces corresponding to the target Task in the host, and select the target registration interface from all registration interfaces corresponding to the target Task according to a preset selection strategy;
分配模块,适于将所述目标注册界面分配给所述当前活动界面使用。The allocation module is adapted to allocate the target registration interface to the current active interface.
可选地,所述多个任务各自能够实现插件的不同功能。Optionally, each of the multiple tasks can implement different functions of the plug-in.
可选地,所述Task是具有栈结构的容器,能够放置一个或多个活动界面。Optionally, the Task is a container with a stack structure, capable of placing one or more active interfaces.
可选地,同一个任务的活动界面属于同一个Task。Optionally, the active interfaces of the same task belong to the same Task.
可选地,所述注册模块包括:Optionally, the registration module includes:
获取单元,适于获取宿主的多个Task;The acquisition unit is suitable for acquiring multiple tasks of the host;
注册单元,适于在宿主的配置文件中注册所述多个任务各自的活动界面在所述多个Task中所属的Task。The registration unit is adapted to register in the configuration file of the host the Task to which the respective active interfaces of the multiple tasks belong among the multiple Tasks.
可选地,所述注册单元还适于:Optionally, the registration unit is also suitable for:
在宿主的配置文件中注册所述多个任务各自的活动界面的TaskAffinity属性,由该属性指示活动界面在所述多个Task中所属的Task。The TaskAffinity attribute of each active interface of the plurality of tasks is registered in the configuration file of the host, and the attribute indicates the Task to which the active interface belongs among the plurality of Tasks.
可选地,所述获取单元还适于:Optionally, the acquisition unit is also suitable for:
读取宿主的配置文件;Read the configuration file of the host;
查找在宿主的配置文件中注册的宿主的多个Task。Find multiple tasks for the host registered in the host's configuration file.
可选地,所述装置还包括:Optionally, the device also includes:
配置模块,适于在宿主中为所述多个Task中的各个Task预设多个注册界面;对各个Task预设的多个注册界面进行分组,其中,各组对应一个或多个注册界面。The configuration module is adapted to preset a plurality of registration interfaces for each of the plurality of Tasks in the host; and group the plurality of registration interfaces preset for each Task, wherein each group corresponds to one or more registration interfaces.
可选地,所述配置模块还适于:Optionally, the configuration module is also suitable for:
将不同的启动模式分配给各个注册界面的LaunchMode属性,其中,所述不同的启动模式包括下列任意之一:Different launch modes are assigned to the LaunchMode attribute of each registration interface, wherein the different launch modes include any one of the following:
Standard、SingleTop、SingleTask、SingleInstance。Standard, SingleTop, SingleTask, SingleInstance.
可选地,所述配置模块还适于:Optionally, the configuration module is also suitable for:
按照不同的启动模式对各个Task预设的多个注册界面进行分组,其中,一种启动模式对应一个组。Group multiple registration interfaces preset by each Task according to different startup modes, where one startup mode corresponds to a group.
可选地,所述选取模块还适于:Optionally, the selection module is also suitable for:
确定所述当前活动界面的启动模式;Determine the startup mode of the current active interface;
在所述目标Task对应的多组注册界面中,查找所述当前活动界面的启动模式对应的分组;In the multiple groups of registration interfaces corresponding to the target Task, search for the group corresponding to the startup mode of the current active interface;
在所述当前活动界面的启动模式对应的分组中查找所有注册界面;Searching for all registered interfaces in the group corresponding to the startup mode of the current active interface;
在查找到的所有注册界面中确定使用状态为空余状态的注册界面,并从中选取任意注册界面作为目标注册界面。From among all the found registration interfaces, determine the registration interface whose use state is the idle state, and select any registration interface as the target registration interface.
可选地,所述分配模块还适于:Optionally, the distribution module is also suitable for:
将所述目标注册界面的信息传递给插件的加载器,由插件的加载器根据所述目标注册界面的信息启动目标注册界面,供所述当前活动界面使用。The information of the target registration interface is transmitted to the loader of the plug-in, and the loader of the plug-in starts the target registration interface according to the information of the target registration interface for use by the current active interface.
在本发明实施例中,获取宿主的插件的多个任务,在宿主的配置文件中注册多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task;当宿主加载插件并启动多个任务中的任意任务的当前活动界面时,在配置文件中查找当前活动界面所属的目标Task;进而,在宿主中查找目标Task对应的所有注册界面,并依据预设的选取策略从目标Task对应的所有注册界面中选取目标注册界面;之后,将目标注册界面分配给当前活动界面使用。可以看到,本发明实施例在宿主的配置文件中注册多个任务各自的活动界面所属的Task,并且不同的任务各自的活动界面属于不同的Task,这样使得不同的任务之间能够自由切换,无需退出任务。并且,本发明实施例在启动任意任务的当前活动界面时,能够从当前活动界面所属的目标Task对应的所有注册界面中选取目标注册界面,将目标注册界面分配给当前活动界面使用,保证了任务界面的正常启动。In the embodiment of the present invention, multiple tasks of the plug-in of the host are acquired, and the Tasks to which the respective active interfaces of the multiple tasks belong are registered in the configuration file of the host, wherein the respective active interfaces of different tasks belong to different Tasks; when the host When the plug-in is loaded and the current active interface of any task among multiple tasks is started, the target Task to which the current active interface belongs is searched in the configuration file; furthermore, all registration interfaces corresponding to the target Task are searched in the host, and selected according to the preset The strategy selects the target registration interface from all the registration interfaces corresponding to the target Task; after that, assigns the target registration interface to the current active interface. It can be seen that the embodiment of the present invention registers the Tasks to which the respective active interfaces of multiple tasks belong in the configuration file of the host, and the respective active interfaces of different tasks belong to different Tasks, so that different tasks can be switched freely, No need to exit the mission. And, in the embodiment of the present invention, when starting the current active interface of any task, the target registration interface can be selected from all registration interfaces corresponding to the target Task to which the current active interface belongs, and the target registration interface is assigned to the current active interface for use, ensuring that the task Normal startup of the interface.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。Those skilled in the art will be more aware of the above and other objects, advantages and features of the present invention according to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一实施例的实现插件的多任务栈的方法的流程图;FIG. 1 shows a flowchart of a method for implementing a plug-in multitasking stack according to an embodiment of the present invention;
图2示出了根据本发明一实施例Task预设的多个注册界面的分组示意图;Fig. 2 shows a group schematic diagram of multiple registration interfaces preset by Task according to an embodiment of the present invention;
图3示出了根据本发明一实施例的选取目标注册界面的方法的流程图;FIG. 3 shows a flowchart of a method for selecting a target registration interface according to an embodiment of the present invention;
图4示出了根据本发明另一实施例的实现插件的多任务栈的方法的流程图;FIG. 4 shows a flow chart of a method for implementing a plug-in multitasking stack according to another embodiment of the present invention;
图5示出了根据本发明一实施例的实现插件的多任务栈的装置的结构示意图;以及FIG. 5 shows a schematic structural diagram of an apparatus for implementing a plug-in multitasking stack according to an embodiment of the present invention; and
图6示出了根据本发明另一实施例的实现插件的多任务栈的装置的结构示意图。Fig. 6 shows a schematic structural diagram of an apparatus for implementing a plug-in multitasking stack according to another embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
如前文介绍,Task是一个具有栈结构的容器,可以放置多个活动界面的实例。以Android(安卓)系统为例,活动界面为Activity,可以将Task理解为多个Activity的集合,它们按顺序排列。现有技术中,在宿主(即是指主程序)的插件中,插件的所有任务的Activity放到一个单独的Task中,导致无法进行多任务自由切换。As mentioned above, Task is a container with a stack structure, which can place multiple instances of active interfaces. Taking the Android (Android) system as an example, the activity interface is Activity, and Task can be understood as a collection of multiple Activities, which are arranged in order. In the prior art, in the plug-in of the host (that is, the main program), the activities of all the tasks of the plug-in are put into a single Task, resulting in the inability to freely switch between multiple tasks.
为解决上述技术问题,本发明实施例提供了一种实现插件的多任务栈的方法,图1示出了根据本发明一实施例的实现插件的多任务栈的方法的流程图。如图1所示,该方法至少可以包括以下步骤S102至S108。To solve the above technical problem, an embodiment of the present invention provides a method for implementing a plug-in multitasking stack. FIG. 1 shows a flow chart of a method for implementing a plug-in multitasking stack according to an embodiment of the present invention. As shown in Fig. 1, the method may at least include the following steps S102 to S108.
步骤S102,获取宿主的插件的多个任务,在宿主的配置文件中注册多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task。Step S102, obtaining multiple tasks of the plug-in of the host, and registering the Tasks to which the active interfaces of the multiple tasks belong in the configuration file of the host, wherein the active interfaces of different tasks belong to different Tasks.
步骤S104,当宿主加载插件并启动多个任务中的任意任务的当前活动界面时,在配置文件中查找当前活动界面所属的目标Task。Step S104, when the host loads the plug-in and starts the current active interface of any task in the multiple tasks, it searches the configuration file for the target Task to which the current active interface belongs.
步骤S106,在宿主中查找目标Task对应的所有注册界面,并依据预设的选取策略从目标Task对应的所有注册界面中选取目标注册界面。Step S106, searching for all registration interfaces corresponding to the target Task in the host, and selecting the target registration interface from all registration interfaces corresponding to the target Task according to a preset selection strategy.
步骤S108,将目标注册界面分配给当前活动界面使用。Step S108, assigning the target registration interface to the current active interface.
在本发明实施例中,获取宿主的插件的多个任务,在宿主的配置文件中注册多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task;当宿主加载插件并启动多个任务中的任意任务的当前活动界面时,在配置文件中查找当前活动界面所属的目标Task;进而,在宿主中查找目标Task对应的所有注册界面,并依据预设的选取策略从目标Task对应的所有注册界面中选取目标注册界面;之后,将目标注册界面分配给当前活动界面使用。可以看到,本发明实施例在宿主的配置文件中注册多个任务各自的活动界面所属的Task,并且不同的任务各自的活动界面属于不同的Task,这样使得不同的任务之间能够自由切换,无需退出任务。并且,本发明实施例在启动任意任务的当前活动界面时,能够从当前活动界面所属的目标Task对应的所有注册界面中选取目标注册界面,将目标注册界面分配给当前活动界面使用,保证了任务界面的正常启动。In the embodiment of the present invention, multiple tasks of the plug-in of the host are acquired, and the Tasks to which the respective active interfaces of the multiple tasks belong are registered in the configuration file of the host, wherein the respective active interfaces of different tasks belong to different Tasks; when the host When the plug-in is loaded and the current active interface of any task among multiple tasks is started, the target Task to which the current active interface belongs is searched in the configuration file; furthermore, all registration interfaces corresponding to the target Task are searched in the host, and selected according to the preset The strategy selects the target registration interface from all the registration interfaces corresponding to the target Task; after that, assigns the target registration interface to the current active interface. It can be seen that the embodiment of the present invention registers the Tasks to which the respective active interfaces of multiple tasks belong in the configuration file of the host, and the respective active interfaces of different tasks belong to different Tasks, so that different tasks can be switched freely, No need to exit the mission. And, in the embodiment of the present invention, when starting the current active interface of any task, the target registration interface can be selected from all registration interfaces corresponding to the target Task to which the current active interface belongs, and the target registration interface is assigned to the current active interface for use, ensuring that the task Normal startup of the interface.
上文步骤S102中提及的插件的多个任务,其各自能够实现插件的不同功能,例如手机卫士上的防盗插件有多个任务,分别能够实现定位、报警等功能。多个任务中的各个任务包括一个或多个活动界面,步骤S102中提及的Task能够放置或装载一个或多个活动界面。The multiple tasks of the plug-in mentioned in step S102 above can each realize different functions of the plug-in. For example, the anti-theft plug-in on the mobile phone guard has multiple tasks, which can respectively realize functions such as positioning and alarming. Each of the multiple tasks includes one or more active interfaces, and the Task mentioned in step S102 can place or load one or more active interfaces.
宿主的Task是固定的,且有多个,每个Task包含多个活动界面,都预埋或配置在宿主的配置文件中。以Android系统为例,宿主的每个Task包含多个Activity,都预埋在宿主的配置文件AndroidManifest.xml中。宿主的每个Task中能够放置或装载多个Activity,其回退和打开的顺序逻辑和基本的数据结构栈是一致的。The host's Task is fixed and there are multiple ones. Each Task contains multiple active interfaces, which are pre-buried or configured in the host's configuration file. Taking the Android system as an example, each Task of the host contains multiple activities, which are pre-buried in the configuration file AndroidManifest.xml of the host. Multiple Activities can be placed or loaded in each Task of the host, and the sequence logic of its rollback and opening is consistent with the basic data structure stack.
进一步地,步骤S102中在宿主的配置文件中注册多个任务各自的活动界面所属的Task,本发明实施例提供了一种可选的方案,在该方案中,可以获取宿主的多个Task,进而在宿主的配置文件中注册多个任务各自的活动界面在多个Task中所属的Task。例如,宿主的多个Task分别为Task1、Task2、Task3,则可以在宿主的配置文件中注册多个任务各自的活动界面属于Task1、Task2或者Task3,需要说明的是,此处例举仅是示意性的,并不对本发明实施例进行限制。Further, in step S102, in the configuration file of the host, the Tasks to which the active interfaces of the multiple tasks belong are registered. The embodiment of the present invention provides an optional solution, in which multiple Tasks of the host can be obtained, Furthermore, in the configuration file of the host, the Tasks to which the active interfaces of multiple tasks belong among the multiple Tasks are registered. For example, if the multiple tasks of the host are Task1, Task2, and Task3, you can register in the configuration file of the host that the respective active interfaces of multiple tasks belong to Task1, Task2, or Task3. It should be noted that the examples here are only for illustration It is not intended to limit the embodiments of the present invention.
此外,步骤S102中限定了不同的任务各自的活动界面属于不同的Task,从而使得不同的任务之间能够自由切换,无需退出任务。在可选的实施例中,为了保证同一任务的不同活动界面的快速、有效切换,同一个任务的活动界面属于同一个Task。In addition, it is defined in step S102 that the active interfaces of different tasks belong to different tasks, so that different tasks can be switched freely without exiting the task. In an optional embodiment, in order to ensure fast and effective switching of different active interfaces of the same task, the active interfaces of the same task belong to the same Task.
在本发明的可选实施例中,上述在宿主的配置文件中注册多个任务各自的活动界面在多个Task中所属的Task时,可以在宿主的配置文件中注册多个任务各自的活动界面的TaskAffinity属性,由该属性指示活动界面在多个Task中所属的Task。仍然以上述例举为例,对于多个任务中的各个任务,可以在宿主的配置文件中注册各个任务的活动界面的TaskAffinity属性,由该属性指示活动界面属于Task1、Task2或者Task3。In an optional embodiment of the present invention, when registering the respective active interfaces of multiple tasks in the configuration file of the host as Tasks belonging to multiple Tasks, the respective active interfaces of multiple tasks may be registered in the configuration file of the host The TaskAffinity attribute of , which indicates the Task to which the active interface belongs among multiple Tasks. Still taking the above example as an example, for each of the multiple tasks, the TaskAffinity attribute of the active interface of each task may be registered in the configuration file of the host, and the attribute indicates that the active interface belongs to Task1, Task2 or Task3.
如上文介绍,宿主的Task是固定的,且有多个,每个Task包含多个活动界面,都预埋或配置在宿主的配置文件中。因而,上述获取宿主的多个Task时,可以读取宿主的配置文件,进而查找在宿主的配置文件中注册的宿主的多个Task。进一步地,本发明实施例还可以在宿主中为多个Task中的各个Task预设多个注册界面,以提供给活动界面使用,并且对各个Task预设的多个注册界面进行分组,其中,各组对应一个或多个注册界面。As mentioned above, the host's Task is fixed and there are multiple ones. Each Task contains multiple active interfaces, which are pre-buried or configured in the host's configuration file. Therefore, when obtaining multiple tasks of the host, the configuration file of the host can be read, and then the multiple tasks of the host registered in the configuration file of the host can be searched. Further, in the embodiment of the present invention, multiple registration interfaces can be preset in the host for each of the multiple Tasks to be used by the active interface, and the multiple registration interfaces preset for each Task can be grouped, wherein, Each group corresponds to one or more registration screens.
在本发明的可选实施例中,将不同的启动模式分配给各个注册界面的LaunchMode属性,以指示各个注册界面的启动模式,这里,不同的启动模式可以包括Standard、SingleTop、SingleTask、SingleInstance中的任意之一。以Android系统为例,下面将详细介绍这几种启动模式的区别。In an optional embodiment of the present invention, different startup modes are assigned to the LaunchMode attribute of each registration interface to indicate the startup mode of each registration interface. Here, different startup modes can include Standard, SingleTop, SingleTask, and SingleInstance any one. Taking the Android system as an example, the following will introduce the differences between these startup modes in detail.
(1)哪个任务存放着Activity,用来对行为进行响应。对Standard和SingleTop这两个启动模式来说,这个任务是产生行为,并且调用StartActivity()的那个。(1) Which task stores the Activity to respond to the behavior. For the two startup modes Standard and SingleTop, this task is the one that generates the behavior and calls StartActivity().
(2)它们是否可以有多个实例。Standard和SingleTop类型的Activity可以被实例化多次。它们可以属于多个任务,一个特定的任务也可以拥有同一个Activity的多个实例。(2) Whether they can have multiple instances. Activities of Standard and SingleTop types can be instantiated multiple times. They can belong to multiple tasks, and a particular task can have multiple instances of the same Activity.
(3)作为比较SingleTask和SingleInstance类型的Activity只限定有一个实例。因为这些Activity是任务的根。这个限制意味着,在设备上不能同时有超过一个任务的实例。(3) As a comparison of the SingleTask and SingleInstance types of Activity, only one instance is limited. Because these Activities are the root of the task. This restriction means that there cannot be more than one instance of a task on the device at the same time.
(4)是否能有其他的Activity在它所在的任务中。SingleInstance类型的Activity是它所在任务中唯一的Activity。如果它启动了其他的Activity,不管那个Activity的启动模式如何,它都会加载到一个不同的任务中。在其他的方面,SingleInstance和SingleTask启动模式是相同的。(4) Whether there are other activities in its task. An Activity of type SingleInstance is the only Activity in its task. If it starts another Activity, it will be loaded into a different task regardless of that Activity's launch mode. In other respects, the SingleInstance and SingleTask launch modes are the same.
(5)其他三种模式运行任务中有多个Activity。SingleTask总是任务中的根Activity,但是它可以启动其他的Activity并分配到它所在的任务中。Standard和SingleTop类型的Activity可以出现在任务中的任何地方。(5) There are multiple activities in the other three modes of running tasks. SingleTask is always the root activity in the task, but it can start other activities and assign it to the task. Activities of type Standard and SingleTop can appear anywhere in the task.
(6)是否启动一个新的实例来处理一个新的行为。对默认的Standard启动模式来说,对于每一个行为都会创建一个新的实例来响应。每个实例只处理一个行为。对于SingleTop启动模式,如果一个已经存在的实例位于目标任务Activity栈的栈顶,那么它将被重用来处理这个行为。如果它不在栈顶,它将不会被重用,而是为行为创建一个新的实例,并压入栈中。(6) Whether to start a new instance to handle a new behavior. For the default Standard launch mode, a new instance is created in response to each action. Each instance handles only one behavior. For the SingleTop startup mode, if an existing instance is located at the top of the target task Activity stack, it will be reused to handle this behavior. If it's not on top of the stack, it won't be reused, but a new instance of the behavior will be created and pushed onto the stack.
例如,一个任务的Activity栈由根Activity A、B、C和D从上到下按这样的顺序组成,所以这个栈就是A-B-C-D。一个行为指向类型为D的Activity。如果D是默认的Standard启动模式,一个新的实例会被启动,栈现在就是这样A-B-C-D-D。但是,如果D的加载模式是SingleTop,已经存在的实例会用来处理这个行为(因为它在栈的顶端),并且栈中还应该是A-B-C-D。For example, a task's activity stack consists of root activities A, B, C, and D in this order from top to bottom, so the stack is A-B-C-D. A behavior points to an Activity of type D. If D was the default Standard launch mode, a new instance would be launched and the stack would now be A-B-C-D-D. However, if the load mode of D is SingleTop, the existing instance will be used to handle this behavior (because it is at the top of the stack), and the stack should also be A-B-C-D.
在前面提到,SingleTask和SingleInstance类型的Activity最多只有一个实例,所以它们的实例应该会处理每个新的行为。SingleInstance类型的Activity总是在栈的顶端(因为它是任务中唯一的一个Activity),所以总是能够适当的处理行为。然而,SingleTask类型的Activity也许会有其他的Activity在它的上面。如果是这样的话,那就不能处理这个行为,这个行为被丢弃。即使这个行为被丢弃了,它的到来也会导致那些应该保留不变任务显示到前台来。As mentioned earlier, Activities of type SingleTask and SingleInstance have at most one instance, so their instances should handle each new behavior. The Activity of type SingleInstance is always at the top of the stack (because it is the only Activity in the task), so it can always handle the behavior appropriately. However, an Activity of type SingleTask may have other Activities on top of it. If so, the behavior cannot be processed and the behavior is discarded. Even if this behavior is dropped, its arrival will cause tasks that should remain unchanged to be displayed in the foreground.
进一步地,在对各个Task预设的多个注册界面进行分组时,可以按照不同的启动模式对各个Task预设的多个注册界面进行分组,其中,一种启动模式对应一个组。Further, when grouping the multiple preset registration interfaces of each Task, the multiple preset registration interfaces of each Task can be grouped according to different startup modes, wherein one startup mode corresponds to one group.
如图2所示,存在LaunchMode为SingleTask的行1),为Standard的行2),以及为SingleTop的行3)。图2中的每个圆圈表示注册界面,可以看到,1)已被占用了两个注册界面,2)被占用一个注册界面,3)没有被占用。在理解时类似停车位,假如用户想停车,则应该有如下几个步骤。As shown in FIG. 2 , there are row 1) whose LaunchMode is SingleTask, row 2) whose LaunchMode is Standard, and row 3) whose LaunchMode is SingleTop. Each circle in FIG. 2 represents a registration interface, and it can be seen that 1) two registration interfaces have been occupied, 2) one registration interface has been occupied, and 3) no registration interface has been occupied. It is similar to a parking space in understanding. If the user wants to park, there should be the following steps.
步骤1,首先要知道自己是什么车。如果是轿车,则可以停;如果是水泥罐车,也许就不行了。也即明确自己的Activity类型,不能把SingleTask的Activity停在Standard的位置上。Step 1, you must first know what kind of car you are. If it is a car, it can be parked; if it is a cement tanker, it may not work. That is to say, clarify your own Activity type, and you cannot stop the SingleTask Activity in the Standard position.
步骤2,通过观察或者咨询物业管理员,以寻找适合自己的空余车位。也即从多个注册界面寻找应该使用哪个。Step 2. Find a vacant parking space suitable for you by observing or consulting the property manager. That is, to find out which one should be used from multiple registration interfaces.
步骤3,将车准确停在车位上。也即将目标注册界面分配给当前活动界面使用。Step 3, park the car accurately on the parking space. It also assigns the target registration interface to the current active interface.
步骤4,下次找时,直接找车位即可。毕竟相似的车很常见。也就是说,直接通过遍历所有注册界面,从中寻找符合的目标注册界面即可。Step 4, the next time you look for it, just look for the parking space directly. After all, similar cars are common. That is to say, it is enough to directly traverse all the registration interfaces and find the matching target registration interface.
基于上述对各个Task预设的多个注册界面的分组,即一种启动模式对应一个组,上文步骤S106中依据预设的选取策略从目标Task对应的所有注册界面中选取目标注册界面,本发明实施例提供了一种可选的方案,图3示出了根据本发明一实施例的选取目标注册界面的方法的流程图。如图3所示,该方法至少可以包括以下步骤S302至S308。Based on the above-mentioned grouping of multiple registration interfaces preset for each Task, that is, one startup mode corresponds to one group, in step S106 above, the target registration interface is selected from all registration interfaces corresponding to the target Task according to the preset selection strategy. The embodiment of the invention provides an optional solution. FIG. 3 shows a flow chart of a method for selecting a target registration interface according to an embodiment of the invention. As shown in Fig. 3, the method may at least include the following steps S302 to S308.
步骤S302,确定当前活动界面的启动模式。Step S302, determining the startup mode of the current active interface.
步骤S304,在目标Task对应的多组注册界面中,查找当前活动界面的启动模式对应的分组。Step S304, in the multiple groups of registration interfaces corresponding to the target Task, search for the group corresponding to the startup mode of the current active interface.
步骤S306,在当前活动界面的启动模式对应的分组中查找所有注册界面。Step S306, searching for all registered interfaces in the group corresponding to the startup mode of the current active interface.
步骤S308,在查找到的所有注册界面中确定使用状态为空余状态的注册界面,并从中选取任意注册界面作为目标注册界面。In step S308, among all the found registration interfaces, it is determined that the registration interface whose use state is the idle state, and selects any registration interface as the target registration interface.
本发明实施例基于不同的启动模式选取目标注册界面,实现快速、有效地选取目的,保证了任务界面的正常启动。The embodiment of the present invention selects the target registration interface based on different startup modes, realizes fast and effective selection of objects, and ensures the normal startup of the task interface.
进一步地,在上文步骤S108中将目标注册界面分配给当前活动界面使用时,本发明实施例可以将目标注册界面的信息传递给插件的加载器,由插件的加载器根据目标注册界面的信息启动目标注册界面,供当前活动界面使用。Further, when the target registration interface is allocated to the current active interface in step S108 above, the embodiment of the present invention can transfer the information of the target registration interface to the loader of the plug-in, and the loader of the plug-in can use the information of the target registration interface Starts the target registration interface for use by the currently active interface.
以上介绍了图1所示实施例的各个环节的多种实现方式,下面将通过一具体实施例来详细介绍本发明的实现插件的多任务栈的方法的过程。该实施例以Android系统为例,活动界面为Activity,Task为Activity栈,宿主的配置文件为AndroidManifest.xml。A variety of implementation modes for each link of the embodiment shown in FIG. 1 have been introduced above, and the process of the method for implementing the plug-in multitasking stack of the present invention will be described in detail below through a specific embodiment. This embodiment takes the Android system as an example, the activity interface is Activity, the Task is the Activity stack, and the configuration file of the host is AndroidManifest.xml.
图4示出了根据本发明另一实施例的实现插件的多任务栈的方法的流程图。如图4所示,该方法至少可以包括以下步骤S402至S420。Fig. 4 shows a flowchart of a method for implementing a plug-in multitasking stack according to another embodiment of the present invention. As shown in FIG. 4, the method may at least include the following steps S402 to S420.
步骤S402,读取宿主的配置文件,查找在宿主的配置文件中注册的宿主的多个Task。Step S402, read the configuration file of the host, and search for multiple tasks of the host registered in the configuration file of the host.
步骤S404,在宿主中为多个Task中的各个Task预设多个注册界面。Step S404, preset multiple registration interfaces for each of the multiple Tasks in the host.
步骤S406,对各个Task预设的多个注册界面进行分组,其中,各组对应一个或多个注册界面。Step S406, grouping a plurality of registration interfaces preset by each Task, wherein each group corresponds to one or more registration interfaces.
在该步骤中,例如可以分组为N组,每组有M个注册界面。并且,可以按照不同的启动模式对各个Task预设的多个注册界面进行分组,其中,一种启动模式对应一个组。这里,不同的启动模式可以包括Standard、SingleTop、SingleTask、SingleInstance中的任意之一,关于各种启动模式的区别请参见前文介绍,此处不再赘述。In this step, for example, they can be divided into N groups, and each group has M registration interfaces. Moreover, multiple registration interfaces preset by each Task can be grouped according to different startup modes, wherein one startup mode corresponds to one group. Here, the different startup modes can include any one of Standard, SingleTop, SingleTask, and SingleInstance. For the differences between the various startup modes, please refer to the previous introduction and will not repeat them here.
步骤S408,获取宿主的插件的多个任务。Step S408, acquiring multiple tasks of the plug-in of the host.
在该步骤中,插件的多个任务,其各自能够实现插件的不同功能。In this step, multiple tasks of the plug-in can each realize different functions of the plug-in.
步骤S410,在宿主的配置文件中,注册多个任务各自的活动界面在宿主的多个Task中所属的Task。Step S410, in the configuration file of the host, register the Tasks to which the respective active interfaces of the multiple tasks belong among the multiple Tasks of the host.
例如,宿主的多个Task分别为Task1、Task2、Task3,则可以在宿主的配置文件中注册多个任务各自的活动界面属于Task1、Task2或者Task3,需要说明的是,此处例举仅是示意性的,并不对本发明实施例进行限制。For example, if the multiple tasks of the host are Task1, Task2, and Task3, you can register in the configuration file of the host that the respective active interfaces of multiple tasks belong to Task1, Task2, or Task3. It should be noted that the examples here are only for illustration It is not intended to limit the embodiments of the present invention.
进一步地,可以在宿主的配置文件中注册多个任务各自的活动界面的TaskAffinity属性,由该属性指示活动界面在多个Task中所属的Task。仍然以上述例举为例,对于多个任务中的各个任务,可以在宿主的配置文件中注册各个任务的活动界面的TaskAffinity属性,由该属性指示活动界面属于Task1、Task2或者Task3。Further, the TaskAffinity attribute of the active interface of multiple tasks can be registered in the configuration file of the host, and the attribute indicates the Task to which the active interface belongs among the multiple Tasks. Still taking the above example as an example, for each of the multiple tasks, the TaskAffinity attribute of the active interface of each task may be registered in the configuration file of the host, and the attribute indicates that the active interface belongs to Task1, Task2 or Task3.
步骤S412,当宿主加载插件并启动多个任务中的任意任务的当前活动界面时,在配置文件中查找当前活动界面所属的目标Task。Step S412, when the host loads the plug-in and starts the current active interface of any task in the multiple tasks, it searches the configuration file for the target Task to which the current active interface belongs.
步骤S414,确定当前活动界面的启动模式,在目标Task对应的多组注册界面中,查找当前活动界面的启动模式对应的分组。Step S414, determine the startup mode of the current active interface, and search for a group corresponding to the startup mode of the current active interface among the multiple groups of registered interfaces corresponding to the target Task.
步骤S416,在当前活动界面的启动模式对应的分组中查找所有注册界面。Step S416, searching for all registered interfaces in the group corresponding to the startup mode of the current active interface.
步骤S418,在查找到的所有注册界面中确定使用状态为空余状态的注册界面,并从中选取任意注册界面作为目标注册界面。In step S418, among all the found registration interfaces, it is determined that the registration interface whose use state is the idle state is selected, and any registration interface is selected as the target registration interface.
步骤S420,将目标注册界面的信息传递给插件的加载器,由插件的加载器根据目标注册界面的信息启动目标注册界面,供当前活动界面使用。In step S420, the information of the target registration interface is transmitted to the plug-in loader, and the plug-in loader starts the target registration interface according to the information of the target registration interface for use by the current active interface.
举例来说,在宿主的配置文件AndroidManifest.xml中注册插件的某个任务的Activity1属于Task1,则框架会到宿主中查找Task1的所有Activity,找到合适的Activity的时候,就将它分配给插件的Activity1使用。For example, in the configuration file AndroidManifest.xml of the host, Activity1 of a certain task of the plug-in registered belongs to Task1, then the framework will search for all the Activities of Task1 in the host, and when it finds a suitable Activity, it will be assigned to the plug-in Activity1 uses.
本发明实施例在宿主的配置文件中注册多个任务各自的活动界面所属的Task,并且不同的任务各自的活动界面属于不同的Task,这样使得不同的任务之间能够自由切换,无需退出任务。并且,本发明实施例在启动任意任务的当前活动界面时,能够从当前活动界面所属的目标Task对应的所有注册界面中选取目标注册界面,将目标注册界面分配给当前活动界面使用,保证了任务界面的正常启动。The embodiment of the present invention registers the Tasks to which the respective active interfaces of multiple tasks belong in the configuration file of the host, and the respective active interfaces of different tasks belong to different Tasks, so that different tasks can be switched freely without exiting the task. And, in the embodiment of the present invention, when starting the current active interface of any task, the target registration interface can be selected from all registration interfaces corresponding to the target Task to which the current active interface belongs, and the target registration interface is assigned to the current active interface for use, ensuring that the task Normal startup of the interface.
需要说明的是,实际应用中,上述所有可选实施方式可以采用结合的方式任意组合,形成本发明的可选实施例,在此不再一一赘述。It should be noted that, in practical applications, all the above optional implementation manners may be combined in any way to form optional embodiments of the present invention, which will not be repeated here.
基于上文各个实施例提供的实现插件的多任务栈的方法,基于同一发明构思,本发明实施例还提供了一种实现插件的多任务栈的装置。Based on the methods for implementing a plug-in multitasking stack provided in the above embodiments and based on the same inventive concept, an embodiment of the present invention also provides an apparatus for implementing a plug-in multitasking stack.
图5示出了根据本发明一实施例的实现插件的多任务栈的装置的结构示意图。如图5所示,该装置至少可以包括注册模块510、查找模块520、选取模块530以及分配模块540。Fig. 5 shows a schematic structural diagram of an apparatus for implementing a plug-in multitasking stack according to an embodiment of the present invention. As shown in FIG. 5 , the device may at least include a registration module 510 , a search module 520 , a selection module 530 and an assignment module 540 .
现介绍本发明实施例的实现插件的多任务栈的装置的各组成或器件的功能以及各部分间的连接关系:Now introduce the various components or functions of the device and the connection relationship between the various parts of the device for implementing the multitasking stack of the plug-in in the embodiment of the present invention:
注册模块510,适于获取宿主的插件的多个任务,在宿主的配置文件中注册所述多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task;The registration module 510 is adapted to obtain multiple tasks of the plug-in of the host, and register the Tasks to which the respective active interfaces of the multiple tasks belong in the configuration file of the host, wherein the respective active interfaces of different tasks belong to different Tasks;
查找模块520,与注册模块510相耦合,适于当宿主加载插件并启动所述多个任务中的任意任务的当前活动界面时,在所述配置文件中查找所述当前活动界面所属的目标Task;The search module 520, coupled with the registration module 510, is adapted to search the configuration file for the target Task to which the current active interface belongs when the host loads the plug-in and starts the current active interface of any task in the plurality of tasks ;
选取模块530,与查找模块520相耦合,适于在宿主中查找所述目标Task对应的所有注册界面,并依据预设的选取策略从所述目标Task对应的所有注册界面中选取目标注册界面;The selection module 530, coupled with the search module 520, is adapted to search for all registration interfaces corresponding to the target Task in the host, and select a target registration interface from all registration interfaces corresponding to the target Task according to a preset selection strategy;
分配模块540,与选取模块530相耦合,适于将所述目标注册界面分配给所述当前活动界面使用。The assignment module 540, coupled with the selection module 530, is adapted to assign the target registration interface to the current active interface.
在本发明一实施例中,所述多个任务各自能够实现插件的不同功能。In an embodiment of the present invention, each of the multiple tasks can implement different functions of the plug-in.
在本发明一实施例中,所述Task是具有栈结构的容器,能够放置一个或多个活动界面。In an embodiment of the present invention, the Task is a container with a stack structure, capable of placing one or more active interfaces.
在本发明一实施例中,同一个任务的活动界面属于同一个Task。In an embodiment of the present invention, the active interfaces of the same task belong to the same Task.
在本发明一实施例中,如图6所示,所述注册模块510包括:In an embodiment of the present invention, as shown in FIG. 6, the registration module 510 includes:
获取单元511,适于获取宿主的多个Task;An acquisition unit 511, adapted to acquire multiple Tasks of the host;
注册单元512,与获取单元511相耦合,适于在宿主的配置文件中注册所述多个任务各自的活动界面在所述多个Task中所属的Task。The registration unit 512, coupled with the acquisition unit 511, is adapted to register in the configuration file of the host the Task to which the respective active interfaces of the multiple tasks belong among the multiple Tasks.
在本发明一实施例中,所述注册单元512还适于:In an embodiment of the present invention, the registration unit 512 is further adapted to:
在宿主的配置文件中注册所述多个任务各自的活动界面的TaskAffinity属性,由该属性指示活动界面在所述多个Task中所属的Task。The TaskAffinity attribute of each active interface of the plurality of tasks is registered in the configuration file of the host, and the attribute indicates the Task to which the active interface belongs among the plurality of Tasks.
在本发明一实施例中,所述获取单元511还适于:In an embodiment of the present invention, the acquiring unit 511 is further adapted to:
读取宿主的配置文件;Read the configuration file of the host;
查找在宿主的配置文件中注册的宿主的多个Task。Find multiple tasks for the host registered in the host's configuration file.
在本发明一实施例中,如图6所示,上文图5展示的装置还可以包括:In an embodiment of the present invention, as shown in FIG. 6, the device shown in FIG. 5 above may further include:
配置模块550,与选取模块530相耦合,适于在宿主中为所述多个Task中的各个Task预设多个注册界面;对各个Task预设的多个注册界面进行分组,其中,各组对应一个或多个注册界面。The configuration module 550, coupled with the selection module 530, is adapted to preset a plurality of registration interfaces for each of the plurality of Tasks in the host; group the plurality of registration interfaces preset for each Task, wherein each group Corresponds to one or more registration interfaces.
在本发明一实施例中,所述配置模块550还适于:In an embodiment of the present invention, the configuration module 550 is further adapted to:
将不同的启动模式分配给各个注册界面的LaunchMode属性,其中,所述不同的启动模式包括下列任意之一:Different launch modes are assigned to the LaunchMode attribute of each registration interface, wherein the different launch modes include any one of the following:
Standard、SingleTop、SingleTask、SingleInstance。Standard, SingleTop, SingleTask, SingleInstance.
在本发明一实施例中,所述配置模块550还适于:In an embodiment of the present invention, the configuration module 550 is further adapted to:
按照不同的启动模式对各个Task预设的多个注册界面进行分组,其中,一种启动模式对应一个组。Group multiple registration interfaces preset by each Task according to different startup modes, where one startup mode corresponds to a group.
在本发明一实施例中,所述选取模块530还适于:In an embodiment of the present invention, the selection module 530 is further adapted to:
确定所述当前活动界面的启动模式;Determine the startup mode of the current active interface;
在所述目标Task对应的多组注册界面中,查找所述当前活动界面的启动模式对应的分组;In the multiple groups of registration interfaces corresponding to the target Task, search for the group corresponding to the startup mode of the current active interface;
在所述当前活动界面的启动模式对应的分组中查找所有注册界面;Searching for all registered interfaces in the group corresponding to the startup mode of the current active interface;
在查找到的所有注册界面中确定使用状态为空余状态的注册界面,并从中选取任意注册界面作为目标注册界面。From among all the found registration interfaces, determine the registration interface whose use state is the idle state, and select any registration interface as the target registration interface.
在本发明一实施例中,所述分配模块540还适于:In an embodiment of the present invention, the distribution module 540 is further adapted to:
将所述目标注册界面的信息传递给插件的加载器,由插件的加载器根据所述目标注册界面的信息启动目标注册界面,供所述当前活动界面使用。The information of the target registration interface is transmitted to the loader of the plug-in, and the loader of the plug-in starts the target registration interface according to the information of the target registration interface for use by the current active interface.
根据上述任意一个可选实施例或多个可选实施例的组合,本发明实施例能够达到如下有益效果:According to any one of the above optional embodiments or a combination of multiple optional embodiments, the embodiments of the present invention can achieve the following beneficial effects:
在本发明实施例中,获取宿主的插件的多个任务,在宿主的配置文件中注册多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task;当宿主加载插件并启动多个任务中的任意任务的当前活动界面时,在配置文件中查找当前活动界面所属的目标Task;进而,在宿主中查找目标Task对应的所有注册界面,并依据预设的选取策略从目标Task对应的所有注册界面中选取目标注册界面;之后,将目标注册界面分配给当前活动界面使用。可以看到,本发明实施例在宿主的配置文件中注册多个任务各自的活动界面所属的Task,并且不同的任务各自的活动界面属于不同的Task,这样使得不同的任务之间能够自由切换,无需退出任务。并且,本发明实施例在启动任意任务的当前活动界面时,能够从当前活动界面所属的目标Task对应的所有注册界面中选取目标注册界面,将目标注册界面分配给当前活动界面使用,保证了任务界面的正常启动。In the embodiment of the present invention, multiple tasks of the plug-in of the host are acquired, and the Tasks to which the respective active interfaces of the multiple tasks belong are registered in the configuration file of the host, wherein the respective active interfaces of different tasks belong to different Tasks; when the host When the plug-in is loaded and the current active interface of any task among multiple tasks is started, the target Task to which the current active interface belongs is searched in the configuration file; furthermore, all registration interfaces corresponding to the target Task are searched in the host, and selected according to the preset The strategy selects the target registration interface from all the registration interfaces corresponding to the target Task; after that, assigns the target registration interface to the current active interface. It can be seen that the embodiment of the present invention registers the Tasks to which the respective active interfaces of multiple tasks belong in the configuration file of the host, and the respective active interfaces of different tasks belong to different Tasks, so that different tasks can be switched freely, No need to exit the mission. And, in the embodiment of the present invention, when starting the current active interface of any task, the target registration interface can be selected from all registration interfaces corresponding to the target Task to which the current active interface belongs, and the target registration interface is assigned to the current active interface for use, ensuring that the task Normal startup of the interface.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的一种实现插件的多任务栈的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the components in an apparatus for implementing a plug-in multitasking stack according to an embodiment of the present invention. Or full functionality. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。So far, those skilled in the art should appreciate that, although a number of exemplary embodiments of the present invention have been shown and described in detail herein, without departing from the spirit and scope of the present invention, the disclosed embodiments of the present invention can still be used. Many other variations or modifications consistent with the principles of the invention are directly identified or derived from the content. Accordingly, the scope of the present invention should be understood and deemed to cover all such other variations or modifications.
依据本发明实施例的一方面,提供了A1.一种实现插件的多任务栈的方法,包括:According to an aspect of the embodiments of the present invention, A1. A method for implementing a plug-in multitasking stack is provided, including:
获取宿主的插件的多个任务,在宿主的配置文件中注册所述多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task;Obtaining multiple tasks of the plug-in of the host, and registering the Tasks to which the respective active interfaces of the multiple tasks belong in the configuration file of the host, wherein the respective active interfaces of different tasks belong to different Tasks;
当宿主加载插件并启动所述多个任务中的任意任务的当前活动界面时,在所述配置文件中查找所述当前活动界面所属的目标Task;When the host loads the plug-in and starts the current active interface of any task in the multiple tasks, search the configuration file for the target Task to which the current active interface belongs;
在宿主中查找所述目标Task对应的所有注册界面,并依据预设的选取策略从所述目标Task对应的所有注册界面中选取目标注册界面;Find all registration interfaces corresponding to the target Task in the host, and select a target registration interface from all registration interfaces corresponding to the target Task according to a preset selection strategy;
将所述目标注册界面分配给所述当前活动界面使用。Allocating the target registration interface to the current active interface.
A2.根据A1所述的方法,其中,所述多个任务各自能够实现插件的不同功能。A2. The method according to A1, wherein each of the multiple tasks can implement different functions of the plug-in.
A3.根据A1或A2所述的方法,其中,所述Task是具有栈结构的容器,能够放置一个或多个活动界面。A3. The method according to A1 or A2, wherein the Task is a container with a stack structure, capable of placing one or more active interfaces.
A4.根据A1-A3中任一项所述的方法,其中,同一个任务的活动界面属于同一个Task。A4. The method according to any one of A1-A3, wherein the active interfaces of the same task belong to the same Task.
A5.根据A1-A4中任一项所述的方法,其中,所述在宿主的配置文件中注册所述多个任务各自的活动界面所属的Task,包括:A5. The method according to any one of A1-A4, wherein said registering the Tasks to which the respective active interfaces of the multiple tasks belong in the configuration file of the host includes:
获取宿主的多个Task;Get multiple tasks of the host;
在宿主的配置文件中注册所述多个任务各自的活动界面在所述多个Task中所属的Task。The task to which the respective active interfaces of the multiple tasks belong among the multiple Tasks is registered in the configuration file of the host.
A6.根据A5所述的方法,其中,所述在宿主的配置文件中注册所述多个任务各自的活动界面在所述多个Task中所属的Task,包括:A6. The method according to A5, wherein said registering the Tasks to which the respective active interfaces of the multiple tasks belong in the multiple Tasks in the configuration file of the host includes:
在宿主的配置文件中注册所述多个任务各自的活动界面的TaskAffinity属性,由该属性指示活动界面在所述多个Task中所属的Task。The TaskAffinity attribute of each active interface of the plurality of tasks is registered in the configuration file of the host, and the attribute indicates the Task to which the active interface belongs among the plurality of Tasks.
A7.根据A5或A6所述的方法,其中,所述获取宿主的多个Task,包括:A7. The method according to A5 or A6, wherein said obtaining multiple Tasks of the host includes:
读取宿主的配置文件;Read the configuration file of the host;
查找在宿主的配置文件中注册的宿主的多个Task。Find multiple tasks for the host registered in the host's configuration file.
A8.根据A5-A7中任一项所述的方法,其中,还包括:A8. The method according to any one of A5-A7, further comprising:
在宿主中为所述多个Task中的各个Task预设多个注册界面;Presetting multiple registration interfaces for each of the multiple Tasks in the host;
对各个Task预设的多个注册界面进行分组,其中,各组对应一个或多个注册界面。Group multiple registration interfaces preset by each Task, where each group corresponds to one or more registration interfaces.
A9.根据A8所述的方法,其中,还包括:A9. The method according to A8, further comprising:
将不同的启动模式分配给各个注册界面的LaunchMode属性,其中,所述不同的启动模式包括下列任意之一:Different launch modes are assigned to the LaunchMode attribute of each registration interface, wherein the different launch modes include any one of the following:
Standard、SingleTop、SingleTask、SingleInstance。Standard, SingleTop, SingleTask, SingleInstance.
A10.根据A9所述的方法,其中,所述对各个Task预设的多个注册界面进行分组,包括:A10. The method according to A9, wherein the grouping of multiple registration interfaces preset by each Task includes:
按照不同的启动模式对各个Task预设的多个注册界面进行分组,其中,一种启动模式对应一个组。Group multiple registration interfaces preset by each Task according to different startup modes, where one startup mode corresponds to a group.
A11.根据A10所述的方法,其中,所述依据预设的选取策略从所述目标Task对应的所有注册界面中选取目标注册界面,包括:A11. The method according to A10, wherein the selection of a target registration interface from all registration interfaces corresponding to the target Task according to a preset selection strategy includes:
确定所述当前活动界面的启动模式;Determine the startup mode of the current active interface;
在所述目标Task对应的多组注册界面中,查找所述当前活动界面的启动模式对应的分组;In the multiple groups of registration interfaces corresponding to the target Task, search for the group corresponding to the startup mode of the current active interface;
在所述当前活动界面的启动模式对应的分组中查找所有注册界面;Searching for all registered interfaces in the group corresponding to the startup mode of the current active interface;
在查找到的所有注册界面中确定使用状态为空余状态的注册界面,并从中选取任意注册界面作为目标注册界面。From among all the found registration interfaces, determine the registration interface whose use state is the idle state, and select any registration interface as the target registration interface.
A12.根据A11所述的方法,其中,所述将所述目标注册界面分配给所述当前活动界面使用,包括:A12. The method according to A11, wherein the assigning the target registration interface to the current active interface includes:
将所述目标注册界面的信息传递给插件的加载器,由插件的加载器根据所述目标注册界面的信息启动目标注册界面,供所述当前活动界面使用。The information of the target registration interface is transmitted to the loader of the plug-in, and the loader of the plug-in starts the target registration interface according to the information of the target registration interface for use by the current active interface.
依据本发明实施例的另一方面,还提供了B13.一种实现插件的多任务栈的装置,包括:According to another aspect of the embodiments of the present invention, B13. A device for implementing a plug-in multitasking stack is also provided, including:
注册模块,适于获取宿主的插件的多个任务,在宿主的配置文件中注册所述多个任务各自的活动界面所属的Task,其中,不同的任务各自的活动界面属于不同的Task;The registration module is adapted to obtain multiple tasks of the plug-in of the host, and registers the Tasks to which the respective active interfaces of the multiple tasks belong in the configuration file of the host, wherein the respective active interfaces of different tasks belong to different Tasks;
查找模块,适于当宿主加载插件并启动所述多个任务中的任意任务的当前活动界面时,在所述配置文件中查找所述当前活动界面所属的目标Task;A search module, adapted to search the configuration file for the target Task to which the current active interface belongs when the host loads the plug-in and starts the current active interface of any task in the plurality of tasks;
选取模块,适于在宿主中查找所述目标Task对应的所有注册界面,并依据预设的选取策略从所述目标Task对应的所有注册界面中选取目标注册界面;The selection module is adapted to find all registration interfaces corresponding to the target Task in the host, and select the target registration interface from all registration interfaces corresponding to the target Task according to a preset selection strategy;
分配模块,适于将所述目标注册界面分配给所述当前活动界面使用。The allocation module is adapted to allocate the target registration interface to the current active interface.
B14.根据B13所述的装置,其中,所述多个任务各自能够实现插件的不同功能。B14. The apparatus according to B13, wherein each of the plurality of tasks can realize different functions of the plug-in.
B15.根据B13或B14所述的装置,其中,所述Task是具有栈结构的容器,能够放置一个或多个活动界面。B15. The device according to B13 or B14, wherein the Task is a container with a stack structure, capable of placing one or more active interfaces.
B16.根据B13-B15中任一项所述的装置,其中,同一个任务的活动界面属于同一个Task。B16. The device according to any one of B13-B15, wherein the active interfaces of the same task belong to the same Task.
B17.根据B13-B16中任一项所述的装置,其中,所述注册模块包括:B17. The device according to any one of B13-B16, wherein the registration module comprises:
获取单元,适于获取宿主的多个Task;The acquisition unit is suitable for acquiring multiple tasks of the host;
注册单元,适于在宿主的配置文件中注册所述多个任务各自的活动界面在所述多个Task中所属的Task。The registration unit is adapted to register in the configuration file of the host the Task to which the respective active interfaces of the multiple tasks belong among the multiple Tasks.
B18.根据B17所述的装置,其中,所述注册单元还适于:B18. The device according to B17, wherein the registration unit is further adapted to:
在宿主的配置文件中注册所述多个任务各自的活动界面的TaskAffinity属性,由该属性指示活动界面在所述多个Task中所属的Task。The TaskAffinity attribute of each active interface of the plurality of tasks is registered in the configuration file of the host, and the attribute indicates the Task to which the active interface belongs among the plurality of Tasks.
B19.根据B17或B18所述的装置,其中,所述获取单元还适于:B19. The device according to B17 or B18, wherein the acquisition unit is further adapted to:
读取宿主的配置文件;Read the configuration file of the host;
查找在宿主的配置文件中注册的宿主的多个Task。Find multiple tasks for the host registered in the host's configuration file.
B20.根据B17-B19中任一项所述的装置,其中,还包括:B20. The device according to any one of B17-B19, further comprising:
配置模块,适于在宿主中为所述多个Task中的各个Task预设多个注册界面;对各个Task预设的多个注册界面进行分组,其中,各组对应一个或多个注册界面。The configuration module is adapted to preset a plurality of registration interfaces for each of the plurality of Tasks in the host; and group the plurality of registration interfaces preset for each Task, wherein each group corresponds to one or more registration interfaces.
B21.根据B20所述的装置,其中,所述配置模块还适于:B21. The device according to B20, wherein the configuration module is further adapted to:
将不同的启动模式分配给各个注册界面的LaunchMode属性,其中,所述不同的启动模式包括下列任意之一:Different launch modes are assigned to the LaunchMode attribute of each registration interface, wherein the different launch modes include any one of the following:
Standard、SingleTop、SingleTask、SingleInstance。Standard, SingleTop, SingleTask, SingleInstance.
B22.根据B21所述的装置,其中,所述配置模块还适于:B22. The device according to B21, wherein the configuration module is further adapted to:
按照不同的启动模式对各个Task预设的多个注册界面进行分组,其中,一种启动模式对应一个组。Group multiple registration interfaces preset by each Task according to different startup modes, where one startup mode corresponds to a group.
B23.根据B22所述的装置,其中,所述选取模块还适于:B23. The device according to B22, wherein the selection module is further adapted to:
确定所述当前活动界面的启动模式;Determine the startup mode of the current active interface;
在所述目标Task对应的多组注册界面中,查找所述当前活动界面的启动模式对应的分组;In the multiple groups of registration interfaces corresponding to the target Task, search for the group corresponding to the startup mode of the current active interface;
在所述当前活动界面的启动模式对应的分组中查找所有注册界面;Searching for all registered interfaces in the group corresponding to the startup mode of the current active interface;
在查找到的所有注册界面中确定使用状态为空余状态的注册界面,并从中选取任意注册界面作为目标注册界面。From among all the found registration interfaces, determine the registration interface whose use state is the idle state, and select any registration interface as the target registration interface.
B24.根据B23所述的装置,其中,所述分配模块还适于:B24. The device according to B23, wherein the dispensing module is further adapted to:
将所述目标注册界面的信息传递给插件的加载器,由插件的加载器根据所述目标注册界面的信息启动目标注册界面,供所述当前活动界面使用。The information of the target registration interface is transmitted to the loader of the plug-in, and the loader of the plug-in starts the target registration interface according to the information of the target registration interface for use by the current active interface.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710267234.6ACN107193587B (en) | 2017-04-21 | 2017-04-21 | A method and apparatus for realizing a multitasking stack of a plug-in |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710267234.6ACN107193587B (en) | 2017-04-21 | 2017-04-21 | A method and apparatus for realizing a multitasking stack of a plug-in |
| Publication Number | Publication Date |
|---|---|
| CN107193587Atrue CN107193587A (en) | 2017-09-22 |
| CN107193587B CN107193587B (en) | 2020-10-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710267234.6AExpired - Fee RelatedCN107193587B (en) | 2017-04-21 | 2017-04-21 | A method and apparatus for realizing a multitasking stack of a plug-in |
| Country | Link |
|---|---|
| CN (1) | CN107193587B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107832113A (en)* | 2017-10-26 | 2018-03-23 | 青岛海信移动通信技术股份有限公司 | A kind of interface display method and device of android system application program |
| CN108595205A (en)* | 2018-05-09 | 2018-09-28 | 四川华创世纪科技有限公司 | A method of quickly exploitation new business type software program is configured by flow engine |
| CN112363783A (en)* | 2020-10-26 | 2021-02-12 | 广州视源电子科技股份有限公司 | Window switching method, device, medium and interactive panel |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150113509A1 (en)* | 2013-10-18 | 2015-04-23 | International Business Machines Corporation | Performance regression manager for large scale systems |
| CN104699537A (en)* | 2015-03-18 | 2015-06-10 | 北京奇虎科技有限公司 | Program control method, activity module scheduling method and corresponding devices thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150113509A1 (en)* | 2013-10-18 | 2015-04-23 | International Business Machines Corporation | Performance regression manager for large scale systems |
| CN104699537A (en)* | 2015-03-18 | 2015-06-10 | 北京奇虎科技有限公司 | Program control method, activity module scheduling method and corresponding devices thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107832113A (en)* | 2017-10-26 | 2018-03-23 | 青岛海信移动通信技术股份有限公司 | A kind of interface display method and device of android system application program |
| CN108595205A (en)* | 2018-05-09 | 2018-09-28 | 四川华创世纪科技有限公司 | A method of quickly exploitation new business type software program is configured by flow engine |
| CN112363783A (en)* | 2020-10-26 | 2021-02-12 | 广州视源电子科技股份有限公司 | Window switching method, device, medium and interactive panel |
| CN112363783B (en)* | 2020-10-26 | 2022-04-08 | 广州视源电子科技股份有限公司 | Window switching method, device, medium and interactive tablet |
| Publication number | Publication date |
|---|---|
| CN107193587B (en) | 2020-10-27 |
| Publication | Publication Date | Title |
|---|---|---|
| CN105117289B (en) | Method for allocating tasks, apparatus and system based on cloud test platform | |
| CN105183564B (en) | Equipment scheduling method, apparatus and system based on cloud test platform | |
| CN111158879A (en) | System resource scheduling method, device, machine readable medium and system | |
| CN105068855B (en) | A method, server and system for compiling Android package development files | |
| CN104750528B (en) | A kind of assembly management method and apparatus in Android program | |
| CN107193587B (en) | A method and apparatus for realizing a multitasking stack of a plug-in | |
| KR102338849B1 (en) | Method and system for providing stack memory management in real-time operating systems | |
| CN107239297B (en) | A plug-in multi-process management method and device | |
| EP3794449A1 (en) | Scheduling of a plurality of graphic processing units | |
| CN117971437B (en) | Task allocation method, circuit, device, medium and program | |
| CN113010265A (en) | Pod scheduling method, scheduler, memory plug-in and system | |
| CN106779482A (en) | The method for allocating tasks and system of dominance relation constraint between a kind of task based access control | |
| CN114168301A (en) | Thread scheduling method, processor and electronic device | |
| WO2024250650A1 (en) | Heterogeneous chip task scheduling method and apparatus based on sequence generation | |
| CN111953503B (en) | NFV resource deployment arrangement method and network function virtualization orchestrator | |
| CN104572303B (en) | Application resource management and calling device, method and application resource manage system | |
| CN112181637B (en) | Method and device for allocating memory resources | |
| WO2016206519A1 (en) | Ip address allocation method and device | |
| CN112001837B (en) | CDVS multi-process driving method and device, electronic equipment and storage medium | |
| US20150212859A1 (en) | Graphics processing unit controller, host system, and methods | |
| CN111813541B (en) | Task scheduling method, device, medium and equipment | |
| CN119088525A (en) | A task processing method and device | |
| CN103530180A (en) | Method and device for switching storage space of application programs | |
| CN109426561A (en) | A kind of task processing method, device and equipment | |
| US20210357849A1 (en) | Method, system and device of accumulating order-goods, and electronic apparatus |
| 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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20201027 |