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

Method for scheduling executions of real-time processes to guarantee satisfaction of various timing constraints

Inactive Publication Date: 2008-10-28
XU JIA
View PDF3 Cites 55 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

"The present invention provides a system and methods for efficiently scheduling the executions of both periodic and asynchronous real-time processes. The system combines pre-run-time scheduling techniques with run-time scheduling techniques, allowing for the optimization of processor capacity and the satisfaction of complex constraints and deadlines. The system takes into account information about the beginning and end times of time slots reserved for the execution of periodic processes, as well as the characteristics of the processes. The system also uses a simulation procedure to accurately compute the worst-case response times of asynchronous processes. The system can schedule the executions of both periodic and asynchronous processes with hard or soft deadlines, and with different a priori knowledge of the process characteristics. Overall, the system provides a more efficient and effective way to manage complex applications in real-time."

Problems solved by technology

Embedded, real-time systems with high assurance requirements often must execute many different types of processes with complex timing and other constraints.
Some of the processes may have hard deadlines and some of them may have soft deadlines.
Some processes may have complex constraints and dependencies between them.
In this case, a process may not be able to start before those other processes are completed.
For some periodic processes, they may not be able to start immediately at the beginning of their periods.
In this case, those processes have release time constraints.
(a) High run-time overhead due to scheduling and context switching;
(b) Difficulty in analyzing and predicting the run-time behavior of the system;
(c) Difficulty in handling various application constraints and process dependencies;
(d) Low processor utilization.
High run-time overhead is partly due to the fact that embedded, real-time applications are becoming more and more complex, with an ever increasing number of processes and additional constraints and dependencies between processes.
The amount of run-time resources consumed by the scheduler in order to compute the schedule, grows very rapidly as the number of processes and constraints increase.
The scheduler often needs to perform many time consuming process management functions, such as suspending and activating processes, manipulating process queues, etc.
In addition, since the priority scheduler does not know the schedule before run-time, it has to assume the worst case and save / restore complete contexts each time a process is preempted by another process.
The run-time behavior of the scheduler can be very difficult to analyze and predict accurately.
It was observed that because the clock interrupt handler had a priority greater than any application task, even a high priority task could suffer long delays while lower priority tasks are moved from one queue to another.
Accurately predicting the scheduler overhead proved to be a very complicated task, and the estimated scheduler overhead was substantial, even though it was assumed that the system had a total of only 20 tasks, tasks did not have critical sections, and priorities are not to change.
Such difficulties would be many times greater if there existed additional complex application constraints that would have to be satisfied by the synchronization mechanism at run-time.
It is difficult to extend the schedulability analysis for priority scheduling to take into account application constraints that frequently exist in real-time applications, such as precedence constraints, release times that are not equal to the beginning of their periods, offsets, low jitter requirements (limits on the variation in time a computed result is output to the external environment from cycle to cycle), etc.
Despite considerable effort spanning more than a decade to extend the original PCP protocol to handle additional constraints, not much has been accomplished to this end, as evidenced by the absence of methods that can satisfactorily deal with such constraints in the survey by Fidge mentioned above.
Additional application constraints increase the computational complexity of scheduling problems, which already have high computational complexity whenever processes contain critical sections.
When all the scheduling is performed at run-time, the scheduler does not have enough time to find solutions for complex problems.
However, additional application constraints are most likely to conflict with the user assigned priorities.
It is not generally possible to map the many different execution orderings of processes that are required by the different application constraints in a large complex system onto a rigid hierarchy of priorities.
Consequently, the system designer is faced with the impossible task of trying to simultaneously satisfy many different application constraints with one rigid hierarchy of priorities.
Because of the inherent constraints built into the fixed priority scheduling model, (e.g. fixed priorities) and because scheduling is performed at run-time, attempts to take into account additional constraints typically result in suggestions that either are only applicable to a few very special cases, or make drastically simplifying assumptions, which significantly reduce schedulability, or are extremely complicated, making the run-time behavior of the system very difficult to analyze and predict.
This is largely due to the fact that when all scheduling activities are performed at run-time, the scheduler does not have enough time to find good solutions to complex scheduling problems, and can only afford to use crude, suboptimal methods that do not take into account all the available information.
Systems that use priority scheduling methods have a much smaller chance of satisfying timing constraints, because priority-driven methods are only capable of producing a very limited subset of the possible schedules for a given set of processes.
This severely restricts the capability of priority-driven systems and methods to satisfy timing and resource sharing constraints at run-time.
Hence, using priority-driven systems may increase the cost of the system to non-competitive levels.
In general, deadlock avoidance at run-time requires that the run-time synchronization mechanism be conservative, resulting in situations where a process is blocked by the run-time synchronization mechanism, even though it could have proceeded without causing deadlock.
In contrast, when processes are scheduled at run-time, the time available to the scheduler is very limited.
This limits the ability of the scheduler to find a feasible schedule and to take into account the different types of constraints and knowledge about the system processes.
However, in the past, cyclic executives have mainly been constructed by hand, and are difficult to construct and maintain.
(1) Previously there did not exist any system or method that integrates the run-time scheduling of asynchronous processes with the pre-run-time scheduling of periodic processes, that could effectively satisfy exclusion relations, precedence relations, offsets and release times constraints between the periodic processes, as well as any exclusion relation between a periodic process and an asynchronous process, and any exclusion relation between two asynchronous processes, while making efficient use of available processor capacity, and maximizing the chances of satisfying all the timing constraints.
Previous systems and methods for scheduling periodic processes and asynchronous processes, either perform all the scheduling activities at run-time, or assume that any process can be preempted by any other process at any time (no exclusion relations can be enforced, so one cannot prevent certain data inconsistencies that are caused by more than one process simultaneously accessing shared data), or assume that all aperiodic processes have soft deadlines, or assume that all processes are non-preemptable, which reduces the system's flexibility in meeting deadlines, or use ad hoc schemes that do not make efficient use of available processor capacity, and reduce the chances of satisfying all the timing constraints.
Previous systems and methods use ad hoc methods that do not make the most efficient use of available processor capacity.
Such arbitrary constraints seriously restrict the system's ability to meet complex timing constraints.
There are certain asynchronous processes that cannot be converted into periodic processes at all, or if converted, may take up far too much processor capacity compared with allowing them to remain asynchronous.
However, the technique described in the Mok article did not consider the case of non-zero offsets, that is, non-zero intervals between time 0, that is, the system start time, and the beginning of their first periods.
Furthermore, the described technique only deals with one process.
When more than one process must be converted into periodic processes, the new periodic processes may have timing conflicts with each other and with the original set of asynchronous and periodic processes.
Previous systems and methods use ad hoc methods that do not make the most efficient use of available processor capacity.
Such arbitrary constraints seriously restrict the system's ability to meet complex timing constraints.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for scheduling executions of real-time processes to guarantee satisfaction of various timing constraints
  • Method for scheduling executions of real-time processes to guarantee satisfaction of various timing constraints
  • Method for scheduling executions of real-time processes to guarantee satisfaction of various timing constraints

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0210]Assume 4 asynchronous processes with hard deadlines and known characteristics (A-h-k processes), and 4 periodic processes with hard deadlines and known characteristics (P-h-k processes) as follows.

a0: ca0=2,da0=2,mina0=1,000;

a1: ca1=2,da7=7,mina1=1,000;

a2: ca2=10, da2=239, mina2=1,000;

a9: ca9=10,da9=259,mina9=1,000;

p4: rp4=0,cp4=26,dp4=200,prdp4=200,op4=0;

p5: rp5=30,cp5=16,dp5=50,prdp5=200,op5=0;

p6: rp6=0,cp6=26,dp6=200,prdp6=200,op6=0;

p7: rp7=0, cp7=16, dp7=200, prdp7, =200,op7=0.

[0211]The adjusted computation times for p4,p5,p6,p7 will respectively be:

cp4=cp4+ca0+ca1=26+2+2=30;

cp5′=cp5+ca0+ca1=16+2+2=20;

cp6′=cp6+ca0+ca1=26+2+2=30;

cp7′=cp7+ca0+ca1=16+2+2=20.

(end of example)

[0212]One technique for converting an asynchronous process into an equivalent periodic process is described in the aforenoted 1983 article by Mok in which an asynchronous process (ca, da, mina) can be converted into a periodic process (op, rp, cp, dp, prdp) which satisfies the following conditions: cp=ca, d...

example 2

[0250]Assuming that in addition to the processes in Example 1 above, the following A-h-k process:

a3: ca3=10,da3=114,mina3=114.

If the procedure above is used to convert a3 into a periodic process newp3, prior to entering the while loop, dnewp3=ca3+cp5+ca0+ca1=10+16+2+2=30. In the first iteration of the while loop, dprevious=dnewp3=30; dnewp3=ca3+ca0+ca1=10+2+2=14.

[0251]Since dprevious≠dnewp3, deadlinefound=false. In the second iteration of the while loop, dprevious=dnewp3=14; dnewp3=ca3+ca0+ca1=10+2+2=14. Since dprevious=dnewp3, deadlinefound=true. prdnewp3=(da3−dnewp3+1)=114−14+1=101.

[0252]If the adjustperiod function and select_exp_upperbounds procedure described herein with reference to constructing a feasible pre-run-time schedule are used to adjust the period prdnewp3, by using prdmax=prdp4=200, and the following initial exponent upperbound values: exp2init=5, exp3init=3, exp5init=2, exp7init=1, exp11init=0, and use the value 24 for the parameters Cm,Cm11,Cm7, Cm5, Cm3, Cm2, and...

example 3

[0315]Assuming that the threshold value for each A-h-k process is set as follows: threshold(a0)=10, threshold(a1)=10, threshold(a2)=1, threshold(a3)=2.5, threshold(a9)=1, the procedure above will calculate the following for each of the processes in Examples 1-2.

[0316]a0:

dnewp0=2; prdnewp0≦min(da0−dnewp0+1, mina0)=2−2+1=1<cnewp0=2

a0 will NOT be converted into a new periodic process and will remain asynchronous and belong to the set A-h-k-a.

[0317]a1:

dnewp1=ca1+┌dnewp1 / mina0┐ca0=2+┌4 / 1000┐2=4

prdnewp1=min(da1−dnewp1+1,mina1)=7−4+1=4

RPCnewp1=cnewp1′ / prdnewp1=4 / 4=1

RPCa1=┌(dnewp3−rnewp3) / mina1┐ca1 / prdnewp3+┌(dp4−rp4) / mina1┐ca1 / prdp4

+┌(dp5−rp5) / mina1┐ca1 / prdnewp3+┌(dp4−rp4) / mina1┐c11 / prdp4

+ca1 / mina1=2 / 100+2 / 200+2 / 200+2 / 200+2 / 200+2 / 1000

=0.062a1)*RPCnewp1=10*1=10

a1 will NOT be converted into a periodic process, and will remain asynchronous and belong to the set A-h-k-a.

[0318]a3:

dnewp3=ca3+┌dnewp3 / mina0┐ca0+┌dnewp3 / mina1┐ca1=10+┌30 / 1000┐2+┌+ / 1000┐2=14

prdnewp3=min(da3−dnewp3+1,mina3)=114−1...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A system and methods for scheduling executions of real-time processes, including periodic processes and asynchronous processes to guarantee satisfaction of various timing constraints. The system schedules their executions in two phases: a pre-run-time (off-line) phase performed by a pre-run-time scheduler, and a run-time (on-line) phase performed by a run-time scheduler.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS[0001]This application is a division of prior application Ser. No. 09 / 336,990, filed Jun. 21, 1999 now U.S. Pat. No. 7,165,252. Prior application Ser. No. 09 / 336,990, filed Jun. 21, 1999, is hereby incorporated by reference.FEDERALLY SPONSORED RESEARCH[0002]Not ApplicableNAMES OF PARTIES TO A JOINT RESEARCH AGREEMENT[0003]Not ApplicableSEQUENCE LISTING OR PROGRAM[0004]Not ApplicableFIELD OF THE INVENTION[0005]This invention relates to the field of scheduling methods such as scheduling of processes carried out by computer or other systems, and in particular to improved methods of scheduling execution of various types of processes with various types of timing properties and constraints.BACKGROUND OF THE INVENTION[0006]In operation of a computer system, executions of certain periodically or asynchronously occurring real-time processes must be guaranteed to be completed before specified deadlines, and in addition satisfying various constraints and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(United States)
IPC IPC(8): G06F9/46
CPCG06F9/4887G06F2209/483
Inventor XU, JIA
Owner XU JIA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products