CN105426257B - The execution method and device of task - Google Patents
The execution method and device of task Download PDFInfo
- Publication number
- CN105426257B CN105426257B CN201510996993.7A CN201510996993A CN105426257B CN 105426257 B CN105426257 B CN 105426257B CN 201510996993 A CN201510996993 A CN 201510996993A CN 105426257 B CN105426257 B CN 105426257B
- Authority
- CN
- China
- Prior art keywords
- task
- execution
- identification information
- currently performed
- pending
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F9/526—Mutual exclusion algorithms
-
- 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/485—Task life-cycle, e.g. stopping, restarting, resuming execution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of execution method and devices of task, it is related to a kind of field of computer technology, it first detects whether to reach pending task corresponding starting time point, then when reaching the starting time point, judge whether there is the corresponding execution device-identification information of currently performed task, the execution device-identification information is not carried out completion for identifying currently performed task, and the execution device-identification information, then execute the pending task if it does not exist.It using above scheme, solves when the timing iterative task quantity in database is larger, it may appear that execute multiple tasks parallel in section at the same time, system is caused to run slow problem, improve the execution efficiency of timing iterative task.
Description
Technical field
The present invention relates to a kind of field of computer technology, more particularly to a kind of execution method and device of task.
Background technique
Linux system is a set of free class Unix operating system using with Free propagation, can support multi-user, more
Business, multithreading, multi -CPU, it can run main Unix tool software, application program and network protocol.Linux system is executing
When multiple tasks, i.e., when background system executes task, a task in database can be executed at regular intervals.
Currently, no matter a upper task is in next task when executing timing iterative task by linux system backstage
Whether starting time point executes completion, can all execute next task.However when the task quantity in database is larger, it can go out
Multiple tasks are executed parallel in section at the same time now, cause system operation slowly, reduce timing iterative task executes effect
Rate.
Summary of the invention
In view of this, the present invention provides a kind of execution method and device of task, main purpose is to solve to work as database
In the timing iterative task quantity that needs to be implemented it is larger when, it may appear that execute multiple tasks parallel in section at the same time, make
Slow problem is run at system.
According to the present invention on one side, a kind of execution method of task is provided, this method comprises:
It detects whether to reach pending task corresponding starting time point;
When reaching the starting time point, the corresponding execution status indicator letter of currently performed task is judged whether there is
Breath, the execution device-identification information are not carried out completion for identifying currently performed task;
The execution device-identification information if it does not exist then executes the pending task.
According to the present invention on one side, a kind of executive device of task is provided, which includes:
Detection unit, for detecting whether reaching pending task corresponding starting time point;
Judging unit, for it is corresponding to judge whether there is currently performed task when reaching the starting time point
Device-identification information is executed, the execution device-identification information is not carried out completion for identifying currently performed task;
Execution unit, if judging for judging unit there is no the execution device-identification information, execute it is described to
Execution task.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention is at least had the advantage that
A kind of execution method and device of task provided in an embodiment of the present invention first detects whether to reach pending task
Corresponding starting time point, it is corresponding to judge whether there is currently performed task then when reaching the starting time point
Device-identification information is executed, the execution device-identification information is not carried out completion for identifying currently performed task, if not depositing
In the execution device-identification information, then the pending task is executed.With timing is being executed by linux system backstage at present
When iterative task, no matter a upper task next task starting time point whether execute completion, can all execute next
Business is compared, and the present invention is by judging whether current task executes completion at task start time point, if current task has executed
At then execution next task corresponding with current task, realizes after current task executes completion and execute and work as predecessor again
It is engaged in corresponding next task, to improve the execution efficiency of timing iterative task.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the execution method of task provided in an embodiment of the present invention;
Fig. 2 shows the flow charts of the execution method of another task provided in an embodiment of the present invention;
Fig. 3 shows a kind of executive device composition block diagram of task provided in an embodiment of the present invention;
Fig. 4 shows the executive device composition block diagram of another task provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the present invention provides a kind of execution method of task, as shown in Figure 1, which comprises
101, it detects whether to reach pending task corresponding starting time point.
Wherein, the task can carry out customized according to user, and for use in modification system operation mode, the present invention is real
It applies example to be not specifically limited, the execution of the task, is required to one corresponding process of starting, the pending task specifically may be used
Think one section of program code.The starting time point is at the time of starting to execute pending task.For example, being executed under current process
Task 1 detects whether the starting time 20 seconds that reach next task 2 corresponding with current task.
102, when reaching the starting time point, the corresponding execution state mark of currently performed task is judged whether there is
Know information.
Wherein, the execution device-identification information is not carried out completion, the execution shape for identifying currently performed task
State identification information can be configured in the preset position in current task, and the preset position can be a preset identifications text
Part executes device-identification information for storing, and executing device-identification information can be 0,1 or a, b, and the embodiment of the present invention, which is not done, to be had
Body limitation.For example, starting next process when reaching starting the time 1 minute, judging the preset mark in currently performed task
Know in file with the presence or absence of execution device-identification information 1.
103, the execution device-identification information if it does not exist, then execute the pending task.
For example, currently being executed in the corresponding preset identifications file of task P1 under current process, there is no represent task execution
When the device-identification information 1 of completion, current process is exited, starts next process and executes pending task P2.For of the invention real
Example is applied, pending task is then executed there is no device-identification information is executed by judging, avoids in section at the same time
It is parallel to execute multiple tasks, to avoid task execution slow, improve the execution efficiency of timing iterative task.
For the embodiment of the present invention, specific application scenarios can be as follows, but not limited to this, comprising: current process
Under, currently performed task is TXT1, and pending task is TXT2, and task TXT1 is detected to reach starting time point 20 seconds, be opened
Next process is moved, judges that there is no execution device-identification informations 1 corresponding with task TXT1, current process is exited, next
Task TXT2 task is executed in process.
A kind of execution method of task provided in an embodiment of the present invention first detects whether to reach pending task corresponding
Starting time point judges whether there is the corresponding execution shape of currently performed task then when reaching the starting time point
State identification information, the execution device-identification information are not carried out completion for identifying currently performed task, described if it does not exist
Device-identification information is executed, then executes the pending task.When executing timing iterative task by linux system backstage,
No matter a upper task next task starting time point whether execute completion, can all execute next task and compare, this hair
It is bright by judging whether current task executes completion at task start time point, if current task executes completion, execute and work as
The corresponding next task of preceding task, realize current task execute complete after execute again it is corresponding with current task next
Task, to improve the execution efficiency of timing iterative task.
The embodiment of the present invention provides the execution method of another task, as shown in Figure 2, which comprises
201, the execution time interval between each task is configured.
Wherein, the execution time interval can be 1 minute, 2 minutes, 20 seconds, and the specific time sets according to the size of task
Fixed, the embodiment of the present invention is not specifically limited.Time interval is executed by configuring for task, realizes timing iterative task on time
It executes.
202, it detects whether to reach pending task corresponding starting time point.
Wherein, the task can carry out customized according to user, and for use in modification system operation mode, the present invention is real
It applies example to be not specifically limited, the execution of the task, is required to one corresponding process of starting, the pending task specifically may be used
Think one section of program code.The starting time point is at the time of starting to execute pending task.
203, when reaching the starting time point, the corresponding execution state mark of currently performed task is judged whether there is
Know information.
Wherein, the execution device-identification information is not carried out completion, the execution shape for identifying currently performed task
State identification information can be configured in the preset position in current task, and the preset position can be a preset identifications text
Part executes device-identification information for storing, and executing device-identification information can be 0,1 or a, b, and the embodiment of the present invention, which is not done, to be had
Body limitation.
For the embodiment of the present invention, if include: that currently performed task starts to execute before step 203, currently to hold
Capable task configures the execution device-identification information.Wherein, described to configure the execution state mark for currently performed task
Knowledge information is specifically as follows the configuration one in preset identifications file and represents the unfinished device-identification information of current task execution,
The preset identifications file is convenient for quickly judging whether there is the execution device-identification information.By to complete execution task
Current task configuration executes device-identification information, pending in order to determine whether to execute by judgement execution device-identification information
Task avoids executing multiple tasks parallel, to improve the execution efficiency of timing iterative task.
204a, if it does not exist the execution device-identification information, then execute the pending task.
For example, currently being executed in the corresponding preset identifications file of task C1 under current process, there is no represent task execution
When the device-identification information 1 of completion, current process is exited, starts next process and executes pending task C2.For of the invention real
Example is applied, pending task is then executed there is no device-identification information is executed by judging, avoids in section at the same time
It is parallel to execute multiple tasks, to avoid task execution slow, improve the execution efficiency of timing iterative task.
For the embodiment of the present invention, before step 204a further include: judge that the execution device-identification information is corresponding and work as
Whether the task of preceding execution executes completion, if so, deleting the execution device-identification information.For example, judging with execution
The task A1 of device-identification information 2 executes completion, then deletes and execute device-identification information 2.By the way that the task pair completed will be executed
The device-identification information answered is deleted, and avoids repeating current task, is executed task to start next process, is determined to improve
When iterative task execution efficiency.
For the embodiment of the present invention, step 204b arranged side by side, if it exists the execution device-identification information with step 204a,
Then forbid executing the pending task at the starting time point.For example, in the preset identifications file of currently performed task,
In the presence of device-identification information 1 is executed, then forbid executing pending task, exit next process of starting, continues to execute when advance
Task under journey.By forbidding executing the pending task, the case where multiple tasks execute parallel is avoided the occurrence of, to improve
The execution efficiency of task.
For the embodiment of the present invention, step 204b specifically can be with are as follows: the execution device-identification information if it exists then exists
Again detect whether that there are the execution device-identification informations after preset time period;The execution status indicator letter if it does not exist
Breath, then execute the pending task.Wherein, the preset time is to start the time at time point, after the preset time period
Again detection can be the starting time point for arriving again at preset time, then detects whether there is execution status indicator letter again
Breath executes device-identification information in order to when task executes always, be repeatedly detected whether there is, and improves detecting state mark letter
The precision of breath reduces the execution delay time of timing iterative task.
205, after the completion of each task execution, according between the adjustment execution time execution time of each task
Every.
For the embodiment of the present invention, step 205 is specifically as follows: after the completion of each task execution, obtaining each appoint
Business executes the execution time completed, and executes the execution time interval of task again according to the execution time adjustment.Wherein, described
Adjustment may include delay time lag or reduced time interval, can set according to the time longest time is executed in all tasks
Time shortest time setting is executed in fixed or all tasks, can also be set according to the average performance times of all tasks, this
Inventive embodiments are not specifically limited.For example, obtaining the time that TXT1, TXT2 are executed after the completion of task TXT1, TXT2 executes
Respectively 20 seconds, 30 seconds, preset time interval are 50 seconds, illustrate that script execution time interval is too long at this time, can reduce preset
Time interval is 40 seconds.By adjusting the execution time interval of each task, realizes and all tasks are completed with the least time
It executes, to improve the execution efficiency of timing iterative task.
For the embodiment of the present invention, specific application scenarios can be as follows, but not limited to this, comprising: configuration task
Execution time interval be 30 seconds, under current process, when currently performed task T1 starts to execute, in task T1 preset identifications text
In part configuration execute device-identification information 1, task T1 execute for 2 points 30 seconds 6 minutes, detection time reach 2 points 7 minutes it is whole when, starting
Next process, is ready to carry out task T2, and the judgement T1 that goes out on missions executes completions, deletes and executes device-identification information 1, exits and work as advance
Journey judges that there is no the corresponding execution device-identification informations 1 of task T1, then executes task T2 in next process, is task
T2 configuration executes device-identification information 2, and the execution time for getting task T1 completion execution task is 20 seconds, and detection time reaches
At 2: 30 7:, start third process, be ready to carry out task T3, judges there is execution state corresponding with T2 in task T2
Identification information 2 exits third process, forbids executing pending task T3, continues to execute task T2 in process, when according to executing
Between be spaced 30 seconds and continue to execute task T2 after, start the 4th process, the judgement T2 that goes out on missions executes completion, and deletion task T2 is preset
It identifies and configures execution state information 2 in file, exit the process of execution task T2, execute next in the 4th process
Business, and so on, the execution time for getting task T2 completion execution task is 50 seconds, since task T1, T2 executes completion
Time is respectively 20 seconds, 50 seconds, and the time of task is executed according to task T1, T2, in order to reduce execution time interval, in order to
The least time has executed T1, T2 task, and can reset preset time interval is 20 seconds.
The execution method of another kind task provided in an embodiment of the present invention first detects whether that reaching pending task corresponds to
Starting time point judge whether there is the corresponding execution of currently performed task then when reaching the starting time point
Device-identification information, the execution device-identification information are not carried out completion for identifying currently performed task, if it does not exist institute
Execution device-identification information is stated, then executes the pending task.Timing iterative task is being executed by linux system backstage
When, no matter a upper task next task starting time point whether execute completions, can all execute next task and compare,
Invention is by judging whether current task executes completion at task start time point, if current task executes completion, execute with
The corresponding next task of current task, realize current task execute complete after execute again it is corresponding with current task next
A task, to improve the execution efficiency of timing iterative task.
Further, the specific implementation as method shown in Fig. 1, what the embodiment of the present invention provided a kind of task executes dress
It sets, as shown in figure 3, the apparatus may include: detection unit 31, judging unit 32, execution unit 33.
Detection unit 31, for detecting whether reaching pending task corresponding starting time point;
Judging unit 32, it is corresponding for when reaching the starting time point, judging whether there is currently performed task
Execution device-identification information, the execution device-identification information is not carried out completion for identifying currently performed task;
Execution unit 33 executes institute if judging that there is no the execution device-identification informations for judging unit 32
State pending task.
A kind of executive device of task provided in an embodiment of the present invention first detects whether to reach pending task corresponding
Starting time point judges whether there is the corresponding execution shape of currently performed task then when reaching the starting time point
State identification information, the execution device-identification information are not carried out completion for identifying currently performed task, described if it does not exist
Device-identification information is executed, then executes the pending task.When executing timing iterative task by linux system backstage,
No matter a upper task next task starting time point whether execute completion, can all execute next task and compare, this hair
It is bright by judging whether current task executes completion at task start time point, if current task executes completion, execute and work as
The corresponding next task of preceding task, realize current task execute complete after execute again it is corresponding with current task next
Task, to improve the execution efficiency of timing iterative task.
Further, the specific implementation as method shown in Fig. 2, another task of offer of the embodiment of the present invention execute dress
Set, as shown in figure 4, the apparatus may include: detection unit 41, judging unit 42, execution unit 43, configuration unit 44, delete
Except unit 45, adjustment unit 46.
Detection unit 41, for detecting whether reaching pending task corresponding starting time point;
Judging unit 42, it is corresponding for when reaching the starting time point, judging whether there is currently performed task
Execution device-identification information, the execution device-identification information is not carried out completion for identifying currently performed task;
Execution unit 43 executes institute if judging that there is no the execution device-identification informations for judging unit 42
State pending task.
Further, the execution unit 43 includes:
Disabled module 4301, if judging that there is no the execution device-identification informations for judging unit 42, in institute
Starting time point is stated to forbid executing the pending task.
The detection unit 41 judges if being also used to judging unit 42 there are the execution device-identification information,
Again detect whether that there are the execution device-identification informations after preset time period.
The execution unit 43 judges if being also used to judging unit 42 there is no the execution device-identification information,
Execute the pending task.
Further, described device further include:
Configuration unit 44, if start to execute for currently performed task, to be held described in the configuration of currently performed task
Row device-identification information.
Further, described device further include: delete unit 45;
Whether the judging unit 42 is also used to judge the corresponding currently performed task of the execution device-identification information
Execute completion;
The deletion unit 45, if judging that execution device-identification information is corresponding currently performed for judging unit 42
Task execution is completed, then deletes the execution device-identification information.
The configuration unit 44 is also used to configure the execution time interval between each task.
Further, described device further include:
Adjustment unit 46, for adjusting institute according to the execution time of each task after the completion of each task execution
State execution time interval.
The executive device of another kind task provided in an embodiment of the present invention first detects whether that reaching pending task corresponds to
Starting time point judge whether there is the corresponding execution of currently performed task then when reaching the starting time point
Device-identification information, the execution device-identification information are not carried out completion for identifying currently performed task, if it does not exist institute
Execution device-identification information is stated, then executes the pending task.Timing iterative task is being executed by linux system backstage
When, no matter a upper task next task starting time point whether execute completions, can all execute next task and compare,
Invention is by judging whether current task executes completion at task start time point, if current task executes completion, execute with
The corresponding next task of current task, realize current task execute complete after execute again it is corresponding with current task next
A task, to improve the execution efficiency of timing iterative task.
Invention additionally discloses following proposals:
The execution method of A1, a kind of task characterized by comprising
It detects whether to reach pending task corresponding starting time point;
When reaching the starting time point, the corresponding execution status indicator letter of currently performed task is judged whether there is
Breath, the execution device-identification information are not carried out completion for identifying currently performed task;
The execution device-identification information if it does not exist then executes the pending task.
The execution method of A2, the task according to claim A1, which is characterized in that the method also includes:
The execution device-identification information if it exists was then forbidden executing the pending task at the starting time point.
The execution method of A3, the task according to claim A2, which is characterized in that the method also includes:
The execution device-identification information if it exists then detects whether that there are the execution shapes again after preset time period
State identification information;
The execution device-identification information if it does not exist then executes the pending task.
The execution method of A4, the task according to claim A1, which is characterized in that described to judge whether there is currently
Before the step of task of execution corresponding execution device-identification information, the method also includes:
If currently performed task starts to execute, the execution device-identification information is configured for currently performed task.
A5, according to the execution method of the described in any item tasks of claim A1-A4, which is characterized in that the method is also
Include:
Judge whether the corresponding currently performed task of the execution device-identification information executes completion;
If so, deleting the execution device-identification information.
A6, according to the execution method of the described in any item tasks of claim A1-A5, which is characterized in that the detection is
Before no the step of reaching pending task corresponding starting time point, the method also includes:
Configure the execution time interval between each task.
The execution method of A7, the task according to claim A6, which is characterized in that the method also includes:
After the completion of each task execution, the execution time interval is adjusted according to the execution time of each task.
B8, a kind of executive device of task characterized by comprising
Detection unit, for detecting whether reaching pending task corresponding starting time point;
Judging unit, for it is corresponding to judge whether there is currently performed task when reaching the starting time point
Device-identification information is executed, the execution device-identification information is not carried out completion for identifying currently performed task;
Execution unit, if judging for judging unit there is no the execution device-identification information, execute it is described to
Execution task.
The executive device of B9, the task according to claim B8, which is characterized in that the execution unit includes:
Disabled module, if judging that there are the execution device-identification informations for judging unit, in the starting
Between point forbid executing the pending task.
The executive device of B10, the task according to claim B9, which is characterized in that
The detection unit is judged there are the execution device-identification information if being also used to judging unit, default
Again detect whether that there are the execution device-identification informations after period;
The execution unit executes if being also used to judging unit judges that there is no the execution device-identification informations
The pending task.
The executive device of B11, the task according to claim B8, which is characterized in that described device further include:
If configuration unit configures the execution start to execute for currently performed task for currently performed task
Device-identification information.
B12, according to the executive device of the described in any item tasks of claim B8-B11, which is characterized in that described device
Further include: unit is deleted,
The judging unit, is also used to judge whether the corresponding currently performed task of the execution device-identification information is held
Row is completed;
The deletion unit, if judging to execute the corresponding currently performed task of device-identification information for judging unit
Completion is executed, then deletes the execution device-identification information.
B13, according to the executive device of the described in any item tasks of claim B8-B12, which is characterized in that
The configuration unit is also used to configure the execution time interval between each task.
The executive device of B14, the task according to claim B13, which is characterized in that described device further include:
Adjustment unit, after the completion of working as each task execution, according to the adjustment of the execution time of each task
Execute time interval.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment
" first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the execution method and dress of a kind of task according to an embodiment of the present invention
The some or all functions of some or all components in setting.The present invention is also implemented as described here for executing
Method some or all device or device programs (for example, computer program and computer program product).This
The program that the realization of sample is of the invention can store on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other
Form provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (10)
1. a kind of execution method of task characterized by comprising
It detects whether to reach pending task corresponding starting time point;
When reaching the starting time point, the corresponding execution device-identification information of currently performed task is judged whether there is,
The execution device-identification information is not carried out completion for identifying currently performed task, wherein the pending task and institute
Stating currently performed task is different tasks;
The execution device-identification information if it does not exist then executes the pending task;
Before described the step of detecting whether to reach pending task corresponding starting time point, the method also includes:
Configure the execution time interval between each task;
The method also includes: after the completion of each task execution, held according to the adjustment of the execution time of each task
Row time interval.
2. the execution method of task according to claim 1, which is characterized in that the method also includes:
The execution device-identification information if it exists was then forbidden executing the pending task at the starting time point.
3. the execution method of task according to claim 2, which is characterized in that the method also includes:
The execution device-identification information if it exists then detects whether that there are the execution state marks again after preset time period
Know information;
The execution device-identification information if it does not exist then executes the pending task.
4. the execution method of task according to claim 1, which is characterized in that it is described judge whether there is it is currently performed
Before the step of task corresponding execution device-identification information, the method also includes:
If currently performed task starts to execute, the execution device-identification information is configured for currently performed task.
5. the execution method of task according to claim 1-4, which is characterized in that the method also includes:
Judge whether the corresponding currently performed task of the execution device-identification information executes completion;
If so, deleting the execution device-identification information.
6. a kind of executive device of task characterized by comprising
Detection unit, for detecting whether reaching pending task corresponding starting time point;
Judging unit, for judging whether there is the corresponding execution of currently performed task when reaching the starting time point
Device-identification information, the execution device-identification information are not carried out completion for identifying currently performed task, wherein it is described to
Execution task is different tasks from the currently performed task;
Execution unit executes described pending if judging that there is no the execution device-identification informations for judging unit
Task;
Configuration unit is also used to configure the execution time interval between each task;
Described device further include: adjustment unit, after the completion of working as each task execution, when according to the execution of each task
Between adjust the execution time interval.
7. the executive device of task according to claim 6, which is characterized in that the execution unit includes:
Disabled module, if judging for judging unit there are the execution device-identification information, at the starting time point
Forbid executing the pending task.
8. the executive device of task according to claim 7, which is characterized in that
The detection unit, if being also used to judging unit judges that there are the execution device-identification informations, in preset time
Detect whether that there are the execution device-identification informations again after section;
The execution unit judges if being also used to judging unit there is no the execution device-identification information, execute described in
Pending task.
9. the executive device of task according to claim 6, which is characterized in that described device further include:
If configuration unit configures the execution state start to execute for currently performed task for currently performed task
Identification information.
10. according to the executive device of the described in any item tasks of claim 6-9, which is characterized in that described device further include: delete
Except unit,
The judging unit, is also used to judge whether the corresponding currently performed task of the execution device-identification information has executed
At;
The deletion unit, if judging to execute the corresponding currently performed task execution of device-identification information for judging unit
It completes, then deletes the execution device-identification information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510996993.7A CN105426257B (en) | 2015-12-25 | 2015-12-25 | The execution method and device of task |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510996993.7A CN105426257B (en) | 2015-12-25 | 2015-12-25 | The execution method and device of task |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105426257A CN105426257A (en) | 2016-03-23 |
CN105426257B true CN105426257B (en) | 2019-06-07 |
Family
ID=55504481
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510996993.7A Active CN105426257B (en) | 2015-12-25 | 2015-12-25 | The execution method and device of task |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105426257B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107441587A (en) * | 2016-05-31 | 2017-12-08 | 上海微创生命科技有限公司 | Infusion pump |
CN108459889B (en) * | 2018-01-23 | 2021-06-08 | 腾讯科技(深圳)有限公司 | Task execution method and device, storage medium and electronic device |
CN109686073B (en) * | 2019-01-23 | 2020-10-09 | 积成电子股份有限公司 | Method for automatically generating acquisition terminal tasks in batches |
CN110263830B (en) * | 2019-06-06 | 2021-06-08 | 北京旷视科技有限公司 | Image processing method, device and system and storage medium |
CN110502366B (en) * | 2019-07-15 | 2023-02-14 | 平安普惠企业管理有限公司 | Case execution method, device, equipment and computer readable storage medium |
JP6825686B1 (en) | 2019-12-17 | 2021-02-03 | 株式会社安川電機 | Production system, production method, and program |
CN112506639A (en) * | 2020-12-31 | 2021-03-16 | 河南信大网御科技有限公司 | Execution body scheduling and cleaning method, scheduling and cleaning device and pseudo OpenStack system |
CN115878648B (en) * | 2023-02-22 | 2023-05-05 | 成都成电医星数字健康软件有限公司 | Automatic adjustment method and device for data logic time sequence, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140528A (en) * | 2007-08-31 | 2008-03-12 | 中兴通讯股份有限公司 | Method, device and system for realizing timing tasks load equilibria in cluster |
CN101464810A (en) * | 2008-12-31 | 2009-06-24 | 金蝶软件(中国)有限公司 | Service program processing method and server |
CN101901164A (en) * | 2009-05-27 | 2010-12-01 | 北京金山软件有限公司 | Time plan scheduler module and method |
US8640137B1 (en) * | 2010-08-30 | 2014-01-28 | Adobe Systems Incorporated | Methods and apparatus for resource management in cluster computing |
CN103679392A (en) * | 2013-12-26 | 2014-03-26 | 拉卡拉支付有限公司 | Task scheduling processing method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9047129B2 (en) * | 2012-07-23 | 2015-06-02 | Adobe Systems Incorporated | Systems and methods for load balancing of time-based tasks in a distributed computing system |
CN103197969B (en) * | 2013-03-27 | 2017-02-08 | 百度在线网络技术(北京)有限公司 | Distributed timed task control device and method |
-
2015
- 2015-12-25 CN CN201510996993.7A patent/CN105426257B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140528A (en) * | 2007-08-31 | 2008-03-12 | 中兴通讯股份有限公司 | Method, device and system for realizing timing tasks load equilibria in cluster |
CN101464810A (en) * | 2008-12-31 | 2009-06-24 | 金蝶软件(中国)有限公司 | Service program processing method and server |
CN101901164A (en) * | 2009-05-27 | 2010-12-01 | 北京金山软件有限公司 | Time plan scheduler module and method |
US8640137B1 (en) * | 2010-08-30 | 2014-01-28 | Adobe Systems Incorporated | Methods and apparatus for resource management in cluster computing |
CN103679392A (en) * | 2013-12-26 | 2014-03-26 | 拉卡拉支付有限公司 | Task scheduling processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105426257A (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426257B (en) | The execution method and device of task | |
CN105511732B (en) | The display methods and device of page entry icon | |
US9262213B1 (en) | Dynamic suggestion of next task based on task navigation information | |
CA3023991A1 (en) | Visual workflow model | |
CN104932980B (en) | Software automatic testing method and device | |
EP2889767B1 (en) | Server provisioning based on job history analysis | |
CN109360076A (en) | The touching of businessman's order reaches method and device | |
CN104679532B (en) | kernel module loading method and device | |
CN104794049B (en) | Applied program testing method and device | |
EP3282407A1 (en) | Assembly line balancing apparatus, method and program | |
CN104461723B (en) | A kind of course control method, apparatus and system | |
CN109445797A (en) | Handle task executing method and device | |
CN108241496A (en) | The smooth upgrading method and device of application program | |
CN105260287A (en) | Method and device for updating parent task progress | |
CN106126326A (en) | Timing task management method and apparatus | |
CN108932191A (en) | Automated testing method, system, computer equipment and readable storage medium storing program for executing | |
CN109582543A (en) | Data retrogressive method and device | |
CN106326102A (en) | Test method and apparatus | |
CN106294129A (en) | Code coverage method of testing and device | |
CN112199180A (en) | Multitask scheduling method and device, electronic equipment and readable storage medium | |
CN109214692B (en) | E-book methods of marking and electronic equipment based on user's timing behavior | |
CN109241042A (en) | Data processing method, device and electronic equipment | |
CN105553767B (en) | Website backdoor file detection method and device | |
CN108509264A (en) | Overtime task dispatches system and method | |
CN110019207A (en) | Data processing method and device and script display methods and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220725 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |