[go: up one dir, main page]

CN102360312B - Equipment scheduling method - Google Patents

Equipment scheduling method Download PDF

Info

Publication number
CN102360312B
CN102360312B CN 201110336297 CN201110336297A CN102360312B CN 102360312 B CN102360312 B CN 102360312B CN 201110336297 CN201110336297 CN 201110336297 CN 201110336297 A CN201110336297 A CN 201110336297A CN 102360312 B CN102360312 B CN 102360312B
Authority
CN
China
Prior art keywords
lock
equipment
task
execution
scheduling engine
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.)
Expired - Fee Related
Application number
CN 201110336297
Other languages
Chinese (zh)
Other versions
CN102360312A (en
Inventor
杨乃贵
何志强
徐二强
丁涛
李去病
王雍
武宏波
康吉全
曹益陆
孟凯
李铮
兰涛
郝中杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HENAN TENGLONG INFORMATION ENGINEERING Co Ltd
MEASUREMENT CENTER OF HENAN ELECTRIC POWER CO Ltd
Original Assignee
HENAN TENGLONG INFORMATION ENGINEERING Co Ltd
MEASUREMENT CENTER OF HENAN ELECTRIC POWER CO Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by HENAN TENGLONG INFORMATION ENGINEERING Co Ltd, MEASUREMENT CENTER OF HENAN ELECTRIC POWER CO Ltd filed Critical HENAN TENGLONG INFORMATION ENGINEERING Co Ltd
Priority to CN 201110336297 priority Critical patent/CN102360312B/en
Publication of CN102360312A publication Critical patent/CN102360312A/en
Application granted granted Critical
Publication of CN102360312B publication Critical patent/CN102360312B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Time Recorders, Dirve Recorders, Access Control (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an equipment scheduling method. The problem of equipment contention is solved by using an equipment locking technology. With the requirement for using of one function of a piece of equipment, a task is required to ask a scheduling engine for a lock which corresponds to the function; and only when the task obtains the lock, the equipment can be used. During the execution ofa plurality of tasks, the tasks can be concurrently executed. Only when some pieces of equipment are required to be used, long waiting time can be required. But overall speaking, by adoption of the equipment locking technology, compared with a method for sequentially executing the tasks, the method provided by the invention has the advantages that: the waiting time of the tasks is greatly reduced; the utilization rate of the equipment can be greatly improved; and the execution time of the plurality of tasks is reduced.

Description

A kind of equipment uses dispatching method
Technical field
The present invention relates to a kind of equipment and use dispatching method, the equipment that relates in particular in a kind of electric-power metering business application system uses dispatching method.
Background technology
At present, the function of electric-power metering business application system mainly is to support tasks such as the arrival reception of Utilities Electric Co.'s metering outfit (as electric energy meter, mutual inductor), warehouse-in, calibrating, outbound, and wherein each task all needs to coordinate warehousing system, automatic calibration streamline, RFID asset identification systems etc. and finishes.Warehousing system is made up of hardware devices such as warehouse, streamline, carrying implement and control system; The automatic calibration streamline is made up of calibration equipment, streamline and control system; The RFID asset identification systems is made up of RFID recognizer and control system.Owing to have more hardware device in the total system, and some hardware device has only a cover, when carrying out different tasks so at the same time, can have the contention problem of equipment.
Scheduler module in the electric-power metering business application system comprises dispatch interface and the scheduling engine of equipment, and the equipment scheduling interface provides two kinds of interface modes, the one, WebService, and the 2nd, the publicly-owned method of class, different tasks can be used different interfaces; Scheduler module is that these tasks are sorted for the solution of device contention problem, and another task of the complete back of task is restarted.For example need to put in storage and examine and determine two tasks, and the equipment that the warehouse-in task need be used there are RFID recognizer, warehouse, carrying implement, storage streamline; The equipment that verification task need be used has warehouse, carrying implement, storage streamline, calibration equipment, calibrating streamline.Then these two tasks are using warehouse, carrying implement, these three equipment of storage streamline to have conflict.In order normally to finish this two tasks, need artificially two tasks to be sorted at present, restart another task after a task is finished, solve the collision problem of these equipment.But this method has following shortcoming: the firstth, and usage ratio of equipment is low; Second is that two task executions are serials, and the execution time is longer.Therefore how to guarantee that usage ratio of equipment is the highest, and the influence that farthest reduces task execution efficient is problem solved by the invention.
Summary of the invention
The equipment that the purpose of this invention is to provide in a kind of electric-power metering business application system uses dispatching method, improves usage ratio of equipment.
The present invention adopts following technical proposals: a kind of equipment uses dispatching method, may further comprise the steps: (1), initialization: the initialization information of equipment, functions of the equipments, equipment lock, equipment being locked corresponding type is loaded in the system cache, and the scheduling engine of supply equipment uses;
(2), when task need be used the function of equipment, the execution of suspended task sends the request of intending application equipment lock to the dispatch interface of equipment, described request comprises the characteristic information of equipment lock and the characteristic information of task self;
(3), when the dispatch interface of equipment receives the information of request lock of task, give the scheduling engine of equipment;
(4), after the scheduling engine of equipment receives the information of request lock of task, query facility lock operating position table checks whether this lock occupied, if, execution in step (5) then; If not, execution in step (10) then;
(5), the scheduling engine checkout facility of equipment lock type corresponding tables, judge: if this lock is unique lock execution in step (6); If be limited shared lock then execution in step (8); If be complete shared lock then execution in step (10);
(6), the scheduling engine of equipment is occupied by this lock of dispatch interface notice task;
(7), when the task of taking this lock discharges lock, scheduling engine checkout facility lock operating position table, whether inquiry has the task of waiting for this lock: if, then according to the order execution in step (10) of priority; If not, continue to wait for;
(8), the scheduling engine of equipment is according to the information of request lock, judges whether current task meets shared service condition, if, execution in step (10); If not, execution in step (9);
(9), the scheduling engine of equipment makes regular check on the task list of waiting for this lock, whether have the task of possessing shared condition, if do not have, continue to wait for if checking; If have, execution in step (10);
(10), the scheduling engine of the equipment task of giving this lock of request with this lock by dispatch interface, and in equipment lock operating position table, add a record, when current task is given back lock, delete this record.
Described equipment lock operating position table comprises the tabulation of equipment lock, current use task, task to be used.
The equipment that the present invention is used for the electric-power metering business application system uses dispatching method, utilizes the method for software " lock " to solve the contention problem of equipment.When a task need be used certain function of certain equipment, need only when this task is obtained this lock, could use this equipment to the corresponding lock of this function of equipment scheduling engine requests.When carrying out a plurality of task, these tasks can executed in parallel.Only when needs use some equipment, just may cause some waits, but overall, owing to used " lock " method, method with respect to the execution of task order, the present invention has significantly reduced the stand-by period of task, can greatly improve usage ratio of equipment and a plurality of task executions times of reduction.
Description of drawings
Fig. 1 is schematic diagram of the present invention;
Fig. 2 is workflow diagram of the present invention.
Embodiment
Present device uses dispatching method to be adopted as the contention problem that technology that equipment adds " lock " solves equipment, " lock " is a kind of solution that puts forward for the contention problem that solves shared resource in a kind of software systems, lock herein, it or not the lock on the real physical, but a kind of data structure of software, can regard token as, the software industry generally is referred to as " lock ", generally be exactly that task is only held this token and could be used relevant equipment, the following apparatus for establishing lock table of describing is described and how to be locked.In the database of electric-power metering business application system, set up an equipment lock table, this table record each equipment corresponding " lock " reach the type of " lock ".Equipment can corresponding a plurality of " locks " at different functions, and " lock " type includes unique lock, limited shared lock and complete shared lock three classes.Unique lock represents that this equipment can only allow a task to use at one time; Limited shared lock represents that this equipment allows two and two above tasks to use simultaneously when meeting certain condition; Shared lock represents that this equipment allows a plurality of tasks to use simultaneously fully.As shown in Figure 1, when task need be used certain function of certain equipment, the execution of suspended task sent the information of asking corresponding lock by the equipment scheduling interface to the equipment scheduling engine, and the equipment scheduling engine returns the lock of request to task.
As shown in Figure 2, the present invention specifically may further comprise the steps:
(1), initialization, the initialization information of equipment, functions of the equipments, equipment lock, type that the equipment lock is corresponding is loaded in the system cache, the supply equipment scheduling engine uses;
(2), when task need be used the function of equipment, the execution of suspended task sends the request of intending application equipment lock to the dispatch interface of equipment, described request comprises the characteristic information of equipment lock and the characteristic information of task self; Use this equipment how long to wait as task names, task type, task implementation progress, needs;
(3), when the dispatch interface of equipment receives the lock information of task, give the scheduling engine of equipment;
(4), after the scheduling engine of equipment receives lock information, query facility lock operating position table checks whether this lock occupied, if, execution in step (5) then; If not, execution in step (10) then; Wherein the content of equipment lock operating position table record comprises the tabulation of equipment lock, current use task, task to be used.
(5), the scheduling engine checkout facility of equipment lock type corresponding tables, judge: if this lock is unique lock execution in step (6); If be limited shared lock then execution in step (8); If be complete shared lock then execution in step (10);
(6), the scheduling engine of equipment is occupied by this lock of dispatch interface notice task;
(7), when the task of taking this lock discharges lock, scheduling engine checkout facility lock operating position table, whether inquiry has the task of waiting for this lock: if, then according to the order execution in step (10) of priority; If not, continue to wait for;
(8), the scheduling engine of equipment is according to the information of the lock of task requests, judges whether current task meets shared service condition, if, execution in step (10); If not, execution in step (9);
(9), the scheduling engine of equipment makes regular check on the task list of waiting for this lock, whether have the task of possessing shared condition, if do not have, continue to wait for if checking; If have, execution in step (10);
(10), the scheduling engine of equipment is given this lock by dispatch interface the task of this lock of request, and in equipment lock operating position table, add a record, record this lock, the current use task of this lock, task to be used, when current task is given back lock, delete this record.

Claims (2)

1. an equipment uses dispatching method, it is characterized in that: may further comprise the steps: (1), initialization: the initialization information of equipment, functions of the equipments, equipment lock, equipment being locked corresponding type is loaded in the system cache, and the scheduling engine of supply equipment uses;
(2), when task need be used the function of equipment, the execution of suspended task sends the request of intending application equipment lock to the dispatch interface of equipment, described request comprises the characteristic information of equipment lock and the characteristic information of task self;
(3), when the dispatch interface of equipment receives the information of request lock of task, give the scheduling engine of equipment;
(4), after the scheduling engine of equipment receives the information of request lock of task, query facility lock operating position table checks whether this lock occupied, if, execution in step (5) then; If not, execution in step (10) then;
(5), the scheduling engine checkout facility of equipment lock type corresponding tables, judge: if this lock is unique lock execution in step (6); If be limited shared lock then execution in step (8); If be complete shared lock then execution in step (10);
(6), the scheduling engine of equipment is occupied by this lock of dispatch interface notice task;
(7), when the task of taking this lock discharges lock, scheduling engine checkout facility lock operating position table, whether inquiry has the task of waiting for this lock: if, then according to the order execution in step (10) of priority; If not, continue to wait for;
(8), the scheduling engine of equipment is according to the information of request lock, judges whether current task meets shared service condition, if, execution in step (10); If not, execution in step (9);
(9), the scheduling engine of equipment makes regular check on the task list of waiting for this lock, whether have the task of possessing shared condition, if do not have, continue to wait for if checking; If have, execution in step (10);
(10), the scheduling engine of the equipment task of giving this lock of request with this lock by dispatch interface, and in equipment lock operating position table, add a record, when current task is given back lock, delete this record.
2. equipment according to claim 1 uses dispatching method, it is characterized in that: described equipment lock operating position table comprises the task list of equipment lock, current use task, waiting facilities lock.
CN 201110336297 2011-10-31 2011-10-31 Equipment scheduling method Expired - Fee Related CN102360312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110336297 CN102360312B (en) 2011-10-31 2011-10-31 Equipment scheduling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110336297 CN102360312B (en) 2011-10-31 2011-10-31 Equipment scheduling method

Publications (2)

Publication Number Publication Date
CN102360312A CN102360312A (en) 2012-02-22
CN102360312B true CN102360312B (en) 2013-09-11

Family

ID=45585643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110336297 Expired - Fee Related CN102360312B (en) 2011-10-31 2011-10-31 Equipment scheduling method

Country Status (1)

Country Link
CN (1) CN102360312B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9939792B2 (en) * 2014-12-30 2018-04-10 Futurewei Technologies, Inc. Systems and methods to adaptively select execution modes
CN106097600B (en) * 2016-05-30 2019-01-25 广州广电运通金融电子股份有限公司 Device management method, system and financial self-service equipment based on ATL
CN107943370A (en) * 2017-11-30 2018-04-20 北京小米移动软件有限公司 Advertisement display method, device and storage medium
CN111752183B (en) * 2020-05-18 2024-03-29 深圳市东微智能科技股份有限公司 Environment equipment control method, equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4802164A (en) * 1986-01-10 1989-01-31 Hitachi Ltd. Method and apparatus for testing a multi-processor system
CN101063946A (en) * 2006-04-25 2007-10-31 英业达股份有限公司 A device lock management method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8543781B2 (en) * 2004-02-06 2013-09-24 Vmware, Inc. Hybrid locking using network and on-disk based schemes
US8078990B2 (en) * 2006-02-01 2011-12-13 Research In Motion Limited Secure device sharing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4802164A (en) * 1986-01-10 1989-01-31 Hitachi Ltd. Method and apparatus for testing a multi-processor system
CN101063946A (en) * 2006-04-25 2007-10-31 英业达股份有限公司 A device lock management method

Also Published As

Publication number Publication date
CN102360312A (en) 2012-02-22

Similar Documents

Publication Publication Date Title
CN110825535B (en) Job scheduling method and system
US20140215472A1 (en) Task management
US9514201B2 (en) Method and system for non-intrusive event sequencing
CN102053870A (en) Systems and methods for affinity driven distributed scheduling of parallel computations
CN102360312B (en) Equipment scheduling method
US20080148299A1 (en) Method and system for detecting work completion in loosely coupled components
CN109491801A (en) Micro services access scheduling method, apparatus, medium and electronic equipment
CN109408286A (en) Data processing method, device, system, computer readable storage medium
CN109840144A (en) A kind of information service dispatching method and system for the request of across mechanism bulk service
US8042160B1 (en) Identity management for application access
US9442971B2 (en) Weighted transaction priority based dynamically upon phase of transaction completion
CN108037984B (en) Resource management method, system and readable storage medium for data analysis
CN110737517A (en) electric power system cloud platform computing analysis micro-service resource scheduling method
Liu et al. A data‐operation model based on partial vector space for batch processing in workflow
CN103778005A (en) Automatic task allocation method and device
CN104158860B (en) A kind of job scheduling method and job scheduling system
CN114936811A (en) Method and device for dispatching robot to deliver takeout
CN115907413A (en) Cleaning task processing method and device
CN101442538B (en) Method, system and middle server for using various global distribution businesses
US8473954B2 (en) Executing operations via asynchronous programming model
CN113784285A (en) Intelligent calling method and device based on Bluetooth device, electronic device and medium
CN114217875B (en) Method, device, equipment and storage medium for processing order
CN108521524B (en) Agent collaborative task management method and device, computer equipment and storage medium
CN111782373B (en) Job scheduling method and device
CN111324472B (en) Method and device for judging junk items based on information to be detected

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130911

Termination date: 20191031