Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for obtaining timing task carrying-out time

A technology for executing time and timing tasks, which is applied in the field of communication

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

AI Technical Summary

Problems solved by technology

[0006] It can be seen from the technical solution of prior art 1 that it can only realize single-time plan scheduling through a special timin

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 obtaining timing task carrying-out time

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0065] The first embodiment provided by the present invention includes two parts:

[0066] Step 1. Define the timing date and time of the scheduled task in the timing iterator based on the Crontab string.

[0067] In this step, based on the Crontab string, set the Boolean array in the timing iterator to represent the date and time respectively, and then set the value in the Boolean array corresponding to the date and time of the scheduled task as the real value.

[0068] The following example describes the specific implementation process of this step in detail:

[0069] For example, five Boolean arrays are used to represent minutes, hours, days, months, and weeks respectively, and the lengths of the arrays are 60, 24, 31, 12, and 7 respectively. The value of true indicates that the time corresponding to the array meets the definition.

[0070] Assuming that a certain scheduled task is to be executed at 5 am every two days from the 1st to the 15th of each month, the crontab st...

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 obtaining execution time of timed task. Its kernel lies in that firstly, based on Crontab character string the planning date time of plan-scheduled task in timing iterator can be defined, then based on described timing iterator the next execution date time of plan-scheduled task can be obtained, so that said invention can utilize one timing iterator to obtain any complex timed task execution time.

Description

technical field [0001] The present invention relates to the communication field, in particular to a method for acquiring the execution time of a scheduled task. Background technique [0002] With the development of information technology, the requirements for planning and scheduling are becoming more and more extensive. For example, enterprises need to plan and schedule daily logs or evening batch processing; users need to schedule alarm times according to agreed plans, and so on. Therefore, there is an urgent need to develop applications that can implement planning and scheduling. [0003] crontab is a command of the Unix system. By defining simple character strings, it can complete complex plan definitions and provide the function of date scheduling. [0004] When using the crontab command to define a character string (hereinafter referred to as the crontab character string), the character string is separated into 5 parts by spaces: f1 f2 f3 f4 f5. Among them, f1 represe...

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
IPC IPC(8): G06Q10/06
Inventor 张磊龚华
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products