CN102902591B - Task execution method of not long on-line terminal and not long on-line terminal - Google Patents
Task execution method of not long on-line terminal and not long on-line terminal Download PDFInfo
- Publication number
- CN102902591B CN102902591B CN201210323183.1A CN201210323183A CN102902591B CN 102902591 B CN102902591 B CN 102902591B CN 201210323183 A CN201210323183 A CN 201210323183A CN 102902591 B CN102902591 B CN 102902591B
- Authority
- CN
- China
- Prior art keywords
- task
- sorting
- tasks
- execution time
- length
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention is applicable to the communication field and provides a task execution method of a not long on-line terminal and the not long on-line terminal. The method includes obtaining execution time of all tasks of the not long on-line terminal; sequencing the execution time of all tasks from short to long; and executing the tasks according to the sequence after sequencing. The technical scheme has the advantages that the task execution efficiency is high.
Description
Technical field
The invention belongs to computer realm, particularly relate to task executing method and the online terminal of non-length of the online terminal of a kind of non-length.
Background technology
The online terminal of non-length refers to terminal that can not be online for a long time, such as automatic monitor station, the online terminal of these non-length due to geographic position (generally some supply power to less than place) reason, cannot directly power.The mode that the sensing equipment of monitoring station and collecting device many employings accumulator, sun power and wind-force are powered jointly maintains electric power.If the consumes power that the long normal charged on-line operation of equipment can be too fast, cause electricity shortage and out of service, in this case, this kind equipment many employings park mode, power consumption is reduced by timing operation, the communication frequency that reduces self and terminal management system, reach long playing object, so this terminal is commonly referred to as the online terminal of non-length.
The tasks carrying mode of the online terminal of existing non-length is executed the task according to the time sequencing of the task of reception, this kind of tasks carrying mode causes the efficiency of tasks carrying not high, because each task execution time there is no certain relation with the time of the task of reception, first task execution time may be there is long, and follow-up task execution time is short, this is when reaching the standard grade appears in the online terminal of non-length, may once reach the standard grade can only the few task of number of executions, so it has the inefficient shortcoming of tasks carrying.
Summary of the invention
The object of the embodiment of the present invention is the task executing method and the online terminal of non-length that provide the online terminal of a kind of non-length, and it solves the inefficient problem of tasks carrying of prior art.
The embodiment of the present invention is achieved in that provide the task executing method of the online terminal of a kind of non-length, described method comprises on the one hand:
Obtain the execution time of all tasks of the online terminal of non-length;
All tasks are sorted by from being short to the long execution time;
Execute the task by the order after sequence.
Optionally, described method also comprises before obtaining the execution time of all tasks of the online terminal of non-length:
Inquire about in all tasks and whether have iterative task, if any, retain a task in iterative task.
Optionally, described method also comprises before obtaining the execution time of all tasks of the online terminal of non-length:
The execution time that acquisition tasks performs, and the mark of this task and the execution time of this task are kept in sorting policy library.
On the other hand, provide a kind of non-length online terminal, described terminal comprises:
Acquiring unit, for obtaining the execution time of all tasks of the online terminal of non-length;
Sequencing unit, for sorting all tasks by from being short to the long execution time;
Performance element, for executing the task by the order after sequence.
Optionally, described terminal also comprises:
Inquiry delete cells, for inquiring about in all tasks whether have iterative task, if any, retain a task in iterative task.
Optionally, described terminal also comprises:
Gather storage unit, for the execution time that acquisition tasks performs, and the mark of this task and the execution time of this task are kept in sorting policy library.
In embodiments of the present invention, technical scheme provided by the invention is when carrying out tasks carrying, by the short length of execution time, task is sorted, then execute the task by the order after sequence, like this when tasks carrying, before task that the execution time is short comes, so it can first perform, the tasks carrying efficiency of unit on-line time can be improved like this.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the task executing method of the online terminal of a kind of non-length provided by the invention;
Fig. 2 is the structural drawing of the online terminal of a kind of non-length provided by the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The specific embodiment of the invention provides the task executing method of the online terminal of a kind of non-length, and the method as shown in Figure 1, comprising:
S11, obtain execution time of all tasks;
S12, by all tasks by from being short to the sequence of long execution time;
S13, by sequence after order execute the task.
Method provided by the invention is when carrying out tasks carrying, by the short length of execution time, task is sorted, then execute the task by the order after sequence, like this when tasks carrying, before task that the execution time is short comes, so it can first perform, the tasks carrying efficiency of unit on-line time can be improved like this.
Optionally, said method can also comprise before S11:
Inquire about in all tasks and whether have iterative task, if any, retain a task in iterative task.
When this kind has an iterative task, one of only retaining in multiple iterative task further can improve the execution efficiency of task, and in actual applications, the problem that task duplication performs may appear in the online terminal of non-length, and said method can avoid the execution of iterative task, improve the execution efficiency of task.
Wherein, the determination of all tasks in above-mentioned S11 can adopt following method, task can be carried out sorting or merging forming new task by sorter, can improve the execution efficiency of task like this.It should be noted that, sorter in sorting storehouse, searches corresponding sorting mode, then according to this sorting mode process according to mission number (unique identification of task).Wherein above-mentioned sorting mode is specifically as follows, and the task merging of multiple same mission number is become one, can certainly have other mode, the present invention does not limit to the concrete methods of realizing of above-mentioned sorting.
Optionally, said method can also comprise before S11:
The execution time that acquisition tasks performs, and the mark (such as mission number or task names etc.) of task and the execution time of this task are kept in sorting policy library.Wherein, this sorting policy library comprises the running program in data carrier and the sorting storehouse of preserving sorting strategy.
Data carrier is any software or medium of preserving data, such as relevant database, file, non-relational database.
Running program comprises the preservation of sorting strategy, amendment, extracts and study.Preserve and be used for new task processing mode being saved in sorting storehouse; Amendment is specifically as follows: amendment user upgrades existing task processing mode, extraction is specifically as follows: extract the sorting strategy for providing particular task for sorter, study is specifically as follows: study is used for the Different treatments adding up this task after a new task is come in, and using the default treatment strategy of the most frequently used mode as this task.
The specific embodiment of the invention also provides a kind of non-length online terminal, and this terminal as shown in Figure 2, comprising:
Acquiring unit 21, for obtaining the execution time of all tasks of the online terminal of non-length;
Sequencing unit 22, for sorting all tasks by from being short to the long execution time;
Performance element 23, for executing the task by the order after sequence.
Optionally, above-mentioned terminal also comprises:
Inquiry delete cells 24, for inquiring about in all tasks whether have iterative task, if any, retain a task in iterative task.
Optionally, above-mentioned terminal also comprises:
Gather storage unit 25, for the execution time that acquisition tasks performs, and the mark of this task and the execution time of this task are kept in sorting policy library.
Terminal provided by the invention is when carrying out tasks carrying, by the short length of execution time, task is sorted, then execute the task by the order after sequence, like this when tasks carrying, before task that the execution time is short comes, so it can first perform, the tasks carrying efficiency of unit on-line time can be improved like this.
It should be noted that in above-described embodiment, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in the various embodiments described above method is that the hardware that can carry out instruction relevant by program has come, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1. a task executing method for the online terminal of non-length, is characterized in that, described method comprises:
The execution time that acquisition tasks performs, and the mark of this task and the execution time of this task are kept in sorting policy library; Described sorting policy library comprises the running program in data carrier and the sorting storehouse of preserving sorting strategy; Described running program comprises the preservation of sorting strategy, amendment, extracts and study;
Obtain the execution time of all tasks of the online terminal of non-length, task is undertaken sorting or merging forming new task by sorter by described task;
All tasks are sorted by from being short to the long execution time;
Execute the task by the order after sequence.
2. method according to claim 1, is characterized in that, described method also comprises before obtaining the execution time of all tasks of the online terminal of non-length:
Inquire about in all tasks and whether have iterative task, if any, retain a task in iterative task.
3. the online terminal of non-length, is characterized in that, described terminal comprises:
Gather storage unit, for the execution time that acquisition tasks performs, and the execution time of this task identification and this task is kept in sorting policy library; Described sorting policy library comprises the running program in data carrier and the sorting storehouse of preserving sorting strategy; Described running program comprises the preservation of sorting strategy, amendment, extracts and study;
Acquiring unit, for obtaining the execution time of all tasks of the online terminal of non-length, task is undertaken sorting or merging forming new task by sorter by described task;
Sequencing unit, for sorting all tasks by from being short to the long execution time;
Performance element, for executing the task by the order after sequence.
4. terminal according to claim 3, is characterized in that, described terminal also comprises:
Inquiry delete cells, for inquiring about in all tasks whether have iterative task, if any, retain a task in iterative task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210323183.1A CN102902591B (en) | 2012-09-04 | 2012-09-04 | Task execution method of not long on-line terminal and not long on-line terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210323183.1A CN102902591B (en) | 2012-09-04 | 2012-09-04 | Task execution method of not long on-line terminal and not long on-line terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102902591A CN102902591A (en) | 2013-01-30 |
CN102902591B true CN102902591B (en) | 2015-03-11 |
Family
ID=47574837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210323183.1A Active CN102902591B (en) | 2012-09-04 | 2012-09-04 | Task execution method of not long on-line terminal and not long on-line terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102902591B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101968750A (en) * | 2010-10-15 | 2011-02-09 | 珠海举天软件科技有限公司 | Computer system and working method thereof |
CN102208222A (en) * | 2011-03-29 | 2011-10-05 | 中广核工程有限公司 | Control method and system thereof of nuclear power plant operation |
CN102479085A (en) * | 2010-11-30 | 2012-05-30 | 中国人民解放军国防科学技术大学 | Agile satellite task planning method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217418B (en) * | 2007-12-28 | 2010-08-11 | 西安西电捷通无线网络通信有限公司 | A multitask dispatching method applied in network performance test |
CN101576831A (en) * | 2008-05-07 | 2009-11-11 | 万德洪 | Distributed calculating system and realization method |
KR101738641B1 (en) * | 2010-12-17 | 2017-05-23 | 삼성전자주식회사 | Apparatus and method for compilation of program on multi core system |
CN102053610A (en) * | 2010-12-24 | 2011-05-11 | 深圳市天维尔通讯技术有限公司 | Intelligent operation and maintenance method and system aiming at automatic monitoring systems |
CN102214139B (en) * | 2011-06-01 | 2013-11-27 | 北京航空航天大学 | Automatic test performance control and debugging method facing distributed system |
-
2012
- 2012-09-04 CN CN201210323183.1A patent/CN102902591B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101968750A (en) * | 2010-10-15 | 2011-02-09 | 珠海举天软件科技有限公司 | Computer system and working method thereof |
CN102479085A (en) * | 2010-11-30 | 2012-05-30 | 中国人民解放军国防科学技术大学 | Agile satellite task planning method |
CN102208222A (en) * | 2011-03-29 | 2011-10-05 | 中广核工程有限公司 | Control method and system thereof of nuclear power plant operation |
Also Published As
Publication number | Publication date |
---|---|
CN102902591A (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104317800A (en) | Hybrid storage system and method for mass intelligent power utilization data | |
CN102685018B (en) | A kind of method of network instant communication information processing, system and instant communication device | |
CN107404674A (en) | A kind of power information acquisition terminal acquisition tasks priority scheduling control method | |
CN104298736A (en) | Method and device for aggregating and connecting data as well as database system | |
CN106503008B (en) | File storage method and device and file query method and device | |
CN102158550B (en) | IEC61850-based power quality transient data transmission method | |
CN105786410A (en) | Method for increasing processing speed of data storage system and data storage system | |
CN106909407A (en) | Background application program closing method and device and terminal | |
CN104252632A (en) | UHF RFID electronic label device with sensing function, and application method thereof | |
CN103488564A (en) | Multichannel test data compressing and merging method for distributed real-time test system | |
CN103019891A (en) | Method and system for restoring deleted file | |
CN106502875A (en) | A kind of daily record generation method and system based on cloud computing | |
CN102521374A (en) | Intelligent data aggregation method and intelligent data aggregation system based on relational online analytical processing | |
CN103198157B (en) | A kind of compression storage processing method of telluric electricity field data | |
CN103136244A (en) | Parallel data mining method and system based on cloud computing platform | |
CN102262562A (en) | Task processing method and system | |
CN102685222B (en) | A kind of cloud SRM device for electric power system | |
CN102937956A (en) | Method and device for storing real-time messages in intelligent substation | |
CN102937923B (en) | A kind of method of automatic preservation user interface state | |
CN102902591B (en) | Task execution method of not long on-line terminal and not long on-line terminal | |
CN102479211A (en) | Mass data processing system and method on basis of database | |
CN103325277A (en) | Parking guidance system and working process | |
CN103823812A (en) | System data management method | |
CN107562914B (en) | Resource mask based demand response resource rapid positioning method | |
CN114116908A (en) | Data management method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |