CN101710292B - Reconfigurable task processing system, scheduler and task scheduling method - Google Patents

Reconfigurable task processing system, scheduler and task scheduling method Download PDF

Info

Publication number
CN101710292B
CN101710292B CN 200910259580 CN200910259580A CN101710292B CN 101710292 B CN101710292 B CN 101710292B CN 200910259580 CN200910259580 CN 200910259580 CN 200910259580 A CN200910259580 A CN 200910259580A CN 101710292 B CN101710292 B CN 101710292B
Authority
CN
China
Prior art keywords
task
layout
resource
time
scheduler
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 200910259580
Other languages
Chinese (zh)
Other versions
CN101710292A (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.)
PLA Information Engineering University
Original Assignee
PLA Information Engineering University
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 PLA Information Engineering University filed Critical PLA Information Engineering University
Priority to CN 200910259580 priority Critical patent/CN101710292B/en
Publication of CN101710292A publication Critical patent/CN101710292A/en
Application granted granted Critical
Publication of CN101710292B publication Critical patent/CN101710292B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a reconfigurable task processing system, a scheduler and a task scheduling method. The system comprises the scheduler, a layout and a resource manager, wherein the scheduler is used for extracting space-time attribute parameters of a received task, calculating the slackness of the task, generating a potential layout time table PPTL of a task layout, sending the PPTL to the layout, scheduling tasks in a queue to be scheduled according to a received layout result fed back by the layout, and sending resource state update information to the resource manager according to the scheduling result; the layout is used for performing a layout research on the resource provided by the resource manager according to each time in the PPTL after receiving the PPTL, obtaining a start time and a corresponding resource of the task and feeding back the layout result to the scheduler; and the resource manager is used for updating a resource state in a task layout area when receiving the resource state update information sent by the scheduler, and providing a three-dimensional search space for the layout so as to improve the scheduling efficiency of the task.

Description

A kind of reconfigurable task disposal system, scheduler and method for scheduling task
Technical field
The present invention relates to the computer communication technology field, particularly a kind of reconfigurable task disposal system, scheduler and method for scheduling task.
Background technology
In embedded technology, calculation task can be realized by hardware, also can utilize microprocessor to realize by software.It is quick, efficient that hardware is realized, but after in a single day design is finished, system will be difficult to change.Software is realized flexibly, but performance is but not high.Continuous progress along with hardware technology, Reconfiguration Technologies becomes one of current study hotspot, and Dynamic Reconfigurable Technique is because it is programmable, a large amount of programmable logic cells namely is provided, and possesses simultaneously the part reconfigurable function, therefore fill up the wide gap between traditional software design and the hardware design, taken into account the performance advantage of the flexible and hardware of software, and successful Application has arrived a plurality of fields such as neural network, Image Information Processing, route switching.
Existing typical reconfigurable task disposal system, as shown in Figure 1, comprise scheduler 11, layout device 12 and explorer 13 and reconfigurable device 14, described scheduler 11, layout device 12 and explorer 13 are integrated among the CPU15, wherein, the reception of 11 responsible tasks of scheduler and safeguard the task that modulated degree is successful; Layout device 12 is cores of system, is responsible for the task that described scheduler 11 receives is carried out layout processing, and upgrades the state of explorer 13.In above-mentioned dispatch deal process, the function of described scheduler 11 is very simple, and layout device 12 function relative complex own.In the dispatch deal process take layout device 12 as core, the scheduling process of 11 pairs of tasks of scheduler can only be supported simple First Come First Served (FirstCome First Serviced, FCFS) scheduling method, namely according to the arrival sequencing of task, successively task is carried out the resource reservation scheduling process.For the task of moving of task and reservation, because this system does not support the scheduling process of seizing to task, its scheduling result can not be seized by follow-up work, thereby the dispatching sequence of task is consistent with the arrival order of task.
In the Real-Time Scheduling process to task, because the correlativity before and after can't knowing in advance between the task, for rear arrival but task it is pressed for time, this FCFS dispatch deal pattern can't be so that such priority of task be processed, thereby existing task scheduling system can't provide the scheduling method of Differentiated Services; For rear arrival but the higher task of priority, existing dispatching system can not provide the high-priority task priority scheduling equally.
Can find out from above-mentioned implementation procedure, the problem that existing dispatching system exists is, system function is divided unreasonable, and the FCFS dispatch service pattern rationality of supporting is relatively poor, because the scheduling process of front and back task is separate, is unfavorable for carrying out utilization of resources optimization by cooperation between the task.Because the dispatching sequence of task is depended on the arrival order of this task, the task that arrives first is with pre-empt resources, the Service Properties that is unfavorable for reflection task self, can't satisfy the diversity of supporting the different task dispatching requirement, can't provide differentiated service according to the different demands of task, reduce task scheduling efficient.
Summary of the invention
The embodiment of the invention provides a kind of reconfigurable task disposal system, scheduler and method for scheduling task, for the task of different demands provides differentiated service, improves the dispatching efficiency of precontract task.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of reconfigurable task disposal system, comprising: scheduler, layout device and explorer, wherein,
Described scheduler, be used for extracting the time-space attribute parameter of receiving of task, calculate the slackness of this task, generate the potential layout timetable PPTL of this task layout, and described PPTL sent to described layout device, and, dispatch waiting for the task in the scheduling queue according to the layout result of the described layout device feedback that receives, send the resource status lastest imformation according to scheduling result to described explorer;
Described layout device is used for after receiving described PPTL, carries out the layout search according to each resource that constantly described explorer is provided among the described PPTL, obtains start-up time and the corresponding resource of this task, and to described scheduler feedback layout result;
Described explorer is used for when receiving the resource status lastest imformation that described scheduler sends, the resource status in the updating task layout areas, and provide three-dimensional search volume for described layout device.
Accordingly, the present invention also provides a kind of scheduler, comprising:
Computing unit is used for extracting the width of receiving of task, highly, calculates the slackness of described task;
Generation unit is used for utilizing active event queue AEQ to extract constantly movable in described task slackness, generates PPTL, and width, height and the PPTL of described task sent to described layout device;
Scheduling unit is used for receiving the layout result that described layout device feeds back, and dispatches waiting for the task in the scheduling queue according to described layout result, if dispatch unsuccessfully, then business corresponding to deletion dispatched successfully as crossing, and then stores this task;
The scheduling result maintenance unit is used for the successful task of described scheduling unit scheduling is set up corresponding controll block in operation task ETQ formation and precontract task PTQ formation, safeguards Startup time and the layout areas of this task; According to the Startup time of this task and end of run constantly to AEQ formation upgrade; And send the resource status lastest imformation according to scheduling result to described explorer.
Accordingly, early childhood of the present invention a kind of reconfigurable task dispatching method, comprising:
Scheduler extracts the time-space attribute parameter of receiving of task, calculates the slackness of this task, generates the potential layout timetable PPTL of this task layout, and sends described PPTL to the layout device;
Start-up time and the corresponding resource of the described task that obtains according to described PPTL that scheduler receives that the layout device sends;
Scheduler is according to dispatching waiting for the task in the scheduling queue start-up time of described task and corresponding resource, and the Startup time of the task of maintenance schedule success and layout areas, the renewal of resource status in the control explorer.
By above-mentioned technology as can be known, the present invention on the reconfigurable system structure, with scheduler as the system core, when scheduler task, can be with the degree of urgency Differentiated Services, the maintenance task formation.Scheduler is responsible for upgrading the explorer state, and directly the scheduling result before the deletion with the First Come First Served pattern, is revised as and seizes scheduling.The layout device carries out layout under the control of resource device, reduced the design complexities of layout device, makes the layout device can be responsible for the clear area search procedure specially.At the method for managing resource of resource management mode employing resource section chained list, use discrete section to represent the state of resource, avoid constantly safeguarding identical resource distribution matrix in difference, thereby effectively reduce the storage space of system.Because the movable initial time of constantly cutting into slices corresponding to resource in the PPTL table, so that layout process only carries out layout at the initial time of time-to-live of this data structure, thereby realize discrete Dispatch by appointment process, avoided the repetition reservation operation, improved Dispatch by appointment efficient.
Description of drawings
Fig. 1 is the structural representation of reconfigurable task disposal system in the prior art;
Fig. 2 is the structural representation of a kind of reconfigurable task disposal system provided by the invention;
Fig. 3 be provided by the invention in ETQ the controll block content and the synoptic diagram of ordering;
Fig. 4 be provided by the invention in PTQ the controll block content and the synoptic diagram of ordering;
Fig. 5 is the synoptic diagram of the state conversion of controll block provided by the invention in ETQ and PTQ;
Fig. 6 is that controll block provided by the invention is by the successively synoptic diagram of the AEQ of ordering occurs constantly
Fig. 7 is the CLB resource status synoptic diagram in the resource section provided by the invention
Fig. 8 be provided by the invention in difference constantly but the synoptic diagram of identical two the resources sections of resource distribution;
Fig. 9 is the synoptic diagram in the three dimensional resource space of resource section chained list provided by the invention formation;
Figure 10 is the process flow diagram of a kind of reconfigurable task dispatching method provided by the invention;
The synoptic diagram of the generative process of the PPTL that provides among the present invention table is provided Figure 11;
Figure 12 is the synoptic diagram of ETQ provided by the invention, PTQ, AEQ and the conversion of PPTL state;
Figure 13 is a kind of process flow diagram of seizing scheduling of supporting that degree of urgency is distinguished provided by the invention;
Figure 14 is the synoptic diagram of a kind of layout process based on time-domain resource section provided by the invention;
Figure 15 is the process flow diagram of a kind of Dispatch by appointment implementation procedure based on PPTL table provided by the invention.
Embodiment
Below we in connection with accompanying drawing, embodiment of the present invention are described in detail.
See also Fig. 2, structural representation for a kind of reconfigurable task disposal system provided by the invention, described system comprises: scheduler 21, layout device 22 and explorer 23 and reconfigurable device 24, described scheduler 21, layout device 22 and explorer 23 are integrated among the CPU25, wherein, described scheduler 21, be used for extracting the time-space attribute parameter of receiving of task, calculate the slackness of this task, generate the potential layout timetable (PPTL of this task layout, Potential Placing Time List), and described PPTL sent to described layout device 22, and, dispatch waiting for the task in the scheduling queue according to the layout result of the described layout device feedback that receives, send the resource status lastest imformation according to scheduling result to described explorer 23; Described layout device 22, be used for after receiving described PPTL, carry out the layout search according to each resource that constantly described explorer 23 is provided among the described PPTL, obtain start-up time and the corresponding resource of this task, and to described scheduler 22 feedback layout result; Described explorer 23 is used for when receiving the resource status lastest imformation that described scheduler sends, the resource status in the updating task layout areas, and provide three-dimensional search volume for described layout device.
Optionally, described scheduler specifically comprises: computing unit, generation unit and scheduling result maintenance unit, and wherein, described computing unit is used for extracting the width of receiving of task, highly, calculates the slackness of described task; Described generation unit is used for utilizing active event queue (AEQ, Activity EventQueue) to extract constantly movable in described task slackness, generates PPTL, and width, height and the PPTL of described task sent to described layout device; Described scheduling result maintenance unit is used for receiving the layout result that described layout device feeds back, and deletes or store waiting for the task in the scheduling queue according to described layout result; For the successful task of scheduling, in operation task formation (ETQ, Executing TaskQueue) and precontract task formation (PTQ, Planning Task Queue), set up corresponding controll block, safeguard Startup time and the layout areas of this task; Startup time and end of run according to this task upgrade AEQ constantly; And send the resource status lastest imformation according to scheduling result to described explorer.
Wherein, described scheduling result maintenance unit specifically comprises to the process that described explorer sends the resource status lastest imformation according to scheduling result: when the task layout success, described scheduling result maintenance unit sends the resource status lastest imformation according to scheduling result to described explorer, control described explorer the state of all resources in task layout zone is labeled as busy state, prevent that this zone from being taken by follow-up work; When the deletion task, control described explorer the resource status in the deleted task layout zone is updated to the free time, make follow-up work can preengage resource in this zone.
Optionally, described scheduler can also comprise: active event queue AEQ, for generation moment store tasks time and in this constantly event number, the generation moment of task run start-up and operation End Event occurs constantly to refer in described task, sequential storage only needs a controll block to safeguard for carving at the same time a plurality of events that occur in AEQ to life event in AEQ according to occuring constantly.
Optionally, described layout device can comprise: layout search unit and layout Search Results feedback unit, described layout search unit, be used for receiving the width of described task, behind height and the PPTL, utilize the resource matched way of search of idle matrix, layout is carried out in discrete distribution among the described PPTL constantly successively, and the clear area is carried out in the three-dimensional search space that described explorer provides search for, obtain start-up time and the corresponding resource of this task, wherein, described three-dimensional search is the three dimensional resource rectangular parallelepiped, and described three dimensional resource rectangular parallelepiped refers to the three-dimensional abstract resource model with space-time characterisation that two-dimentional resource area and time dimension form; Described layout Search Results feedback unit is used for feeding back the start-up time of this task and the resource of correspondence to described scheduler.
Wherein, the process that the clear area search is carried out in the three-dimensional search space that described layout search unit provides described explorer specifically comprises: described layout search unit can hold this task in each resource section constantly in the three-dimensional search space that described explorer provides continuous clear area, after the clear area is searched for successfully, with this clear area vertical scanning, so that this clear area still keeps idle condition in follow-up time, and this clear area can be taken the e time continuously by task, and wherein e is the working time of task.
Optionally, described resource management implement body is used for, adopt the resource management mode of resource section chained list, when receiving the resource status lastest imformation of described scheduler transmission, utilize weights in two-dimensional matrix corresponding to resource section to come the use state of the resource in the updating task layout areas, and with resource section in chronological sequence order be arranged in order, safeguard different resource using status constantly, be the search volume of described layout device coupling Resource Supply three-dimensional.
In this embodiment, system after receiving task, usually with task abstract be rectangle, represent respectively the width of task rectangle, highly, the due in of task, execution time, cut-off time by time-space attribute parameter (w, h, a, e, d); When scheduler receives task, preserve this business, extract the time-space attribute parameter of this task, calculate the slackness of this task, generate the PPTL table of this task layout, utilize the PPTL table control layout straight only moment in this table of device to carry out layout, when the task layout failure, scheduler abandons this task; When the layout success, the layout result that scheduler returns according to the layout device, the control explorer carries out the renewal of resource attitude.
Simultaneously, scheduler also needs to safeguard the state of each task, specifically comprises: operation task formation ETQ, precontract task formation PTQ and active event queue AEQ, wherein, described ETQ be used for safeguarding current all just in the controll block of operation task, the controll block of operation task is expressed as
(i,v(t,f i),p(x i1,y i1,x i2,y i2),r(w i,h i,a i,e i,d i))
Wherein, i represents the numbering of this operation task, and t represents current time, f iBe the end of run moment of task, p (x I1, y I1, x I2, y I2) expression task T iThe current just operation area in device, and satisfy f i〉=t and d i〉=f i, in ETQ, task control block (TCB) is arranged by the ascending order finish time of task, specifically as shown in Figure 3, for provided by the invention in ETQ the controll block content and the synoptic diagram of ordering.
Described PTQ is used for preserving Dispatch by appointment success but does not start the precontract task controll block of moving and is expressed as (i, v (s j, f j), p (x J1, y J1, x J2, y J2), r (w j, h j, a j, e j, d j)), wherein i represents the numbering of this precontract task, s jBe the reservation Startup time that obtains after the scheduling, f jBe the end of run moment of task, p (x J1, y J1, x J2, y J2) expression task T jWill be at [s j, f j-1] shared resource area in the time based on the Dispatch by appointment result who safeguards, guarantees p (x in PTQ J1, y J1, x J2, y J2) zone in resource at [s j, f j-1] do not taken by other task in the time, the task control block (TCB) among the PTQ is by the reservation Startup time s of task jAscending order is arranged, as shown in Figure 4, for provided by the invention in the PTQ formation the controll block content and the synoptic diagram of ordering, in the figure, blank grid represents new task, left tiltedly grid represents operation task controll block, right tiltedly grid represents precontract task controll block.
When system time arrives the reservation Startup time of certain task, the controll block of this task will be transferred to the ETQ from PTQ, represent that this task becomes running status from subscription state, as shown in Figure 5, be the synoptic diagram of the state conversion of controll block provided by the invention in ETQ and PTQ; AEQ is mainly used to the storage activities event tabulation constantly occurs, and described life event refers to startup and the End Event of task, and the task activity event is stored among the AEQ according to the sequencing that event occurs, and comprises in its controll block that constantly t occurs event iWith event generation number n (t i), as shown in Figure 6, be the synoptic diagram of controll block provided by the invention by the AEQ that occurs constantly successively to sort.
In this embodiment, the layout device, the task length, width and the PPTL table that utilize scheduler to send, in resource management, carry out the layout search, namely carry out successively the layout search according to each moment in the PPTL table, that is to say, in each layout search procedure constantly, when in the first constantly layout success, represent that direct basic dispatch (the BS Basic Scheduling) of this task dispatches successfully; When in follow-up moment task layout success, represent that this task preengages successfully; If task represents this task scheduling failure in all constantly all layout failures.After task layout was finished, the layout device sent each scheduler with layout result, to layout success task, its layout result comprises operation Startup time and layout areas, if the task layout failure, the layout device sends the layout failed message to scheduler, and scheduler abandons this task.
In this embodiment, the layout device mainly shows to disperse the Dispatch by appointment process based on PPTL, the three dimensional resource model that utilizes explorer to provide, the continuous clear area that search can be held this task in each resource section constantly, if in resource section search clear area failure, then next in the PPTL table carried out the clear area search constantly again; If the success of search clear area then with this clear area vertical scanning, still keeps idle condition to guarantee this zone in follow-up time in the resource section, make task can take continuously this clear area e time.If vertical scanning failure represents that the clear area that this task searches for is invalid, search for next clear area this moment.
That is to say that the layout device adopts the resource matched searching method of idle matrix, utilize the discrete distribution moment in the PPTL table, carry out successively layout constantly at each, thereby the clear area search is carried out in three dimensional resource rectangular parallelepiped space.Described three dimensional resource cube refers to the three-dimensional abstract resource model with space-time characterisation that two-dimentional resource area and time dimension form, and namely in the continuous time scope, the section that resource status is identical represents with a section, is expressed as S ([t i, t I+1-1]), wherein S represents a two-dimensional matrix, has reflected the use state of restructural resource; [t, t I+1-1] represent the time-to-live scope of this section, resource section chained list is arranged sequentially on chained list according to time order and function, thereby forms three-dimensional restructural resource model, i.e. three-dimensional abstract resource model.Utilize the three dimensional resource model can not only represent the space attribute of task area occupied, the time attribute that can also portray task run.The process of its search is: at first carry out the white space search in the resource section, after the clear area is searched for successfully, with this white space vertical scanning, judge whether this white space can be taken the e time continuously by task, and wherein e is the working time of task.
In addition, when the layout device utilizes the PPTL table to carry out layout in explorer, can adopt AEAP (As earlier as possible) principle, task is carried out layout in each moment of this table successively, when task is carved the layout success at a time, then need not to carry out again layout in the follow-up moment, make task Dispatch by appointment success within the time of " as early as possible ".Wherein, in the layout process of layout device based on PPTL, because each in the PPTL table avoided the layout process within the time-to-live constantly corresponding to the time-to-live initial time of resource section, be conducive to accelerate task Dispatch by appointment speed.
Explorer in the present embodiment, with the resource section logic data structure management restructural resource based on two-dimensional matrix, the corresponding two-dimensional matrix M[x of resource section] [y], with m[x] basic composition element in [y] representing matrix, the expression two-dimensional coordinate be the resource logical block CLB resource of (x, y), and x and y satisfied 1≤x≤W and 1≤y≤H respectively, wherein W is the CLB columns in the device, and H is the CLB columns in the device.In two-dimensional matrix, utilize the weights of m to represent the use state of this CLB resource.Take or one of idle condition because each CLB resource can only be at synchronization, the weights with m in the resource section are defined as 0 or 1, as m[x] during [y]=0, denotation coordination is that the CLB of (x, y) is not taken by task, is in idle condition; As m[x] during [y]=1, denotation coordination is that the CLB of (x, y) is taken by task, is in seizure condition, specifically as shown in Figure 7, is the CLB resource status synoptic diagram in the resource section provided by the invention.T1 in the figure, T2 and T3 are the resource section of task seizure condition.
In this embodiment of the invention, in a continuous time scope, the resource section that resource status is identical represents with a resource section, specifically as shown in Figure 8, for provided by the invention in difference constantly but the synoptic diagram that two identical resources of resource distribution are cut into slices; Described resource section is S ([t i, t I+1-1]) expression, wherein, [t, t I+1-1] represents this resource effective time range of cutting into slices, be illustrated in the two-dimensional matrix in this resource section in the resource distribution of this time.The resource section in chronological sequence sequentially is arranged in order, be maintained in different resource using status constantly, thereby be layout device coupling Resource Supply three dimensional resource search volume, described three dimensional resource search volume as shown in Figure 9, the synoptic diagram in the three dimensional resource space that forms for resource provided by the invention section chained list.
Explorer carries out more new management according to the scheduling result of task.When increasing the scheduling result of new task, need in explorer, increase new resource section and safeguard; In seizing scheduling process, when the scheduling result of deletion task, need the section of deletion resource, section merges to the resource in the explorer simultaneously; After the time-to-live that system time is cut into slices greater than resource, this section will be deleted from explorer.That is to say, explorer upgrades according to the scheduling result of task, when safeguarding the layout result of new task, for the resource section of time-to-live in Runtime, in the two-dimensional matrix of its maintenance, the resource status in the task layout zone is updated to seizure condition; When operation start-up time of task or end of run, be engraved in the time-to-live of certain resource section, then this resource section will be split into two new resource sections, layout areas in the resource section at task run Startup time or end of run moment place is carried out resource status upgrade, and two-dimensional matrix of safeguarding in another section remains unchanged.When executing the task the delete procedure of scheduling result, the resource status renewal is carried out in the resource section that this task is related, and the resource status in the layout areas of deleted task is updated to idle condition.
For the precontract task that does not start, because its scheduling result is utilized software maintenance, comprise the scheduling result that PTQ, AEQ and explorer are safeguarded, by the scheduling result of inefficacy precontract task, make follow-up work can take the resource that discharged after precontract task lost efficacy.Be about to preengage the controll block of inefficacy task among PTQ, deleting; In AEQ the operation startup of inefficacy task and the life event sum of safeguarding the finish time are subtracted 1 simultaneously, if be 0 o'clock after the life event sum subtracts 1, it is invalid to be illustrated in this controll block of constantly safeguarding, and it is deleted from AEQ; In explorer, with the resource status in the layout areas of inefficacy task, be revised as idle condition from seizure condition.
After task arrival system, add and wait for scheduling queue, when the direct Dispatch by appointment failure of new task, new task and precontract task are compared the degree of urgency size, if when not having the less precontract task of degree of urgency, this task can't be seized scheduling, and this task is abandoned; If there is the less precontract task of degree of urgency, the scheduling result of this type of precontract task was lost efficacy, new task is seized scheduling on this basis, dispatch successfully if seize, the scheduling result of maintenance task, and each inefficacy task rescheduled, dispatch unsuccessfully if seize, for reservation inefficacy task, directly recover its previous scheduling result, with the again scheduling process of avoiding the inefficacy task.
In the failure procedure of precontract task, a minute successively direct motion is deleted its scheduling result, at first deletes the scheduling result of precontract task in AEQ and explorer, when new task is seized unsuccessfully success, its result that safeguards in PTQ is deleted again; Seize when dispatching unsuccessfully when new task, utilize inefficacy task not deleted scheduling result in PTQ, directly in AEQ and explorer, recover the scheduling result of inefficacy task.
This shows, in system provided by the invention, take scheduler as core, layout device and explorer under scheduler control, finish the work respectively layout process and resource status renewal process, wherein the layout device carries out layout according to the potential layout timetable PPTL of scheduler transmission constantly successively at each.The resource status lastest imformation that explorer sends according to scheduler when the task scheduling success, is updated to seizure condition with the resource status in this task layout zone, represents that the resource in this zone is occupied; When scheduler was deleted the scheduling result of certain task, the resource status lastest imformation of utilizing scheduler to send was updated to the free time with the resource status of the former layout areas of task, represents that the resource in this zone is unoccupied.By deleting the scheduling result of previous modulated degree task, the layout result of the modulated degree task that namely lost efficacy, make it discharge its shared resource, follow-up arrival task determines according to the Service Properties of task whether this task seizes scheduling to previous tasks, thereby realize the Differentiated Services of different task in scheduling process, the task of being different demands provides differentiated service, improves the dispatching efficiency of task.
Based on the implementation procedure of said method, the embodiment of the invention also provides a kind of reconfigurable task dispatching method, and its process flow diagram sees Figure 10 for details, and described method comprises:
Step 1001: scheduler extracts the time-space attribute parameter of receiving of task, calculates the slackness of this task, generates the potential layout timetable PPTL of this task layout;
Step 1002: start-up time and the corresponding resource of the described task that obtains according to described PPTL that scheduler receives that the layout device sends;
Step 1003: scheduler is according to dispatching waiting for the task in the scheduling queue start-up time of described task and corresponding resource, and the Startup time of the task of maintenance schedule success and layout areas, the renewal of resource status in the control explorer.
Optionally, described method can also comprise: the layout device carries out the layout search according to each resource that constantly described explorer is provided among the described PPTL that receives, obtain start-up time and the corresponding resource of described task, and start-up time and the corresponding resource of described task sent to scheduler.
Wherein, in step 1001, described scheduler extracts the time-space attribute parameter of receiving of task, calculates the slackness of this task, and the potential layout timetable PPTL that generates this task layout specifically comprises:
Extract the width of receiving of task, highly, calculate the slackness of described task, utilize active event queue AEQ to extract constantly movable in described task slackness, generate PPTL.
The layout device carries out the layout search according to each resource that constantly described explorer is provided among the described PPTL that receives, and obtains start-up time and the corresponding resource of described task, and start-up time and the corresponding resource of described task sent to scheduler
Optionally, described layout device carries out the layout search according to each resource that constantly described explorer is provided among the described PPTL, and the start-up time and the corresponding resource that obtain described task specifically comprise:
The layout device is according to width, height and the PPTL of described task, utilize the resource matched way of search of idle matrix, layout is carried out in discrete distribution among the described PPTL constantly successively, and the clear area is carried out in the three-dimensional search space that described explorer provides search for, obtain start-up time and the corresponding resource of this task, wherein, described three-dimensional search is the three dimensional resource rectangular parallelepiped, and described three dimensional resource rectangular parallelepiped refers to the three-dimensional abstract resource model with space-time characterisation that two-dimentional resource area and time dimension form.
Wherein, the three-dimensional search space that described layout device provides described explorer is carried out the clear area search and is specifically comprised: described layout device can hold this task in each resource section constantly in the three-dimensional search space that described explorer provides continuous clear area, after the clear area is searched for successfully, with this clear area vertical scanning, so that this clear area still keeps idle condition in follow-up time, and this clear area can be taken the e time continuously by task, and wherein e is the working time of task.
In step 1003, described scheduler is according to dispatching waiting for the task in the scheduling queue start-up time of described task and corresponding resource, and the Startup time of the task of maintenance schedule success and layout areas, the renewal of resource status specifically comprises in the control explorer:
The start-up time of the described task of scheduler and corresponding resource are deleted or are stored waiting for the task in the scheduling queue; For the successful task of scheduling, in operation task formation ETQ and precontract task formation PTQ, set up corresponding controll block, safeguard Startup time and the layout areas of this task; Startup time and end of run according to this task upgrade AEQ constantly; And control the renewal that described explorer carries out resource status according to scheduling result; Explorer is according to described scheduler task, the resource status in the updating task layout areas, and provide three-dimensional search volume for described layout device.
Wherein, described explorer is according to described scheduling result, resource status in the updating task layout areas, and specifically comprise for described layout device provides three-dimensional search volume: described explorer adopts the resource management mode of resource section chained list, when receiving the resource status lastest imformation of described scheduler transmission, utilize weights in two-dimensional matrix corresponding to resource section to come the use state of the resource in the updating task layout areas, and with resource section in chronological sequence order be arranged in order, safeguard different resource using status constantly, be the search volume of described layout device coupling Resource Supply three-dimensional.
In this embodiment, after the task arrival system, system adds the wait scheduling queue with this task, scheduler at first directly carries out Dispatch by appointment to task, with task abstract be rectangle, by time-space attribute parameter (w, h, a, e, d) represent respectively the width of task rectangle, highly, the due in of task, execution time, cut-off time, scope [a slack time of calculation task, d-e], and utilizing the life event of safeguarding among the AEQ to occur constantly, the life event that extracts in [a, d-e] occurs constantly, as each layout in the PPTL table constantly, wherein a constantly be in the PPTL table first layout constantly, as shown in figure 11, be the synoptic diagram of the generative process of the PPTL table that provides among the present invention; The layout device is according to time-space attribute parameter and the PPTL table of the task of input, in explorer, task is carried out layout, if task is directly in constantly layout success of a, represent that this task directly dispatches successfully, the layout device returns layout result to scheduler, scheduler is safeguarded scheduling result in operation task formation ETQ and AEQ, safeguard according to carry out resource status the finish time of layout areas and task in explorer simultaneously; If layout success of the follow-up moment of task, represent this task Dispatch by appointment success, the layout device returns layout result to scheduler, scheduler is safeguarded scheduling result that the while is according to layout areas, reservation Startup time and carry out the resource status maintenance finish time in explorer in precontract task queue table PTL and AEQ; When the follow-up moment of task, all layout was failed, the layout device returns failed message to scheduler, determine that by scheduler this task will seize scheduling, the wherein state of ETQ, PTQ, AEQ and PPTL conversion, as shown in figure 12, the synoptic diagram of changing for ETQ provided by the invention, PTQ, AEQ and PPTL state.
At current time t, for new arrival task and precontract task, two tasks are expressed as in t degree of urgency (urgency) constantly u ( t ) = 1 l ( t ) = 1 ( d - e ) - t + 1 , T<s≤d-e wherein, s is the reservation Startup time of task.New task compares the degree of urgency size at its due in and precontract task, if there is the less precontract task of degree of urgency, with the scheduling result inefficacy of precontract task, its failure procedure comprises:
Constantly record occurs in the deletion life event in AEQ, and in the explorer device, resource status in the layout areas of inefficacy task is updated to the free time, wouldn't delete the precontract task controll block of safeguarding among the PTQ, after the failure procedure of finishing the less task of degree of urgency, new task is dispatched on this basis, comprise and generate the PPTL table, and PPTL table and task area attribute sent to the layout device, by the layout device task is carried out layout processing, when task is carved the layout success at a time, represent that this task preemption dispatches successfully, the layout device returns scheduling result, scheduler safeguards that to scheduling result the controll block of inefficacy task in PTQ is preengage in simultaneously deletion, and each inefficacy task is re-started scheduling; If new task seize scheduling process failure, then the layout device returns the layout failure information, then scheduler is deleted new task from waiting list, the controll block of utilizing simultaneously each inefficacy task in PTQ, to safeguard, comprise layout areas, reservation Startup time and the finish time, respectively AEQ and explorer are upgraded, thereby making the inefficacy task recovery is normal precontract task, has avoided the again scheduling process to the inefficacy task.Utilize degree of urgency difference to realize the Differentiated Services of different task, make degree of urgency hand over large priority of task scheduling, make the scheduling of task more reasonable, be conducive to improve the whole success ratio of task scheduling
That is to say that the task scheduling among the present invention is based on the discrete reservation process of PPTL table, and support the scheduling of seizing to precontract task, the specific implementation process comprises: after system's reception task, this task added waits for scheduling queue, at first task is directly carried out Dispatch by appointment, with task abstract be rectangle, by time-space attribute parameter (w, h, a, e, d) represent respectively the width of task rectangle, highly, the due in of task, execution time, cut-off time; After new task arrives, scheduler is preserved this task, and utilize the time-space attribute of task that task is at first directly carried out Dispatch by appointment, if this task can directly be dispatched successfully, then new task need not to seize scheduling, if it is unsuccessful that new task is directly dispatched, according to the degree of urgency size, determine that whether new task seize scheduling to precontract task, by its scheduling result was lost efficacy, new task is dispatched on this basis to the less task of degree of urgency, and can take the resource that the inefficacy task discharges, dispatch successfully if seize, safeguard the scheduling result of new task, simultaneously the inefficacy task is rescheduled again, preengage unsuccessfully if seize, scheduler abandons new task, recovers simultaneously the scheduling result of inefficacy task, avoids the inefficacy task is rescheduled again.In scheduling process (comprise and seize scheduling process), scheduler utilizes the active event queue AEQ of its internal maintenance, extract the movable PPTL table that constantly generates in the task slackness, scheduler sends to the layout device with length, width and the PPTL table of task.The layout device utilizes explorer, and each in the PPTL table constantly carried out layout successively, if the constantly layout failure of all in the PPTL table of task, then the layout device returns failure result to scheduler, and scheduler is deleted this task from wait for scheduling queue; If constantly layout success of certain in the PPTL table of task, then will be somebody's turn to do the moment as the operation Startup time of task, the layout device returns Startup time and the layout areas of task to scheduler, scheduler is according to layout result (comprising operation Startup time and layout areas), operation task formation ETQ and precontract task formation PTQ to self maintained upgrade, and operation start-up and operation finish time of utilizing task to AEQ formation upgrade, simultaneously the resource status in the explorer is safeguarded, the resource status in the layout areas is updated to seizure condition.When supporting to seize scheduling, need the scheduling result of inefficacy part precontract task, its operation comprises to be upgraded PTQ and AEQ, in explorer, be idle condition with the resource status modification in the inefficacy task layout zone simultaneously, new task is dispatched on this basis, comprise generating the PPTL table, and each layout successively constantly in this table.Task is downloaded operation at its Startup time, begins simultaneously to take the resource in its layout areas, and after task run finishes, its resource that takies will be released.The present invention supports complete task scheduling and layout process from system architecture, and special increasing seizing the support function of scheduling, realizes the differentiation dispatch service between the different task.
Hence one can see that, the present invention is on the reconfigurable system structure, with scheduler as the system core, when scheduler task, can be with the degree of urgency Differentiated Services, the maintenance task formation has embodied the service differences of different task, make the high priority of task management and running of degree of urgency, improved rationality and the success ratio of system call task.Scheduler generates the PPTL table according to the time-space attribute of task, is used for control task in the layout process of explorer; Scheduler is directly controlled explorer renewal resource using status simultaneously, utilize direct scheduling result in interpolation in explorer or deletion task, namely the scheduling result before the deletion with existing First Come First Served pattern, is revised as to introduce and seizes scheduling method; The layout device carries out layout under the control of resource device, namely only the moment in the PPTL table is carried out layout, has reduced the design complexities of layout device, makes the layout device can be responsible for the clear area search procedure specially, has improved the layout operating efficiency.
In explorer, adopted the resource management mode based on resource section chained list, the state that represents resource with discrete section, so that continuous resource status can represent in enough discrete resource sections, avoid constantly safeguarding identical resource distribution matrix in difference, thereby reduced space, the time complexity of resource management, provide the three dimensional resource search volume for the task layout process operation simultaneously.Because the movable initial time of constantly cutting into slices corresponding to resource in the PPTL table, so that layout process only carries out layout at the initial time of time-to-live of this data structure, thereby realize discrete Dispatch by appointment process, avoided the repetition reservation operation, improved Dispatch by appointment efficient.
For the ease of those skilled in the art's understanding, the below is to support seizing of degree of urgency differentiation to dispatch implementation procedure as example, and is specifically shown in Figure 13, is a kind of process flow diagram of seizing scheduling of supporting that degree of urgency is distinguished provided by the invention, comprising:
Step 1301: at a jThe new task T that constantly arrives j(w j, h j, a j, e j, d j), judge T jAt a jWhether constantly directly carry out the BS scheduling successful, if success, execution in step 1310, if unsuccessful, then execution in step 1302;
Step 1302: task is carried out the PS scheduling, judge whether this task dispatches successfully, if not, execution in step 1303 is if then execution in step 1310;
Step 1303: to the precontract task execution in step 1304 in new task and the threshold value;
Step 1304: calculate respectively the degree of urgency size of each task, and compare the u of new task jWith each u of precontract task iSize is if exist the u of precontract task i<u j, then execution in step 1305, and if not, then execution in step 1309;
Step 1305: in AEQ formation and explorer with T iScheduling result lost efficacy, judge T jWhether successful, if T if seizing on this basis scheduling jDispatch successfully, execution in step 1306, if unsuccessful, then execution in step 1307;
Step 1306: safeguard T jScheduling result, simultaneously with T iTask block delete in the PTQ formation is to all T iExecution in step 1308;
Step 1307: utilize T iControll block in PTQ is recovered T in AEQ and explorer iScheduling result, and to T jExecution in step 1309;
Step 1308: dispatch successively by the degree of urgency descending order, if dispatch successfully, then preserve scheduling result, if failure directly abandons this task, as all T iWhen all finishing scheduling, finish this scheduling process.
Step 1309: abandon this task, finish this scheduling process.
Step 1310: the scheduling result at PTQ, AEQ and explorer maintenance task, finish this scheduling process.
In the present invention, layout process can be divided into: 1. clear area search procedure; 2. the vertical scanning process of clear area, concrete implementation procedure is as follows:
In the process of search clear area, adopted simple BL (Bottom Left) scanning method, from the lower left corner of two-dimensional matrix, along x axle and y axle search clear area, the rectangular area take (j, k) as basic point is expressed as (j successively, k, j+w-1, k+h-1), then each CLB resource weights sum is expressed as in this zone
Figure G2009102595805D00161
If Σ x = j j + w - 1 Σ y = k k + h - 1 m [ x ] [ y ] = 0 The time, the weights that are illustrated in (j, k, j+w-1, k+h-1) zone all are 0, the resource that can obtain in this zone all is in idle condition; If Σ x = j j + w - 1 Σ y = k k + h - 1 m [ x ] [ y ] > 0 The time, the part or all of resource that is illustrated in this zone is in busy state.
For the three dimensional resource model that is formed by the resource section, at resource sliced surfaces S (t i) in, the clear area that will exist in this section is expressed as:
r = { ( j , k ) | Σ x = j j + w - 1 Σ y = k k + h - 1 Σ t = t i m [ x ] [ y ] [ t ] = 0,1 ≤ j ≤ W - w , 1 ≤ k ≤ H - h , t = t i } ,
If
Figure G2009102595805D00172
The time, expression exists with (j i, k i) be the clear area of basic point, then the clear area is scanned successfully; If
Figure G2009102595805D00173
Be illustrated in S (t i) in do not have the suitable clear area of area, then this task is at t iClear area is constantly scanned unsuccessfully.
To at S (t i) in the clear area (j that searches i, k i, j i+ w-1, k i+ h-1), only show that this zone is at t iConstantly be in idle condition, preengage by other task in future time for preventing this zone, must guarantee that this clear area is at [t i, t i+ e-1] all taken by task in the time.By along the z direction of principal axis vertical scanning being carried out in this clear area, form one with (j i, k i, t i) be the three-dimensional rectangular parallelepiped model of basic point, then all the weights sums in the rectangular parallelepiped are expressed as
Figure G2009102595805D00174
If Σ x = j i j i + w - 1 Σ y = k i k i + h - 1 Σ t = t i t i + e - 1 m [ x ] [ y ] [ t ] = 0 The time, represent that all the CLB resources in this rectangular parallelepiped model all are in idle condition, namely at (j i, k i, j i+ w-1, k i+ h-1) zone in the CLB resource at [t i, t i+ e-1] all be idle condition in the time, think that then this task is at t iConstantly dispatch successfully; If Σ x = j j + w - 1 Σ y = k k + h - 1 Σ t = t i t i + e - 1 m [ x ] [ y ] [ t ] ≠ 0 The time, expression (j i, k i, j i+ w-1, k i+ h-1) zone in resource at [t i+ 1, t i+ e-1] not all be in idle condition in the time, then this clear area is invalid, need again search for next clear area (j I+1, k I+1, j I+1+ w-1, k I+1+ h-1), and then carry out vertical scanning.If at resource sliced surfaces S (t i)) in the search the clear area all invalid, think that this task is at t iLayout process's failure constantly.
In this dispatching system, explorer is comprised of the resource section, in task layout process, for the rectangular area of in same resource section, safeguarding, because each within the time-to-live of resource distribution is constantly all identical, to same resource section, only need its resource distribution at initial time of vertical scanning, then will be expressed as based on the task model of resource section: b = { ( j , k , t ) | Σ x = j j + w - 1 Σ y = k k + h - 1 Σ t = t i m [ x ] [ y ] [ t ] = 0 , Wherein the s layout scans initial time, t iBe the initial time of resource section, as shown in figure 14, be the synoptic diagram of a kind of layout process based on the time-domain resource section provided by the invention.In the figure, if
Figure G2009102595805D00183
The time, be illustrated in resource section S (t i) in have space rectangles (j i, k i, j i+ w-1, k i+ h-1), and this space rectangles is at [s i, s i+ e-1] vertical scanning success in the time, think that then this task is at s iConstantly dispatch successfully s iBe the reservation Startup time of task, wherein s i>a; If The time, the expression task is at [a, s Latest] each interior constantly all layout failure of time, then this task is at [a, s Latest] interior Dispatch by appointment failure of time.
In the present invention, based on the process flow diagram of the Dispatch by appointment implementation procedure of PPTL table as shown in figure 15, specifically comprise:
Step 1501: first constantly carries out layout to task in the PPTL table, if the layout success turns step 1504, otherwise, turn step 1502;
Step 1502: with the constantly deletion from the PPTL table of first layout, and judge whether current PPTL table is empty, if be empty, turns step 1506, otherwise, turn step 1503;
Step 1503: first in the PPTL table constantly carries out layout to task, if the layout success turns step 1505, otherwise, turn step 1502;
Step 1504:BS dispatches successfully, safeguards the scheduling result of this operation task in the ETQ formation, finishes this scheduling process.
Step 1505:PS dispatches successfully, safeguards the scheduling result of this precontract task in the PTQ formation, finishes this scheduling process.
Step 1506: the failure of expression Dispatch by appointment, abandon this task, finish this scheduling process.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment in a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (17)

1. a reconfigurable task disposal system is characterized in that, comprising: scheduler, layout device and explorer, wherein,
Described scheduler, be used for extracting the time-space attribute parameter of receiving of task, calculate the slackness of described receiving of task, generate the potential layout timetable PPTL of the described task layout that receives, and described potential layout timetable PPTL sent to described layout device, and, dispatch waiting for the task in the scheduling queue according to the layout result of the described layout device feedback that receives, send the resource status lastest imformation according to scheduling result to described explorer;
Described layout device, be used for after receiving described potential layout timetable PPTL, carry out the layout search according to each resource that constantly described explorer is provided among the described potential layout timetable PPTL, obtain start-up time and the corresponding resource of described receiving of task, and to described scheduler feedback layout result;
Described explorer is used for when receiving the resource status lastest imformation that described scheduler sends, the resource status in the updating task layout areas, and provide three-dimensional search volume for described layout device.
2. system according to claim 1 is characterized in that, described scheduler comprises:
Computing unit is used for extracting the width of receiving of task, highly, calculates the slackness of described receiving of task;
Generation unit, be used for utilizing active event queue AEQ to extract constantly movable in described task slackness, generate potential layout timetable PPTL, and width, height and the potential layout timetable PPTL of described receiving of task sent to described layout device;
Scheduling unit is used for receiving the layout result that described layout device feeds back, and dispatches waiting for the task in the scheduling queue according to described layout result, if dispatch unsuccessfully, then the described business that receives corresponding to deletion if dispatch successfully, then stored described receiving of task;
The scheduling result maintenance unit is used for the successful task of described scheduling unit scheduling is set up corresponding controll block in operation task formation ETQ and precontract task formation PTQ, safeguards Startup time and the layout areas of described receiving of task; Startup time and end of run according to described receiving of task upgrade active event queue AEQ constantly; And send the resource status lastest imformation according to scheduling result to described explorer.
3. system according to claim 2 is characterized in that, described scheduling result maintenance unit sends the resource status lastest imformation according to scheduling result to described explorer and specifically comprises:
When the task layout success, described scheduling result maintenance unit sends the resource status lastest imformation according to scheduling result to described explorer, control described explorer the state of all resources in task layout zone is labeled as busy state, prevent that this zone from being taken by follow-up work; When the deletion task, control described explorer the resource status in the deleted task layout zone is updated to the free time, make follow-up work can preengage resource in this zone.
4. system according to claim 2 is characterized in that, described scheduler also comprises:
Active event queue AEQ, for generation moment store tasks time and in this constantly event number, the generation moment of task run start-up and operation End Event occurs constantly to refer in described task, sequential storage only needs a controll block to safeguard for carving at the same time a plurality of events that occur in active event queue AEQ to life event in active event queue AEQ according to occuring constantly.
5. system according to claim 2 is characterized in that, described layout device comprises:
The layout search unit, be used at the width that receives described receiving of task, behind height and the potential layout timetable PPTL, utilize the resource matched way of search of idle matrix, layout is carried out in discrete distribution among the described potential layout timetable PPTL constantly successively, and the clear area is carried out in the three-dimensional search space that described explorer provides search for, obtain start-up time and the corresponding resource of described receiving of task, wherein, described three-dimensional search is the three dimensional resource rectangular parallelepiped, and described three dimensional resource rectangular parallelepiped refers to the three-dimensional abstract resource model with space-time characterisation that two-dimentional resource area and time dimension form;
Layout Search Results feedback unit is used for to start-up time and the corresponding resource of described receiving of the task of described scheduler feedback.
6. system according to claim 5 is characterized in that, the three-dimensional search space that described layout search unit provides described explorer is carried out the clear area search and specifically comprised:
Described layout search unit can hold described receiving of task in each resource section constantly in the three-dimensional search space that described explorer provides continuous clear area, after the clear area is searched for successfully, with this clear area vertical scanning, so that this clear area still keeps idle condition in follow-up time, and this clear area can be taken the e time continuously by described receiving of task, and wherein e is the working time of task.
7. according to claim 1 to 6 each described systems, it is characterized in that, described resource management implement body is used for, adopt the resource management mode of resource section chained list, when receiving the resource status lastest imformation of described scheduler transmission, utilize weights in two-dimensional matrix corresponding to resource section to come the use state of the resource in the updating task layout areas, and with resource section in chronological sequence order be arranged in order, safeguard different resource using status constantly, be the search volume of described layout device coupling Resource Supply three-dimensional.
8. a scheduler is characterized in that, comprising:
Computing unit is used for extracting the width of receiving of task, highly, calculates the slackness of described receiving of task;
Generation unit, be used for utilizing active event queue AEQ to extract constantly movable in described task slackness, generate potential layout timetable PPTL, and width, height and the potential layout timetable PPTL of described receiving of task sent to described layout device;
Scheduling unit is used for receiving the layout result that described layout device feeds back, and dispatches waiting for the task in the scheduling queue according to described layout result, if dispatch unsuccessfully, then the described business that receives corresponding to deletion if dispatch successfully, then stored described receiving of task;
The scheduling result maintenance unit is used for the successful task of described scheduling unit scheduling is set up corresponding controll block in operation task formation ETQ and precontract task formation PTQ, safeguards Startup time and the layout areas of described receiving of task; Startup time and end of run according to described receiving of task upgrade active event queue AEQ constantly; And send the resource status lastest imformation according to scheduling result to explorer.
9. scheduler according to claim 8 is characterized in that, described scheduling result maintenance unit sends the resource status lastest imformation according to scheduling result to described explorer and specifically comprises:
When the task layout success, described scheduling result maintenance unit sends the resource status lastest imformation according to scheduling result to described explorer, control described explorer the state of all resources in task layout zone is labeled as busy state, prevent that this zone from being taken by follow-up work; When the deletion task, control described explorer the resource status in the deleted task layout zone is updated to the free time, make follow-up work can preengage resource in this zone.
10. according to claim 8 or 9 described schedulers, it is characterized in that described scheduler also comprises:
Active event queue AEQ, for generation moment store tasks time and in this constantly event number, the generation moment of the described task run start-up and operation End Event that receives occurs constantly to refer in described task, sequential storage only needs a controll block to safeguard for carving at the same time a plurality of events that occur in active event queue AEQ to life event in active event queue AEQ according to occuring constantly.
11. a reconfigurable task dispatching method is characterized in that, comprising:
Scheduler extracts the time-space attribute parameter of receiving of task, calculates the slackness of described receiving of task, generates the potential layout timetable PPTL of the described task layout that receives, and sends described potential layout timetable PPTL to the layout device;
Start-up time and the corresponding resource of described receiving of the task that obtains according to described potential layout timetable PPTL that scheduler receives that the layout device sends;
Scheduler is according to dispatching waiting for the task in the scheduling queue start-up time of described receiving of task and corresponding resource, and the Startup time of the task of maintenance schedule success and layout areas, the renewal of resource status in the control explorer.
12. method according to claim 11 is characterized in that, also comprises:
The layout device carries out the layout search according to each resource that constantly described explorer is provided among the described potential layout timetable PPTL that receives, obtain start-up time and the corresponding resource of described receiving of task, and start-up time and the corresponding resource of described receiving of task sent to scheduler.
13. according to claim 11 or 12 described methods, it is characterized in that, described scheduler extracts the time-space attribute parameter of receiving of task, calculates the slackness of described receiving of task, and the potential layout timetable PPTL that generates the described task layout that receives specifically comprises:
Extract the width of receiving of task, highly, calculate the slackness of described receiving of task, utilize active event queue AEQ to extract constantly movable in described task slackness, generate potential layout timetable PPTL.
14. method according to claim 12, it is characterized in that, described layout device carries out the layout search according to each resource that constantly described explorer is provided among the described potential layout timetable PPTL, and the start-up time and the corresponding resource that obtain described receiving of task specifically comprise:
The layout device is according to the width of described receiving of task, height and potential layout timetable PPTL, utilize the resource matched way of search of idle matrix, layout is carried out in discrete distribution among the described potential layout timetable PPTL constantly successively, and the clear area is carried out in the three-dimensional search space that described explorer provides search for, obtain start-up time and the corresponding resource of described receiving of task, wherein, described three-dimensional search is the three dimensional resource rectangular parallelepiped, and described three dimensional resource rectangular parallelepiped refers to the three-dimensional abstract resource model with space-time characterisation that two-dimentional resource area and time dimension form.
15. method according to claim 14 is characterized in that, the three-dimensional search space that described layout device provides described explorer is carried out the clear area search and is specifically comprised:
Described layout device can hold described receiving of task in each resource section constantly in the three-dimensional search space that described explorer provides continuous clear area, after the clear area is searched for successfully, with this clear area vertical scanning, so that this clear area still keeps idle condition in follow-up time, and this clear area can be taken the e time continuously by described receiving of task, and wherein e is the working time of task.
16. method according to claim 11, it is characterized in that, described scheduler is according to dispatching waiting for the task in the scheduling queue start-up time of described receiving of task and corresponding resource, and the Startup time of the task of maintenance schedule success and layout areas, the renewal of resource status specifically comprises in the control explorer:
Scheduler is according to the start-up time of described receiving of task and corresponding resource deleting or store waiting for the task in the scheduling queue; For the successful task of scheduling, in operation task formation ETQ and precontract task formation PTQ, set up corresponding controll block, safeguard Startup time and the layout areas of described receiving of task; Startup time and end of run according to described receiving of task upgrade active event queue AEQ constantly; And control the renewal that described explorer carries out resource status according to scheduling result;
Explorer is according to described scheduler task, the resource status in the updating task layout areas, and provide three-dimensional search volume for described layout device.
17. method according to claim 16 is characterized in that, described explorer is according to described scheduling result, the resource status in the updating task layout areas, and specifically comprise for described layout device provides three-dimensional search volume:
Described explorer adopts the resource management mode of resource section chained list, when receiving the resource status lastest imformation of described scheduler transmission, utilize weights in two-dimensional matrix corresponding to resource section to come the use state of the resource in the updating task layout areas, and with resource section in chronological sequence order be arranged in order, safeguard different resource using status constantly, be the search volume of described layout device coupling Resource Supply three-dimensional.
CN 200910259580 2009-12-21 2009-12-21 Reconfigurable task processing system, scheduler and task scheduling method Expired - Fee Related CN101710292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910259580 CN101710292B (en) 2009-12-21 2009-12-21 Reconfigurable task processing system, scheduler and task scheduling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910259580 CN101710292B (en) 2009-12-21 2009-12-21 Reconfigurable task processing system, scheduler and task scheduling method

Publications (2)

Publication Number Publication Date
CN101710292A CN101710292A (en) 2010-05-19
CN101710292B true CN101710292B (en) 2013-03-27

Family

ID=42403084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910259580 Expired - Fee Related CN101710292B (en) 2009-12-21 2009-12-21 Reconfigurable task processing system, scheduler and task scheduling method

Country Status (1)

Country Link
CN (1) CN101710292B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012838A (en) * 2010-11-30 2011-04-13 中国人民解放军信息工程大学 Real-time re-configurable task dispatching method by adopting heuristic configuration retention strategy
WO2013019201A1 (en) * 2011-07-31 2013-02-07 Hewlett-Packard Development Company, L.P. Incident handling
CN102999435B (en) * 2011-09-16 2017-02-22 上海大学 Two-dimensional task placement method of reconfigurable unit of HRCA (heterogeneous reconfigurable computing array) system
CN103336756B (en) * 2013-07-19 2016-01-27 中国人民解放军信息工程大学 A kind of generating apparatus of data computational node
CN103559154B (en) * 2013-11-06 2016-03-23 东南大学 The method of memory access time delay is hidden in a kind of reconfigurable system
CN105700940B (en) * 2014-11-25 2019-05-31 深圳市中兴微电子技术有限公司 A kind of statistical multiplex method of scheduler and scheduler
CN104615488B (en) 2015-01-16 2018-01-19 华为技术有限公司 The method and apparatus of task scheduling in heterogeneous multi-core reconfigurable calculating platform
CN104778083B (en) 2015-03-27 2018-07-03 华为技术有限公司 The method and apparatus of task scheduling in heterogeneous multi-core reconfigurable computing platform
CN106155977B (en) * 2015-06-03 2019-07-30 上海红神信息技术有限公司 Restructural method for managing resource and system in reconfigurable system
CN104932945B (en) * 2015-06-18 2018-05-18 合肥工业大学 A kind of out of order multi-emitting scheduler of task level and its dispatching method
CN106406246B (en) * 2015-07-31 2019-09-20 中国联合网络通信集团有限公司 The method and device of scheduling message transmission
CN107391248B (en) * 2017-07-28 2019-10-25 四川华泰电气股份有限公司 Multilevel feedback queue dispatching method for STM32 system
CN109995824B (en) * 2017-12-29 2022-10-04 阿里巴巴集团控股有限公司 Task scheduling method and device in peer-to-peer network
CN109471726B (en) * 2018-10-26 2020-04-07 国家电网有限公司 Method and device for distributing hardware resources by using three-dimensional model
CN111176815B (en) * 2019-12-30 2023-09-19 青岛海尔科技有限公司 Task scheduling method and device of operating system
CN113296917B (en) * 2021-07-26 2021-11-02 北京元知创智科技有限公司 Multi-service system service event subscription scheduling method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1770518A2 (en) * 2005-06-27 2007-04-04 @Road, Ltd Resource Scheduling Method and System
CN1993677A (en) * 2004-07-30 2007-07-04 法国原子能委员会 Task processing scheduling method and device for implementing same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1993677A (en) * 2004-07-30 2007-07-04 法国原子能委员会 Task processing scheduling method and device for implementing same
EP1770518A2 (en) * 2005-06-27 2007-04-04 @Road, Ltd Resource Scheduling Method and System

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特表2004-533667A 2004.11.04

Also Published As

Publication number Publication date
CN101710292A (en) 2010-05-19

Similar Documents

Publication Publication Date Title
CN101710292B (en) Reconfigurable task processing system, scheduler and task scheduling method
CN103426072B (en) The order processing system of a kind of high concurrent competition stock and disposal route thereof
CN101976205B (en) Electronic map technology-based talkback mobile phone task scheduling management system and method
US5764898A (en) System for task tracking and controlling electronic mail
JP4921727B2 (en) Multiple planning session cooperation system using time constraint, method and product
CN102592198B (en) A kind of workflow engine supporting composite service
CN111311116B (en) Intelligent park-based vehicle scheduling method, device, equipment and storage medium
CN101373509B (en) RFID intermediate part based on distributed ALE
CN101923490A (en) Job scheduling apparatus and job scheduling method
CN102662725B (en) Event-driven high concurrent process virtual machine realization method
CN102541959B (en) Method, device and system for scheduling electron transport layer (ETL)
CN111858027B (en) Cooperative processing method and system for software robot
CN102176122B (en) Automatic control system based on finite automaton and control method thereof
US10210284B2 (en) Method and system for managing data in a manufacturing execution system
CN101950260A (en) Processor program dispatching method and device
CN112559152B (en) Distributed task registration and scheduling method and system based on asynchronous programming
CN107451211B (en) A kind of download system based on RabbitMQ and MongoDB
CN113119127A (en) Task scheduling method and system for RPA robot
CN110503318A (en) Comprehensively modularized aviation electronics processing system resource distribution and Simulation Evaluation platform
CN115242660B (en) Heterogeneous computing power federal system based on centralization, networking and execution method
CN103514036A (en) Scheduling system and method for event trigger and batch processing
Buzacott et al. Impact of flexible machines on automated manufacturing systems
CN100396061C (en) A method for controlling asynchronous operation by using state machine
CN110347461B (en) Airplane cockpit human-computer interface information scheduling system and method based on migration workflow
CN101354763A (en) Method and system for scheduling resource

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

Granted publication date: 20130327

Termination date: 20181221

CF01 Termination of patent right due to non-payment of annual fee