CN102902591A - 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
- CN102902591A CN102902591A CN2012103231831A CN201210323183A CN102902591A CN 102902591 A CN102902591 A CN 102902591A CN 2012103231831 A CN2012103231831 A CN 2012103231831A CN 201210323183 A CN201210323183 A CN 201210323183A CN 102902591 A CN102902591 A CN 102902591A
- Authority
- CN
- China
- Prior art keywords
- task
- tasks
- execution time
- length
- long
- 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.)
- Granted
Links
Images
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, relate in particular 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 can not be for a long time online terminal, automatic monitor station for example, the online terminal of these non-length because the geographic position (generally some supply power to less than the place) reason, can't directly power.The sensing equipment of monitoring station and collecting device adopt the mode of the common power supply of accumulator, sun power and wind-force to keep electric power more.If the equipment consumes power that normal charged on-line operation can be too fast for a long time, cause electricity shortage and out of service, in this case, this kind equipment adopts park mode more, reduce power consumption by timing operation, the communication frequency that reduces self and terminal management system, reach long playing purpose, 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 to execute the task according to the time sequencing of the task of reception, this kind tasks carrying mode causes the efficient of tasks carrying not high, because each task execution time there is no certain relation with the time of the task of reception, may exist first task execution time long, and follow-up task execution time is short, when this occurs reaching the standard grade 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 purpose of the embodiment of the invention is to provide task executing method and the online terminal of non-length of 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 invention is achieved in that on the one hand, and the task executing method of the online terminal of a kind of non-length is provided, and described method comprises:
Obtain the execution time of all tasks of the online terminal of non-length;
With all tasks by from being short to the ordering of long execution time;
Execute the task by the order after the ordering.
Optionally, described method also comprises before obtaining execution time of all tasks of the online terminal of non-length:
Inquire about whether iterative task is arranged in all tasks, if any, a task in the iterative task kept.
Optionally, described method also comprises before obtaining execution time of all tasks of the online terminal of non-length:
The execution time that acquisition tasks is carried out, and the sign of this task and the execution time of this task be kept in the sorting policy library.
On the other hand, provide a kind of non-length online terminal, described terminal comprises:
Acquiring unit is for the execution time of all tasks of obtaining the online terminal of non-length;
Sequencing unit is used for all tasks by sorting from being short to the long execution time;
Performance element is used for executing the task by the order after the ordering.
Optionally, described terminal also comprises:
The inquiry delete cells, whether be used for all tasks of inquiry has iterative task, if any, keep a task in the iterative task.
Optionally, described terminal also comprises:
Gather storage unit, be used for the execution time that acquisition tasks is carried out, and the sign of this task and the execution time of this task are kept in the sorting policy library.
In embodiments of the present invention, technical scheme provided by the invention is when carrying out tasks carrying, by the short long of execution time task is sorted, then execute the task by the order after the ordering, like this when tasks carrying, because the execution time, short task came the front, so it can be carried out first, can improve like this tasks carrying efficient of unit on-line time.
Description of drawings
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 purpose of the present invention, technical scheme and advantage clearer, 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, is 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 comprises as shown in Figure 1:
S11, the execution time of obtaining all tasks;
S12, with all tasks by from being short to the ordering of long execution time;
S13, by the ordering after order execute the task.
Method provided by the invention is when carrying out tasks carrying, by the short long of execution time task is sorted, then execute the task by the order after the ordering, like this when tasks carrying, because the execution time, short task came the front, so it can be carried out first, can improve like this tasks carrying efficient of unit on-line time.
Optionally, said method can also comprise before S11:
Inquire about whether iterative task is arranged in all tasks, if any, a task in the iterative task kept.
When this kind has iterative task, only keep the execution efficient that can further improve task in a plurality of iterative tasks, in actual applications, the problem that task duplication is carried out may appear in the online terminal of non-length, and said method can be avoided the execution of iterative task, improves the execution efficient of task.
Wherein, the definite of all tasks among the above-mentioned S11 can adopt following method, can task be sorted or merge by sorter to form new task, can improve like this execution efficient of task.Need to prove that sorter is to search corresponding sorting mode according to mission number (unique identification of task) in the sorting storehouse, then processes according to this sorting mode.Wherein above-mentioned sorting mode is specifically as follows, and the task merging of a plurality of same mission numbers is become one, and other mode can certainly be arranged, and 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 is carried out, and the sign (such as mission number or task names etc.) of task and the execution time of this task be kept in the sorting policy library.Wherein, this sorting policy library comprises the data carrier of preserving the sorting strategy and sorts the running program in storehouse.
But data carrier is software or the medium of any save data, such as relevant database, file, non-relational database.
Running program comprises the preservation of sorting strategy, revises, and extracts and study.Preserve and be used for a new task processing mode is saved in the sorting storehouse; Modification is specifically as follows: revise the user and upgrade existing task processing mode, extraction is specifically as follows: extraction is used to sorter that the sorting strategy of particular task is provided, study is specifically as follows: study is used for can adding up the Different treatments of this task after a new task is come in, and with 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 comprises as shown in Figure 2:
Acquiring unit 21 is for the execution time of all tasks of obtaining the online terminal of non-length;
Sequencing unit 22 is used for all tasks by sorting from being short to the long execution time;
Performance element 23 is used for executing the task by the order after the ordering.
Optionally, above-mentioned terminal also comprises:
Inquiry delete cells 24, whether be used for all tasks of inquiry has iterative task, if any, keep a task in the iterative task.
Optionally, above-mentioned terminal also comprises:
Gather storage unit 25, be used for the execution time that acquisition tasks is carried out, and the sign of this task and the execution time of this task are kept in the sorting policy library.
Terminal provided by the invention is when carrying out tasks carrying, by the short long of execution time task is sorted, then execute the task by the order after the ordering, like this when tasks carrying, because the execution time, short task came the front, so it can be carried out first, can improve like this tasks carrying efficient of unit on-line time.
It should be noted that in above-described embodiment that included unit is just divided 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 that realizes in the various embodiments described above method is to come the relevant hardware of instruction to finish by program, corresponding program can be stored in the computer read/write memory medium, described storage medium is such as ROM/RAM, disk or CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (6)
1. the task executing method of the online terminal of non-length is characterized in that, described method comprises:
Obtain the execution time of all tasks of the online terminal of non-length;
With all tasks by from being short to the ordering of long execution time;
Execute the task by the order after the ordering.
2. method according to claim 1 is characterized in that, the execution time that described method is obtained all tasks of the online terminal of non-length also comprises before:
Inquire about whether iterative task is arranged in all tasks, if any, a task in the iterative task kept.
3. method according to claim 1 is characterized in that, the execution time that described method is obtained all tasks of the online terminal of non-length also comprises before:
The execution time that acquisition tasks is carried out, and the sign of this task and the execution time of this task be kept in the sorting policy library.
4. online terminal of non-length is characterized in that described terminal comprises:
Acquiring unit is for the execution time of all tasks of obtaining the online terminal of non-length;
Sequencing unit is used for all tasks by sorting from being short to the long execution time;
Performance element is used for executing the task by the order after the ordering.
5. terminal according to claim 4 is characterized in that, described terminal also comprises:
The inquiry delete cells, whether be used for all tasks of inquiry has iterative task, if any, keep a task in the iterative task.
6. terminal according to claim 4 is characterized in that, described terminal also comprises:
Gather storage unit, be used for the execution time that acquisition tasks is carried out, and the execution time of this task identification and this task is kept in the sorting policy library.
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 true CN102902591A (en) | 2013-01-30 |
CN102902591B 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 (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217418A (en) * | 2007-12-28 | 2008-07-09 | 西安西电捷通无线网络通信有限公司 | A multitask dispatching method applied in network performance test |
CN101576831A (en) * | 2008-05-07 | 2009-11-11 | 万德洪 | Distributed calculating system and realization method |
CN101968750A (en) * | 2010-10-15 | 2011-02-09 | 珠海举天软件科技有限公司 | Computer system and working method thereof |
CN102053610A (en) * | 2010-12-24 | 2011-05-11 | 深圳市天维尔通讯技术有限公司 | Intelligent operation and maintenance method and system aiming at automatic monitoring systems |
CN102208222A (en) * | 2011-03-29 | 2011-10-05 | 中广核工程有限公司 | Control method and system thereof of nuclear power plant operation |
CN102214139A (en) * | 2011-06-01 | 2011-10-12 | 北京航空航天大学 | Automatic test performance control and debugging method facing distributed system |
CN102479085A (en) * | 2010-11-30 | 2012-05-30 | 中国人民解放军国防科学技术大学 | Agile satellite task planning method |
US20120159507A1 (en) * | 2010-12-17 | 2012-06-21 | Kwon Ki-Seok | Compiling apparatus and method of a multicore device |
-
2012
- 2012-09-04 CN CN201210323183.1A patent/CN102902591B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217418A (en) * | 2007-12-28 | 2008-07-09 | 西安西电捷通无线网络通信有限公司 | A multitask dispatching method applied in network performance test |
CN101576831A (en) * | 2008-05-07 | 2009-11-11 | 万德洪 | Distributed calculating system and realization method |
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 |
US20120159507A1 (en) * | 2010-12-17 | 2012-06-21 | Kwon Ki-Seok | Compiling apparatus and method of a multicore device |
CN102053610A (en) * | 2010-12-24 | 2011-05-11 | 深圳市天维尔通讯技术有限公司 | Intelligent operation and maintenance method and system aiming at automatic monitoring systems |
CN102208222A (en) * | 2011-03-29 | 2011-10-05 | 中广核工程有限公司 | Control method and system thereof of nuclear power plant operation |
CN102214139A (en) * | 2011-06-01 | 2011-10-12 | 北京航空航天大学 | Automatic test performance control and debugging method facing distributed system |
Also Published As
Publication number | Publication date |
---|---|
CN102902591B (en) | 2015-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104317800A (en) | Hybrid storage system and method for mass intelligent power utilization data | |
CN107404674A (en) | A kind of power information acquisition terminal acquisition tasks priority scheduling control method | |
CN104391954A (en) | Database log processing method and device | |
CN104298736A (en) | Method and device for aggregating and connecting data as well as database system | |
CN102880854B (en) | Distributed processing and Hash mapping-based outdoor massive object identification method and system | |
CN107870981A (en) | Electronic installation, the method and storage medium of tables of data filing processing | |
CN103902593A (en) | Data transfer method and device | |
CN105677742A (en) | Method and apparatus for storing files | |
CN103037109B (en) | Multicore equipment energy consumption management method and device | |
CN103092867A (en) | Method and system for managing data, and data analyzing device | |
CN101556678A (en) | Processing method of batch processing services, system and service processing control equipment | |
CN104461710A (en) | Method and device for processing tasks | |
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 | |
CN103235811A (en) | Data storage method and device | |
CN104636240A (en) | Method for acquiring information report and terminal | |
CN106909407A (en) | Background application program closing method and device and terminal | |
CN103136244A (en) | Parallel data mining method and system based on cloud computing platform | |
CN103198157B (en) | A kind of compression storage processing method of telluric electricity field data | |
CN102262562A (en) | Task processing method and system | |
CN104933153A (en) | Collaboration-based solid-state drive memory system performance improving method | |
CN110636107A (en) | Power grid data interaction system based on 5g communication and interaction method thereof | |
CN102902591B (en) | Task execution method of not long on-line terminal and not long on-line terminal | |
CN103325277A (en) | Parking guidance system and working process | |
CN109765986A (en) | Power-saving control method, terminal device and computer readable storage medium |
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 |