Method for planing dispatching timing task

A timing task and planning technology, applied in the field of communication, can solve problems such as time drift, lack of flexibility, and time jump, and achieve the effect of solving correction problems, solving time drift, and ensuring accuracy

Inactive Publication Date: 2006-11-15
HUAWEI TECH CO LTD
View PDF0 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] 1. Unable to realize the planning and scheduling of arbitrarily complex timing tasks, lack of flexibility;
[0011] 2. Even for tasks executed at the same time every day, there will be time jumps at the beginning and end of daylight saving time;
[0013] 4. Use a single background thread to schedule and execute all scheduled tasks, and the processing ability is weak. When it takes a long time to execute a certain task, it is easy to cause time drift, that is, it is easy to delay the execution of other tasks;

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for planing dispatching timing task
  • Method for planing dispatching timing task
  • Method for planing dispatching timing task

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0049] The first embodiment provided by the present invention, such as figure 2 shown, including:

[0050] In step S201, the main thread registers a timed task, specifies a timed iterator, and puts the timed task into a task queue.

[0051] Step S202, waking up all the background threads in the waiting state, and then ending the main thread.

[0052] Step S203, the awakened background thread participates in thread competition, and only one background thread obtains the right to schedule a timed task.

[0053] When it is confirmed that the task queue is not empty, step S204 is executed, that is, the background thread that acquires the right to schedule a timed task takes out the timed task with the earliest execution time from the task queue;

[0054]Step S205, judging whether the execution time of the fetched timing task is greater than the current time, if greater than the current time, execute step S206, that is, wait, the waiting time is the execution time minus the curr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention relates to a method for planning and scheduling timed task. Its kernel lies in that based on timing iterator it utilizes at least two line processes to schedule and execute plan-scheduled timed task. Said invention can make the plan be self-contained by means of mode of timed iterator, so that it is favorable for implementing any complex plan. Besides, when the timing iterator is implemented, it can use a calendar algorithm, so that it can eliminate deviation of daylight saving time, and can ensure planning accuracy.

Description

technical field [0001] The invention relates to the communication field, in particular to a method for planning and dispatching timed tasks. Background technique [0002] With the development of information technology, the demand for planning and scheduling tasks is becoming more and more extensive. For example, enterprises need to plan and schedule each purpose or batch processing at night; users need to schedule alarm times according to the agreed schedule, and so on. [0003] The first prior art related to the present invention is a technical solution based on Java application program to realize task planning and scheduling. In this solution, a timer framework is introduced. Using this timer framework can make it easier for programmers to plan simple tasks. . In the Java timer framework, a queue is used to store all timing tasks, and a background thread is used to complete the scheduling and execution of all tasks. Its processing flow is as figure 1 shown, including: ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46G06Q10/06
Inventor 张磊龚华
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products