CN114995981A - A parallel task scheduling method, system, storage medium and terminal - Google Patents
A parallel task scheduling method, system, storage medium and terminal Download PDFInfo
- Publication number
- CN114995981A CN114995981A CN202210681507.2A CN202210681507A CN114995981A CN 114995981 A CN114995981 A CN 114995981A CN 202210681507 A CN202210681507 A CN 202210681507A CN 114995981 A CN114995981 A CN 114995981A
- Authority
- CN
- China
- Prior art keywords
- test
- task
- executed
- tasks
- queue
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000012360 testing method Methods 0.000 claims abstract description 335
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 abstract description 14
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000012163 sequencing technique Methods 0.000 abstract 4
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 7
- 239000002699 waste material Substances 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3698—Environments for analysis, debugging or testing of software
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本申请涉及网络安全领域,特别涉及一种并行任务调度方法、系统、存储介质和终端。The present application relates to the field of network security, and in particular, to a parallel task scheduling method, system, storage medium and terminal.
背景技术Background technique
当今主流的自动化测试框架缺乏对于优化并发执行效率相关的调度策略支持,并发案例执行通常通过增加更多测试环境的方式降低案例执行耗时,但未经调度策略规划的案例执行容易出现如下问题:若案例执行进程所负责执行的案例由外部一次性推送,单个测试环境上的案例护航效应将引发全局计算资源浪费,即部分测试环境因提前完成分配的任务面临无任务可执行的状态,但实际上从全局上,依然有案例尚未执行。Today's mainstream automated testing frameworks lack scheduling strategy support for optimizing concurrent execution efficiency. Concurrent case execution usually reduces the time-consuming of case execution by adding more test environments. However, case execution without scheduling strategy planning is prone to the following problems: If the case executed by the case execution process is pushed from the outside at one time, the case escort effect on a single test environment will lead to a waste of global computing resources, that is, some test environments face the state of no task execution due to the completion of the assigned tasks in advance, but the actual On the whole, there are still cases that have not been implemented.
因此,如何实现提高任务调度时的资源利用率是本领域技术人员亟需解决的技术问题。Therefore, how to improve the resource utilization rate during task scheduling is a technical problem that needs to be solved urgently by those skilled in the art.
发明内容SUMMARY OF THE INVENTION
本申请的目的是提供一种并行任务调度方法、并行任务调度系统、计算机可读存储介质和终端,能够减少计算资源的浪费,降低并发执行的耗时。The purpose of this application is to provide a parallel task scheduling method, a parallel task scheduling system, a computer-readable storage medium and a terminal, which can reduce the waste of computing resources and reduce the time consumption of concurrent execution.
为解决上述技术问题,本申请提供一种并行任务调度方法,具体技术方案如下:In order to solve the above-mentioned technical problems, the present application provides a parallel task scheduling method, and the specific technical solutions are as follows:
获取待执行任务,并确定所述待执行任务的测试环境数量;其中,各所述待执行任务的任务执行耗时已知;Acquire the tasks to be executed, and determine the number of test environments of the tasks to be executed; wherein, the task execution time of each of the tasks to be executed is known;
将每个测试环境作为测试队列,并确定各所述测试队列之间的初始排序;Use each test environment as a test queue, and determine the initial ordering between the test queues;
各所述测试队列按所述初始排序依次获取一个当前耗时最长的待执行任务,根据当前各所述测试队列对应任务执行耗时从短到长的顺序确定当前排序,按照所述当前排序依次获取一个当前耗时最长的待执行任务;Each of the test queues sequentially obtains a task to be executed with the longest current time-consuming according to the initial sorting, and determines the current sorting according to the current time-consuming order of the task execution time corresponding to each of the test queues from short to long, and according to the current sorting Obtain a task to be executed with the longest current time in turn;
利用所述测试队列执行各所述待执行任务。Each of the to-be-executed tasks is executed by using the test queue.
可选的,利用所述测试队列执行各所述待执行任务包括:Optionally, using the test queue to perform each of the to-be-executed tasks includes:
确定所述测试队列各自对应的测试背景;determining the respective corresponding test backgrounds of the test cohorts;
按照所述测试背景配置测试环境,并在所述测试环境中执行相应测试队列包含的所述待执行任务。A test environment is configured according to the test background, and the to-be-executed tasks included in the corresponding test queue are executed in the test environment.
可选的,确定所述测试队列各自对应的测试背景包括:Optionally, determining the respective corresponding test backgrounds of the test queues includes:
在所述待执行任务的数量满足阈值时,提取所述待执行任务的通用配置信息,得到所述测试背景。When the number of the tasks to be executed meets the threshold, general configuration information of the tasks to be executed is extracted to obtain the test background.
可选的,还包括:Optionally, also include:
若第一测试任务和第二测试任务存在任务依赖关系,且所述第一测试任务对应第一执行耗时,所述第二测试任务对应第二执行耗时,将所述第一测试任务和所述第二测试任务合并作为目标待执行任务;所述目标待执行任务的任务执行耗时为所述第一执行耗时和所述第二执行耗时之和。If there is a task dependency between the first test task and the second test task, and the first test task corresponds to the first execution time, and the second test task corresponds to the second execution time, the first test task and the second test task are time-consuming. The second test task is combined as the target task to be executed; the task execution time of the target task to be executed is the sum of the first execution time and the second execution time.
可选的,若接收到任务执行耗时未知的未知待执行任务,还包括:Optionally, if an unknown to-be-executed task with unknown task execution time is received, the method further includes:
若所述未知待执行任务数量大于数量阈值,将所述未知待执行任务按照任务数量均分至各所述测试队列;If the number of the unknown tasks to be performed is greater than the number threshold, the unknown tasks to be performed are equally divided into the test queues according to the number of tasks;
若所述未知待执行任务数量小于数量阈值,将所述未知待执行任务添加至当前任务执行总耗时最短的测试队列末尾。If the number of the unknown to-be-executed tasks is less than the number threshold, the unknown to-be-executed tasks are added to the end of the test queue with the shortest total execution time of the current task.
可选的,若所述待执行任务包含若干不同的测试场景,还包括:Optionally, if the to-be-executed task includes several different test scenarios, it also includes:
在每个所述测试场景中,选择适应所述测试场景的待执行任务执行如权利要求1所述的并行任务调度方法,得到各所述测试场景中的若干测试队列;其中,各所述测试场景中的测试队列数目相同;In each of the test scenarios, a task to be executed adapted to the test scenario is selected to execute the parallel task scheduling method according to claim 1, and several test queues in each of the test scenarios are obtained; The number of test queues in the scene is the same;
对各所述测试场景中的测试队列按照任务执行耗时进行排序,各所述测试队列按所述耗时从长到短排序依次获取一个下一测试场景中与之组合后任务执行总耗时最短的测试队列,得到组合队列;The test queues in each of the test scenarios are sorted according to the time-consuming of task execution, and each of the test queues is sorted according to the time-consuming from longest to shortest in order to obtain the total time-consuming of task execution in the next test scenario after being combined with it. The shortest test queue gets a combined queue;
将所述组合队列作为所述测试队列,重新执行所述各所述测试队列按所述耗时从长到短排序依次获取一个下一测试场景中与之组合后任务执行总耗时最短的测试队列的步骤,直至所有所述测试场景的测试队列均组合完毕得到调度队列;Using the combined queue as the test queue, re-execute the test queues according to the time-consuming order from long to short to obtain a test with the shortest total time-consuming task execution in the next test scenario after combination with it. The step of queuing, until all the test queues of the test scenarios are combined to obtain a scheduling queue;
按照所述调度队列依次执行所述待执行任务。The to-be-executed tasks are sequentially executed according to the scheduling queue.
本申请还提供一种并行任务调度系统,包括:The application also provides a parallel task scheduling system, including:
任务获取模块,用于获取待执行任务,并确定所述待执行任务的测试环境数量;其中,各所述待执行任务的任务执行耗时已知;A task acquisition module, configured to acquire tasks to be executed, and determine the number of test environments for the tasks to be executed; wherein, the task execution time of each of the tasks to be executed is known;
测试队列生成模块,用于将每个测试环境作为测试队列,并确定各所述测试队列之间的初始排序;a test queue generation module, used to use each test environment as a test queue, and to determine the initial order between the test queues;
任务调度模块,用于各所述测试队列按所述初始排序依次获取一个当前耗时最长的待执行任务,根据当前各所述测试队列对应任务执行耗时从短到长的顺序确定当前排序,按照所述当前排序依次获取一个当前耗时最长的待执行任务;The task scheduling module is used for each of the test queues to sequentially obtain a task to be executed with the longest current time consumption according to the initial sorting, and to determine the current sorting according to the order of the current time-consuming task execution corresponding to each of the test queues from short to long. , and sequentially obtain a task to be executed that takes the longest time currently according to the current sorting;
任务处理模块,用于利用所述测试队列执行各所述待执行任务。A task processing module, configured to execute each of the to-be-executed tasks by using the test queue.
可选的,任务处理模块包括:Optionally, the task processing module includes:
背景确定单元,用于确定所述测试队列各自对应的测试背景;A background determination unit, configured to determine the respective corresponding test backgrounds of the test queues;
环境配置单元,用于按照所述测试背景配置测试环境,并在所述测试环境中执行相应测试队列包含的所述待执行任务。An environment configuration unit, configured to configure a test environment according to the test background, and execute the to-be-executed task contained in the corresponding test queue in the test environment.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法的步骤。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the above-described method.
本申请还提供一种终端,包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时实现如上所述的方法的步骤。The present application also provides a terminal, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above method when the computer program in the memory is invoked.
本申请提供一种并行任务调度方法,包括:获取待执行任务,并确定所述待执行任务的测试环境数量;其中,各所述待执行任务的任务执行耗时已知;将每个测试环境作为测试队列,并确定各所述测试队列之间的初始排序;各所述测试队列按所述初始排序依次获取一个当前耗时最长的待执行任务,根据当前各所述测试队列对应任务执行耗时从短到长的顺序确定当前排序,按照所述当前排序依次获取一个当前耗时最长的待执行任务;利用所述测试队列执行各所述待执行任务。The present application provides a parallel task scheduling method, which includes: acquiring tasks to be executed, and determining the number of test environments for the tasks to be executed; wherein, the task execution time of each of the tasks to be executed is known; As a test queue, and determine the initial order between the test queues; each test queue sequentially obtains a task to be executed that takes the longest time according to the initial order, and executes the task according to the current task corresponding to each test queue The current order is determined in order of time-consuming from short to long, and a task to be executed that currently takes the longest time is sequentially acquired according to the current order; each of the to-be-executed tasks is executed by using the test queue.
本申请通过配置测试队列,使得测试队列在每次待执行任务获取时根据自身已有的任务执行总耗时依次获取,确保各测试队列所执行的待执行任务的总耗时相对均衡,保证了测试过程中的资源利用率,降低了任务执行耗时,提高了任务执行效率。In this application, by configuring the test queues, the test queues are obtained in sequence according to their existing total task execution time when each task to be executed is obtained, so as to ensure that the total time consumption of the to-be-executed tasks executed by each test queue is relatively balanced, ensuring that Resource utilization in the testing process reduces task execution time and improves task execution efficiency.
本申请还提供一种并行任务调度系统、计算机可读存储介质和终端,具有上述有益效果,此处不再赘述。The present application also provides a parallel task scheduling system, a computer-readable storage medium and a terminal, which have the above-mentioned beneficial effects, and will not be repeated here.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。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 accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only It is an embodiment of the present application. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without any creative effort.
图1为本申请实施例所提供的一种并行任务调度方法的流程图;1 is a flowchart of a parallel task scheduling method provided by an embodiment of the present application;
图2为本申请实施例所提供的一种并行任务调度结果示意图;FIG. 2 is a schematic diagram of a parallel task scheduling result provided by an embodiment of the present application;
图3为本申请实施例所提供的并行任务调度延时结果示意图;3 is a schematic diagram of a parallel task scheduling delay result provided by an embodiment of the present application;
图4为本申请实施例提供的双测试场景三测试环境的结构示意图:4 is a schematic structural diagram of two test scenarios and three test environments provided by an embodiment of the present application:
图5为本申请实施例提供的对图4对应的测试队列进行组合所得到的调度队列生成示意图;5 is a schematic diagram of generating a scheduling queue obtained by combining the test queues corresponding to FIG. 4 according to an embodiment of the present application;
图6为本申请实施例所提供的一种并行任务调度系统结构示意图;FIG. 6 is a schematic structural diagram of a parallel task scheduling system provided by an embodiment of the present application;
图7为本申请实施例所提供的一种终端的结构示意图。FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
参见图1,图1为本申请实施例所提供的一种并行任务调度方法的流程图,该方法包括:Referring to FIG. 1, FIG. 1 is a flowchart of a parallel task scheduling method provided by an embodiment of the present application, and the method includes:
S101:获取待执行任务,并确定所述待执行任务的测试环境数量;S101: Obtain a task to be executed, and determine the number of test environments for the task to be executed;
本步骤旨在获取待执行任务,且各待执行任务的任务执行耗时已知。通常而言,对于执行一次的任务,在下一次执行时视为其任务执行耗时已知。该任务执行耗时为相对参考时间,并不必须为实际执行该待执行任务的精确时间。考虑到任务执行时存在执行环境的差异,因此在不同的任务执行环境中,同一待执行任务可能存在一定的任务执行耗时差异。The purpose of this step is to obtain tasks to be executed, and the task execution time of each to-be-executed task is known. Generally speaking, for a task that is executed once, it is considered that its task execution time is known when it is executed next time. The task execution time is a relative reference time, not necessarily the exact time when the task to be executed is actually executed. Considering that there are differences in execution environments during task execution, in different task execution environments, there may be certain differences in task execution time consumption for the same task to be executed.
此外,本步骤还需要确定待执行任务的测试环境数量,该测试环境通常由测试设备自身性能决定,可由本领域技术人员根据测试设备的设备参数确定可执行任务的测试环境数量。由于自动化测试过程中存在案例护航,即在一个测试环境上,消耗资源较少的案例因消耗资源较大的案例正在执行而不得不等待的问题,而自动化测试执行是非抢占的,不应在一个测试环境上同时执行多个测试案例,因此当计划在一个测试环境上静态分配一系列案例执行时,会出现案例护航效应。因此,对于消耗较大的待执行任务,应当优先划分相应的测试环境。In addition, this step also needs to determine the number of test environments for the task to be executed, which is usually determined by the performance of the test equipment itself, and can be determined by those skilled in the art according to the device parameters of the test equipment. Since there is case escort in the automated testing process, that is, in a test environment, a case that consumes less resources has to wait because a case that consumes more resources is being executed, and automated test execution is non-preemptive and should not be executed in a test environment. Multiple test cases are executed simultaneously on a test environment, so the case escort effect occurs when planning to statically assign a series of case executions on a test environment. Therefore, for tasks to be executed that consume a lot of energy, the corresponding test environment should be prioritized.
作为一种优选的执行方式,在实际执行任务时,时常存在包含任务依赖关系的两个或者多个任务。若执行任务时由外部推送,容易使得存在任务依赖关系的任务被推送至不同进程、环境执行,使得测试结果产生较大误差。为此,若第一测试任务和第二测试任务存在任务依赖关系,且二者的任务执行耗时均已知时,例如第一测试任务对应第一执行耗时,第二测试任务对应第二执行耗时,可以将第一测试任务和第二测试任务合并作为目标待执行任务,该目标待执行任务的任务执行耗时为第一执行耗时和第二执行耗时之和。换言之,对于存在任务依赖关系的任务,只要各自的任务执行耗时已知,可以将所有存在任务依赖关系的任务视为一个待执行任务加以执行。需要注意的是,若其中任意测试任务的任务执行耗时未知,虽然依旧可以合并或者视为一个待执行任务,待该待执行任务应视为一个任务执行耗时未知的待执行任务加以处理。As a preferred execution manner, when actually executing a task, there are often two or more tasks including task dependencies. If the tasks are pushed externally when executing tasks, it is easy to push tasks with task dependencies to different processes and environments for execution, resulting in large errors in the test results. For this reason, if there is a task dependency relationship between the first test task and the second test task, and the execution time of the two tasks is known, for example, the first test task corresponds to the first execution time, and the second test task corresponds to the second test task. In terms of execution time, the first test task and the second test task may be combined as the target to-be-executed task, and the task execution time of the target to-be-executed task is the sum of the first execution time and the second execution time. In other words, for tasks with task dependencies, as long as the execution time of the respective tasks is known, all tasks with task dependencies can be regarded as one to-be-executed task to be executed. It should be noted that if the task execution time of any of the test tasks is unknown, although it can still be combined or regarded as a pending task, the pending task should be treated as a pending task whose execution time is unknown.
S102:将每个测试环境作为测试队列,并确定各所述测试队列之间的初始排序;S102: Use each test environment as a test queue, and determine an initial order between the test queues;
本步骤中,每个测试环境作为一个测试队列,测试队列中的各待执行任务依次执行。且为了便于后续步骤的执行,本步骤需要确定测试队列之间的顺序,用于后续步骤获取待执行任务。In this step, each test environment is used as a test queue, and the tasks to be executed in the test queue are executed in sequence. And in order to facilitate the execution of the subsequent steps, in this step, the sequence between the test queues needs to be determined, which is used for the subsequent steps to obtain the tasks to be executed.
S103:各所述测试队列按所述初始排序依次获取一个当前耗时最长的待执行任务,根据当前各所述测试队列对应任务执行耗时从短到长的顺序确定当前排序,按照所述当前排序依次获取一个当前耗时最长的待执行任务;S103: Each of the test queues sequentially obtains a task to be executed with the longest current time consumption according to the initial sorting, and determines the current sorting according to the order of the current time-consuming task execution time corresponding to each of the test queues from short to long, and according to the The current sorting obtains a task to be executed with the longest current time in turn;
本步骤中,各测试队列需要依次获取待执行任务。具体的,首先按照上一步骤中确定的排序,依次获取一个当前耗时最长的待执行任务,在每个测试队列都获取一次待执行任务后,根据当前各所述测试队列对应任务执行耗时从短到长的顺序确定当前排序,按照所述当前排序依次获取一个当前耗时最长的待执行任务。可以此类推,直至获取完所有待执行任务。可以看出,测试队列当前获取的待执行任务的任务执行总耗时越长,下一次获取的待执行任务的任务执行耗时就越短,如此,可使得各测试队列之间的任务执行总耗时相对平均,避免出现部分测试队列先执行完成导致的资源浪费。In this step, each test queue needs to acquire tasks to be executed in sequence. Specifically, first, according to the order determined in the previous step, a task to be executed that currently takes the longest time is obtained in turn. After each test queue obtains a task to be executed once, according to the current task execution consumption of each test queue The current order is determined in the order from short to long, and a task to be executed that currently takes the longest time is obtained in sequence according to the current order. And so on, until all pending tasks are obtained. It can be seen that the longer the total execution time of the tasks to be executed currently obtained by the test queue, the shorter the execution time of the tasks to be executed next obtained. The time-consuming is relatively average, avoiding the waste of resources caused by the completion of some test queues first.
S104:利用所述测试队列执行各所述待执行任务。S104: Use the test queue to execute each of the tasks to be executed.
在测试队列中的待执行任务确定后,即可执行各待执行任务。需要说明的是,步骤S103为对任务获取方式的描述,在实际执行任务过程中,可以边执行任务边执行任务获取,或者每执行完成一个任务,按照上述方式获取下一个执行的待执行任务均可。After the tasks to be executed in the test queue are determined, the tasks to be executed can be executed. It should be noted that step S103 is a description of the task acquisition method. During the actual task execution process, the task acquisition may be performed while executing the task, or each time a task is executed and completed, the next task to be executed is obtained in the above manner. Can.
还需要注意的是,由于待执行任务在执行过程中可能存在各种意外,导致任务执行耗时超出其已知的任务执行耗时,此时若每完成一个待执行任务,再去获取当前任务执行耗时最长的待执行任务,能够有效降低由于任务执行异常导致的资源利用率下降问题。It should also be noted that due to various accidents during the execution of the task to be executed, the task execution time exceeds its known task execution time. At this time, if each to-be-executed task is completed, the current task is obtained. Execute the task that takes the longest time to be executed, which can effectively reduce the problem of resource utilization decline caused by abnormal task execution.
作为本步骤的一种优选执行方式,在执行待执行任务时,可以先确定测试队列各自对应的测试背景,以便按照测试背景配置测试环境,并在测试环境中执行相应测试队列包含的待执行任务。不同的测试队列之间可能存在测试环境的差异,为了降低任务执行过程中由于任务执行环境对任务执行耗时造成的影响,可以在执行本步骤时针对测试队列配置相应的测试环境。在此对于如何确定测试队列的测试背景不作限定,可以在待执行任务的数量满足阈值时,提取待执行任务的通用配置信息,作为测试背景。在此对于该阈值不作限定,可以为三个、五个甚至更多,具体可由本领域技术人员自行设定。As a preferred execution method of this step, when executing the tasks to be executed, the respective test backgrounds corresponding to the test queues may be determined first, so as to configure the test environment according to the test backgrounds, and execute the tasks to be executed contained in the corresponding test queues in the test environment. . There may be differences in test environments between different test queues. In order to reduce the impact of the task execution environment on the time-consuming task execution during task execution, you can configure the corresponding test environment for the test queue when performing this step. There is no limitation on how to determine the test background of the test queue. When the number of tasks to be executed meets the threshold, general configuration information of the tasks to be executed can be extracted as the test background. The threshold is not limited here, and may be three, five or even more, which can be specifically set by those skilled in the art.
参见图2,图2为本申请实施例所提供的一种并行任务调度结果示意图,现存在12个不同任务执行耗时的待执行任务,按照本实施例所描述的方式,可以划分为四个测试队列,按顺序标号为测试队列1、测试队列2、测试队列3和测试队列4,依次获取当前任务执行耗时最长的待执行任务,则分别对应获取37(表示任务执行耗时,下文同义)、31、25和21,此时由当前测试队列任务执行总耗时最短的测试队列4优先获取当前任务执行耗时最大的待执行任务,即17对应的待执行任务,在第二轮获取任务获取结束后,测试队列4依旧为当前测试队列任务执行总耗时最短的测试队列,因此获取当前任务执行耗时最大的待执行任务,即7对应的待执行任务,如此可以看出,测试队列1、测试队列2、测试队列3和测试队列4的执行时长分别为46、44、41、45,实现了各测试队列之间执行时长的相对均衡,同时也使得资源利用相对均衡。Referring to FIG. 2, FIG. 2 is a schematic diagram of a parallel task scheduling result provided by an embodiment of the present application. There are currently 12 different tasks that are time-consuming to execute tasks. According to the method described in this embodiment, they can be divided into four The test queues are labeled as test queue 1,
在任务执行过程中,若每完成一个待执行任务,再去获取当前任务执行耗时最长的待执行任务,即使出现任务执行异常导致实际任务执行耗时延长,依旧可以实现任务的调度均衡。参见图3,图3为本申请实施例所提供的并行任务调度延时结果示意图,若测试队列3中的第二个待执行任务的实际任务执行耗时变成了16,按从短到长排序,将导致测试队列3在下一次获取待执行任务时其任务执行总耗时由原来的第二变成第3,其在第三次获取时,只能获取任务执行耗时为4的待执行任务,此时测试队列1、测试队列2、测试队列3和测试队列4的执行时长分别为46、45、45、45,并未影响任务调度均衡的实现。In the process of task execution, if each to-be-executed task is completed, the task with the longest execution time of the current task is obtained. Even if a task execution abnormality causes the actual task execution time to be prolonged, the task scheduling can still be balanced. Referring to FIG. 3, FIG. 3 is a schematic diagram of a parallel task scheduling delay result provided by an embodiment of the present application. If the actual task execution time of the second task to be executed in the test queue 3 becomes 16, according to the order from short to long Sorting will cause the total task execution time of test queue 3 to change from the original second to the third when it acquires the to-be-executed task next time. When it is acquired for the third time, it can only obtain the pending task with a task execution time of 4. At this time, the execution durations of test queue 1,
本申请实施例通过配置测试队列,使得测试队列在每次待执行任务获取时根据自身已有的任务执行总耗时依次获取,确保各测试队列所执行的待执行任务的总耗时相对均衡,保证了测试过程中的资源利用率,降低了任务执行耗时,提高了任务执行效率。In the embodiment of the present application, by configuring the test queues, the test queues are sequentially acquired according to their existing total task execution time when each task to be executed is acquired, so as to ensure that the total time consumption of the to-be-executed tasks executed by each test queue is relatively balanced. The resource utilization rate in the testing process is guaranteed, the time-consuming task execution is reduced, and the task execution efficiency is improved.
基于上述实施例,作为优选的实施例,本实施例针对任务执行耗时未知的未知待执行任务进行处置,具体方案可以包括如下步骤:Based on the above embodiment, as a preferred embodiment, this embodiment deals with unknown tasks to be executed whose task execution time is unknown. The specific solution may include the following steps:
若未知待执行任务数量大于数量阈值,将未知待执行任务按照任务数量均分至各测试队列;If the number of unknown to-be-executed tasks is greater than the number threshold, the unknown to-be-executed tasks are equally divided into test queues according to the number of tasks;
若未知待执行任务数量小于数量阈值,将未知待执行任务添加至当前任务执行总耗时最短的测试队列末尾。If the number of unknown to-be-executed tasks is less than the number threshold, the unknown to-be-executed tasks are added to the end of the test queue with the shortest total execution time of the current task.
本实施例需要因未知待执行任务的数量进行相应处置,若其数量小于数量阈值,可以直接将其添加至当前任务执行总耗时最短的测试队列末尾加以执行。若其数量大于数量阈值,按照测试队列的数量相对平均的分到各测试队列的末尾。在此对于该数量阈值不作限定,具体可以由本领域技术人员根据所需要执行测试的待执行任务的总数量以及未知待执行任务的数量进行设定。In this embodiment, the unknown number of tasks to be executed needs to be dealt with accordingly. If the number is less than the number threshold, it can be directly added to the end of the test queue with the shortest total execution time of the current task for execution. If the number is greater than the number threshold, it will be distributed to the end of each test queue relatively evenly according to the number of test queues. The number threshold is not limited here, and can be specifically set by those skilled in the art according to the total number of tasks to be performed that need to be tested and the number of unknown tasks to be performed.
在上述实施例中,各待执行任务视为基于相同或者相近的测试场景,即对于待执行任务的测试场景要求近似或者相同,作为优选的实施例,若待执行任务包含至少两种不同的测试场景,还包括:In the above embodiment, the tasks to be executed are considered to be based on the same or similar test scenarios, that is, the test scenarios for the tasks to be executed require similar or identical test scenarios. As a preferred embodiment, if the tasks to be executed include at least two different tests Scenarios, which also include:
S201:在每个所述测试场景中,选择适应所述测试场景的待执行任务执行如权利要求1所述的并行任务调度方法,得到各所述测试场景中的若干测试队列;其中,各所述测试场景中的测试队列数目相同;S201: In each of the test scenarios, select a task to be executed adapted to the test scenario to execute the parallel task scheduling method according to claim 1, and obtain several test queues in each of the test scenarios; The number of test queues in the above test scenario is the same;
S202:对各所述测试场景中的测试队列按照任务执行耗时进行排序,各所述测试队列按所述耗时从长到短排序依次获取一个下一测试场景中与之组合后任务执行总耗时最短的测试队列,得到组合队列;S202: Sort the test queues in each of the test scenarios according to the task execution time, and each of the test queues sequentially obtains a combined task execution total in the next test scenario according to the time-consuming in descending order. The shortest time-consuming test queue gets a combined queue;
S203:将所述组合队列作为所述测试队列,重新执行所述各所述测试队列按所述耗时从长到短排序依次获取一个下一测试场景中与之组合后任务执行总耗时最短的测试队列的步骤,直至所有所述测试场景的测试队列均组合完毕得到调度队列;S203: Use the combined queue as the test queue, and re-execute the test queues in order to obtain the shortest total time-consuming task execution in the next test scenario in order of the time-consuming sequence from longest to shortest The steps of the test queue, until all the test queues of the test scenarios are combined to obtain a scheduling queue;
S204:按照所述调度队列依次执行所述待执行任务。S204: Execute the to-be-executed tasks in sequence according to the scheduling queue.
虽然待执行任务存在不同的测试场景,但由于所应用的测试设备均相同,即利用相同的设备处置待执行任务,因此在每个测试场景中,其测试队列数目相同。Although there are different test scenarios for the tasks to be executed, since the applied test devices are all the same, that is, the same devices are used to process the tasks to be executed, so in each test scenario, the number of test queues is the same.
按照上述实施例的过程针对每个测试场景进行测试队列的生成,如此可以得到不同测试场景下的若干测试队列,此后针对不同测试场景下的测试队列进行组合或衔接。具体的组合方式视第一个测试场景中测试队列按照任务执行总耗时的排序方式决定,若第一个测试场景中的测试队列按执行耗时从长到短的顺序组合,则在组合下一测试场景中的测试队列时,选择与之组合后任务执行总耗时最短的测试队列。反之则反,若第一个测试场景中的测试队列按执行耗时从短到长的顺序组合,则在组合下一测试场景中的测试队列时,选择与之组合后任务执行总耗时最长的测试队列。在所有测试场景组合完毕后,得到调度队列。According to the process of the above embodiment, test queues are generated for each test scenario, so that several test queues under different test scenarios can be obtained, and then the test queues under different test scenarios are combined or connected. The specific combination method depends on the sorting method of the test queues in the first test scenario according to the total time-consuming of task execution. When testing a test queue in a scenario, select the test queue with the shortest total task execution time when combined with it. On the contrary, if the test queues in the first test scenario are combined in order of execution time from short to long, then when combining the test queues in the next test scenario, the total time-consuming task execution will be the longest. Long test queue. After all test scenarios are combined, the scheduling queue is obtained.
需要说明的是,本实施例中的测试场景并不等同与上述实施例中的测试环境,上述实施例中的测试环境可以视为同一测试场景下的不同进程,可以并行实现待执行任务的自动化执行。It should be noted that the test scenarios in this embodiment are not equivalent to the test environments in the above-mentioned embodiments, and the test environments in the above-mentioned embodiments can be regarded as different processes under the same test scenario, and the automation of tasks to be executed can be realized in parallel. implement.
本实施例可以实现待执行任务被不同测试场景调度时,实现全局资源使用均衡。一种优选的执行方式,可以在每个测试队列中配置专属的测试服务,由该测试服务从管理测试任务的服务中获取当前任务耗时最长的待执行任务执行,此时对测试任务的执行为一种单队列多处理器模型,在此模型下依照上文所述的最长任务优先策略即可保证各个测试环境上的负荷均衡.从而实现最大化资源利用。This embodiment can realize the balanced use of global resources when tasks to be executed are scheduled by different test scenarios. In a preferred execution method, a dedicated test service can be configured in each test queue, and the test service obtains the task to be executed with the longest current task time from the service that manages the test task. Execution is a single-queue multi-processor model. Under this model, according to the longest task priority strategy described above, the load balance on each test environment can be guaranteed to maximize resource utilization.
参考图4和图5,图4为本申请实施例提供的双测试场景三测试环境的结构示意图,图5为应用本申请实施例对图4对应的测试队列进行组合所得到的调度队列生成示意图,图4中,包含了两个测试场景,即测试场景1和测试场景2,包含了6个待执行任务,可以按照上述实施例的步骤得到三个测试队列,同理测试场景2也可以得到三个测试队列,且测试队列1-1、1-2和1-3按照任务执行耗时从短到长的顺序,则测试队列1-1应组合测试场景2中任务执行耗时最长的测试队列,也即测试队列2-1,以满足组合后任务执行总耗时最长。最终可得到图5所示的三个调度队列,且每个调度队列的耗时均为29,实现了全局资源的最大化利用。Referring to FIG. 4 and FIG. 5 , FIG. 4 is a schematic structural diagram of a dual test scenario and three test environments provided by an embodiment of the present application, and FIG. 5 is a schematic diagram of scheduling queue generation obtained by applying an embodiment of the present application to combine the test queues corresponding to FIG. 4 , in FIG. 4, two test scenarios are included, namely, test scenario 1 and
参见图6,图6为本申请实施例所提供的一种并行任务调度系统结构示意图,本实施例公开的并行任务调度系统与上文所述的并行任务调度方法可以相互参考对照,本申请还提供一种并行任务调度系统,包括:Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a parallel task scheduling system provided by an embodiment of the application. The parallel task scheduling system disclosed in this embodiment and the parallel task scheduling method described above can be compared with each other. Provide a parallel task scheduling system, including:
任务获取模块,用于获取待执行任务,并确定所述待执行任务的测试环境数量;其中,各所述待执行任务的任务执行耗时已知;A task acquisition module, configured to acquire tasks to be executed, and determine the number of test environments for the tasks to be executed; wherein, the task execution time of each of the tasks to be executed is known;
测试队列生成模块,用于将每个测试环境作为测试队列,并确定各所述测试队列之间的初始排序;a test queue generation module, used to use each test environment as a test queue, and to determine the initial order between the test queues;
任务调度模块,用于各所述测试队列按所述初始排序依次获取一个当前耗时最长的待执行任务,根据当前各所述测试队列对应任务执行耗时从短到长的顺序确定当前排序,按照所述当前排序依次获取一个当前耗时最长的待执行任务;The task scheduling module is used for each of the test queues to sequentially obtain a task to be executed with the longest current time consumption according to the initial sorting, and to determine the current sorting according to the order of the current time-consuming task execution corresponding to each of the test queues from short to long. , and sequentially obtain a task to be executed that takes the longest time currently according to the current sorting;
任务处理模块,用于利用所述测试队列执行各所述待执行任务。A task processing module, configured to execute each of the to-be-executed tasks by using the test queue.
基于上述实施例,作为优选的实施例,任务处理模块包括:Based on the above embodiment, as a preferred embodiment, the task processing module includes:
背景确定单元,用于确定所述测试队列各自对应的测试背景;A background determination unit, configured to determine the respective corresponding test backgrounds of the test queues;
环境配置单元,用于按照所述测试背景配置测试环境,并在所述测试环境中执行相应测试队列包含的所述待执行任务。An environment configuration unit, configured to configure a test environment according to the test background, and execute the to-be-executed task contained in the corresponding test queue in the test environment.
基于上述实施例,作为优选的实施例,背景确定单元为用于在所述待执行任务的数量满足阈值时,提取所述待执行任务的通用配置信息,得到所述测试背景的单元。Based on the above embodiment, as a preferred embodiment, the background determination unit is a unit configured to extract the general configuration information of the to-be-executed tasks to obtain the test background when the number of the to-be-executed tasks meets a threshold.
基于上述实施例,作为优选的实施例,还包括:Based on the above embodiment, as a preferred embodiment, it also includes:
任务合并模块,用于若第一测试任务和第二测试任务存在任务依赖关系,且所述第一测试任务对应第一执行耗时,所述第二测试任务对应第二执行耗时,将所述第一测试任务和所述第二测试任务合并作为目标待执行任务;所述目标待执行任务的任务执行耗时为所述第一执行耗时和所述第二执行耗时之和。The task merging module is used for, if there is a task dependency relationship between the first test task and the second test task, and the first test task corresponds to the first execution time-consuming, and the second test task corresponds to the second execution time-consuming, The first test task and the second test task are combined as the target to-be-executed task; the task execution time of the target to-be-executed task is the sum of the first execution time and the second execution time.
基于上述实施例,作为优选的实施例,还包括:Based on the above embodiment, as a preferred embodiment, it also includes:
未知任务调度模块,用于在接收到任务执行耗时未知的未知待执行任务时,若所述未知待执行任务数量大于数量阈值,将所述未知待执行任务按照任务数量均分至各所述测试队列;The unknown task scheduling module is configured to divide the unknown tasks to be executed equally according to the number of tasks if the number of the unknown tasks to be executed is greater than the number threshold when receiving the unknown tasks to be executed whose task execution time is unknown. test queue;
若所述未知待执行任务数量小于数量阈值,将所述未知待执行任务添加至当前任务执行总耗时最短的测试队列末尾。If the number of the unknown to-be-executed tasks is less than the number threshold, the unknown to-be-executed tasks are added to the end of the test queue with the shortest total execution time of the current task.
基于上述实施例,作为优选的实施例,还包括:Based on the above embodiment, as a preferred embodiment, it also includes:
全局调度模,用于执行如下步骤:Global scheduling mode, used to perform the following steps:
若所述待执行任务包含若干不同的测试场景,在每个所述测试场景中,选择适应所述测试场景的待执行任务执行如上所述的并行任务调度方法,得到各所述测试场景中的若干测试队列;其中,各所述测试场景中的测试队列数目相同;If the to-be-executed task includes several different test scenarios, in each of the test scenarios, select the to-be-executed task adapted to the test scenario to execute the parallel task scheduling method described above, and obtain the test scenarios in each of the test scenarios. Several test queues; wherein, the number of test queues in each of the test scenarios is the same;
对各所述测试场景中的测试队列按照任务执行耗时进行排序,各所述测试队列按所述耗时从长到短排序依次获取一个下一测试场景中与之组合后任务执行总耗时最短的测试队列,得到组合队列;The test queues in each of the test scenarios are sorted according to the time-consuming of task execution, and each of the test queues is sorted according to the time-consuming from longest to shortest in order to obtain the total time-consuming of task execution in the next test scenario after being combined with it. The shortest test queue gets a combined queue;
将所述组合队列作为所述测试队列,重新执行所述各所述测试队列按所述耗时从长到短排序依次获取一个下一测试场景中与之组合后任务执行总耗时最短的测试队列的步骤,直至所有所述测试场景的测试队列均组合完毕得到调度队列;Using the combined queue as the test queue, re-execute the test queues according to the time-consuming order from long to short to obtain a test with the shortest total time-consuming task execution in the next test scenario after combination with it. The step of queuing, until all the test queues of the test scenarios are combined to obtain a scheduling queue;
按照所述调度队列依次执行所述待执行任务。The to-be-executed tasks are sequentially executed according to the scheduling queue.
本申请还提供了一种计算机可读存储介质,其上存有计算机程序,该计算机程序被执行时可以实现上述实施例所提供的方法的步骤。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps of the methods provided in the above embodiments can be implemented. The storage medium may include: U disk, removable hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
本申请还提供了一种终端,可以包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时,可以实现上述实施例所提供的方法的步骤。当然所述终端还可以包括各种网络接口,电源等组件。请参见图7,图7为本申请实施例所提供的一种终端的结构示意图,本实施例的终端可以包括:处理器2101和存储器2102。The present application also provides a terminal, which may include a memory and a processor, where a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps of the methods provided in the above embodiments can be implemented . Of course, the terminal may also include various network interfaces, power supplies and other components. Referring to FIG. 7 , FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal in this embodiment may include: a
可选的,该终端还可以包括通信接口2103、输入单元2104和显示器2105和通信总线2106。Optionally, the terminal may further include a
处理器2101、存储器2102、通信接口2103、输入单元2104、显示器2105、均通过通信总线2106完成相互间的通信。The
在本申请实施例中,该处理器2101,可以为中央处理器(Central ProcessingUnit,CPU),特定应用集成电路,数字信号处理器、现成可编程门阵列或者其他可编程逻辑器件等。In this embodiment of the present application, the
该处理器可以调用存储器2102中存储的程序。具体的,处理器可以执行上文的实施例中终端所执行的操作。The processor may invoke programs stored in
存储器2102中用于存放一个或者一个以上程序,程序可以包括程序代码,所述程序代码包括计算机操作指令,在本申请实施例中,该存储器中至少存储有用于实现以下功能的程序:The
获取待执行任务,并确定所述待执行任务的测试环境数量;其中,各所述待执行任务的任务执行耗时已知;Acquire the tasks to be executed, and determine the number of test environments of the tasks to be executed; wherein, the task execution time of each of the tasks to be executed is known;
将每个测试环境作为测试队列,并确定各所述测试队列之间的初始排序;Use each test environment as a test queue, and determine the initial ordering between the test queues;
各所述测试队列按所述初始排序依次获取一个当前耗时最长的待执行任务,根据当前各所述测试队列对应任务执行耗时从短到长的顺序确定当前排序,按照所述当前排序依次获取一个当前耗时最长的待执行任务;Each of the test queues sequentially obtains a task to be executed with the longest current time-consuming according to the initial sorting, and determines the current sorting according to the current time-consuming order of the task execution time corresponding to each of the test queues from short to long, and according to the current sorting Obtain a task to be executed with the longest current time in turn;
利用所述测试队列执行各所述待执行任务。Each of the to-be-executed tasks is executed by using the test queue.
在一种可能的实现方式中,该存储器2102可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、以及至少一个功能所需的应用程序等;存储数据区可存储根据计算机的使用过程中所创建的数据。In a possible implementation manner, the
此外,存储器2102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件或其他易失性固态存储器件。Additionally,
该通信接口2103可以为通信模块的接口,如GSM模块的接口。The
本申请还可以包括显示器2105和输入单元2104等等。The present application may also include a
图7所示的终端的结构并不构成对本申请实施例中终端的限定,在实际应用中终端可以包括比图7所示的更多或更少的部件,或者组合某些部件。The structure of the terminal shown in FIG. 7 does not constitute a limitation on the terminal in this embodiment of the present application. In practical applications, the terminal may include more or less components than those shown in FIG. 7 , or combine some components.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例提供的系统而言,由于其与实施例提供的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. For the system provided by the embodiment, since it corresponds to the method provided by the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。Specific examples are used herein to illustrate the principles and implementations of the present application, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of the present application, several improvements and modifications can also be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210681507.2A CN114995981A (en) | 2022-06-16 | 2022-06-16 | A parallel task scheduling method, system, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210681507.2A CN114995981A (en) | 2022-06-16 | 2022-06-16 | A parallel task scheduling method, system, storage medium and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114995981A true CN114995981A (en) | 2022-09-02 |
Family
ID=83034369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210681507.2A Pending CN114995981A (en) | 2022-06-16 | 2022-06-16 | A parallel task scheduling method, system, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114995981A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115935934A (en) * | 2022-12-05 | 2023-04-07 | 中国工商银行股份有限公司 | Document generation method, device, device, storage medium and computer program product |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722417A (en) * | 2012-06-07 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Distribution method and device for scan task |
US20150089299A1 (en) * | 2013-09-25 | 2015-03-26 | Microsoft Corporation | Online application testing across browser environments |
CN111162934A (en) * | 2019-12-13 | 2020-05-15 | 微民保险代理有限公司 | Business service test method and device, storage medium and electronic device |
-
2022
- 2022-06-16 CN CN202210681507.2A patent/CN114995981A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722417A (en) * | 2012-06-07 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Distribution method and device for scan task |
US20150089299A1 (en) * | 2013-09-25 | 2015-03-26 | Microsoft Corporation | Online application testing across browser environments |
CN111162934A (en) * | 2019-12-13 | 2020-05-15 | 微民保险代理有限公司 | Business service test method and device, storage medium and electronic device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115935934A (en) * | 2022-12-05 | 2023-04-07 | 中国工商银行股份有限公司 | Document generation method, device, device, storage medium and computer program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113535367B (en) | Task scheduling method and related device | |
CN106802826B (en) | A thread pool-based business processing method and device | |
CN109995677B (en) | Resource allocation method, device and storage medium | |
US8413158B2 (en) | Processor thread load balancing manager | |
CN111831408A (en) | Asynchronous task processing method and device, electronic equipment and medium | |
US10083066B2 (en) | Processing data by using simultaneous multithreading | |
US8612597B2 (en) | Computing scheduling using resource lend and borrow | |
CN113626333A (en) | Automatic interface testing method and device | |
CN117472533A (en) | Task scheduling processing method and device, storage medium and electronic equipment | |
CN117743145A (en) | Test script generation method and device based on coding template and processing equipment | |
CN114995981A (en) | A parallel task scheduling method, system, storage medium and terminal | |
CN114629960B (en) | Resource scheduling methods, devices, systems, equipment, media and program products | |
CN114021733B (en) | Model training optimization method, device, computer equipment and storage medium | |
Ng et al. | Improving system predictability and performance via hardware accelerated data structures | |
CN111190725B (en) | Task processing method, device, storage medium and server | |
CN106874129A (en) | A kind of operating system process scheduling order determines method and control method | |
CN110737572B (en) | Big data platform resource preemption test method, system, terminal and storage medium | |
CN116795490A (en) | vCPU scheduling method, device, equipment and storage medium | |
US8612988B2 (en) | Method for monitoring system resources and associated electronic device | |
CN113704687B (en) | Tensor calculation operation method, device and operation system | |
CN117194313A (en) | Switchable topology machine | |
CN108804311B (en) | Method and device for executing test file | |
CN113886035A (en) | Task processing method and device, electronic equipment and storage medium | |
CN118535316B (en) | Method, device and storage medium for cloud computing on cloud system | |
Kumar et al. | Global analysis of resource arbitration for MPSoC |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |