• Aucun résultat trouvé

Analytic models of multitask processes

N/A
N/A
Protected

Academic year: 2021

Partager "Analytic models of multitask processes"

Copied!
3
0
0

Texte intégral

(1)

September 1981 LIDS-P-1139

ANALYTIC MODELS OF MULTITASK PROCESSES*

Timothy L. Johnson

Lecturer Senior Scientist

Department of Electrical Bolt, Beranek and Newman, Inc. Engineering 6 Computer Science 50 Moulton Street

Massachusetts Institute of Technology Cambridge, Massachusetts 02238 Cambridge, Massachusetts 02139

Abstract insight about generic problems in the design of such systems, nor do they provide ideas about how to rem-Asynchronous multitask processes occur in a edy or detect flaws. The results reported here con-wide variety of control applications ranging from stitute a modest step in that direction. They re-industrial control to computer operating systems, present a generalization of many models of deter-yet no analytical methods are available for study- ministic processor scheduling in that the tasks may ing their detailed behavior. The preliminary have feedback interactions and that scheduling and results reported here illustrate that a very gen- timing may be interdependent.

eral class of such processes can be represented by

discontinuous hybrid-state discrete-time systems. Model Development

Let tc[to.o) denote time. Three sets of state Background and Motivation variables will be identified:

A multitask process is characterized bya x1 - those states which vary continuously with time number of tasks which operate concurrently or se- and take on real values.

quentially, on an external resource or data base.

The timing of the tasks is generally asynchronous x2 - those states which are real-valued but change in that new task execution is initiated by the com- only at discrete instants of time.

pletion of previous tasks. If necessary, synchrony

and sequential ordering of tasks can be enforced in x3 those states which are discrete-valued and a number of ways through the task definitions them- (necessarily) change only at discrete instants selves. However in this research no such constraints of time.

are imposed: rather, the general qualitative

be-haviors which may arise in such systems are ana- The state set

lyzed. Only two basic assumptions are imposed: be assumed that these subsets of states are finite-(1) a task requires a finite amount of time and dimensional and readily distinguished.

storage to execute, and (2) task descriptions are

fixed, in that the execution of a task cannot alter Let the increasing sequence itk} denote the

its own nature nor the number or nature of any k

~~~~other~~

tasks,

~set

of all values of t for which changes in at least

2 3

one element of x or x occur, and let the values The range of possible behavior of such sys- of the states prior to and following tk e denoted tems is so large that the problem of conceptualiz- i i

ing, analyzing-and "debugging" multitask processes xk , xk respectively, for i = 1,2,3. In the se-is very common and enormously complex. In addition quel xk will be identified with xi. The instants to deterministic processor scheduling [9], two ap-tified with task initiation or ter proaches are presently in use: stochastic queue- {tk } will be idemtified with task initiation or terr ing analysis [1], [2] and simulation [3], [4]. mination times. Let the (finite) set of tasks in Queueing analysis is most useful for evaluating the the system be de-moted G = {G ...G . Associated

average performance properties of an operational 1 n

multitasking system, while simulation allows cer- with each task is an initiation function, a termi-tain undesirable properties of a planned system to nation function nd a state-update function

be discovered and corrected during the design

pro-.cess. Neither of these methods provides very much g.: X + {0,1} - initiation function for task j T

g.: X {

(0,11

- termination function for task *This research has been perfomed at the M.I.T. Lab- 0

oratory for Information and Decision Systems with f.: X X - state-update function for task j support provided by the U.S. Air Force Office of 3

Scientific Research under Contract F49620-80-C-0002.

The results presented here do not necessarily re- 1To simplify this exposition, these are assumed to present the views of the U.S. Government. beltima-imvarantw however, this assumption may be

To be presented at the 20th IEEE Conference on Decision and-Control, San Diego, CA., December 1981.

(2)

Each task is either "on" or "off: let G denote Other conflict-resolution methods, such as imposed to^ v ^ v sequential orderings, are also possible.

those which are off, so that G = GUG and GnG = '

(the null set). The subscript j will be used to Let jk E- be-the set of tasks active at tk. denote tasks which are "on" and j to denote tasks Let the transition mapping of (1) be given by O: which are "off". The task succession rule is as 1 1

follows: A transition time, tk is declared when- [0,)x X X so that the solution of

ever 1 2 3 1 X

ever (t) = f(x ,xkx) ; X (tk) = xk 1

I 123

(a) For some jC}{j , g (x ,x ,x3) undergoes a 0-1 is transition

or x (t) = (ttk,'x; xkxk (4)

(b) For some js{j}, g(x l,x2,x3) undergoes a 0+1 where XkXk are viewed as parameters. Define the transition positive function T: 2n x X - R to be the first Between task transition times, only the states x transition-time encountered with processes j E 2n can change, according to a state equation active 1 2,x )X.

active at t=t , with initial state x = ,x ,x ).

~1

~~1

2+ 3+ 0

x (t) = f(x (t), k , x k) (1) This can be tabulated by integrating (1) and apply-1 1+ ing rules (a) to (e). Let the function a: 2nxS+2 with x (tk) = Xk . At the completion time t of a define the next set of active tasks, determined

ts tetnfk mafrom the preceding priority rules, at the transition 'task the transformation

i

time defined by T. In other words,

[Xk

ki] 1 123X

Xk Xk tk+l = tk + T(jk' XkXk'xk ) (5)

jXkj = ( |x2|) X(jkXkXkXk) (2) 3k+l = (6)

xk' Xk The important point to observe is that, in principle, it is not necessary to include the continuous-time 2 2+ 3 .3 part of the dynamics, since T and T can be pre-is applied, with xk = Xk_1 and xk = Xk_1 . I T

isappliedwithxk and k k- Xk. computed from f, {g.}, and {g.}. At a transition time, it is possible that more

than one task terminates and/or more than one task In summary, the dynamics of the asynchronous is initiated. This produces an inherent conflict multitask system can always be represented in the situation which must be resolved in a consistent form

manner. For instance, if tasks jl and j2 terminate

together, it is not necessarily true that fj o f = tkl = + T(jkXk) jl

j2

fj2 o fjl (functional composition may not be com- 1 = f? xk) (7) mutative). Or if task jl is initiated when j2 ter- Jk

minates, then up-dating with fj2 may turn off jl ' while terminating jl may turn on j2 again, etc.

One set of further assumptions which resolves such where f? is thxe composition, according to priority,

conflicts is as follows: Jk

of the -transition functions (2) of the tasks com-(c) there is a fixed priority among task comple- ' pleting at tk+~. It is then clear that tk may be

tions (e.g. 1 > 2 > 3 > j >... >n) combined with and that3

obined with ik' and that xk may be combined with (d) all completions are performed first according jk to yield a general discontinuous hybrid

discrete-to priority, and then initiation functions are time system lExtensions to stochastic behavior of re-evaluated to redetermine which tasks (if I

any) should be initiated at the transition times. f,{fk } {g I and {gT} are readily accomodated. (e) the minimum completion time of every task is Qunalitative Properties

bounded below by a positive number.2

____________________2 ___The 1 finitea-state part of (7) may be further

2

This may be achieved by adding to x n "timers". A aggregated to Lproduce an equivalent real-state timer is reset by (2) to the minumum task completion discrete-time system with discontinuous transition time each time a task is initiated and tested for a function. In. (other special cases a purely finite-positive value in the corresponding task termination state system mray be derived. Systems cf this

(3)

eral class have been discussed by Johnson [5] and Kaliski and Lemone [6]. Their behavior may roughly approximate the behavior of discontinuous systems discussed in Utkin [7] and Johnson [8]. A possible behavior in this situation is a discrete-time ap-proximation to sliding mode behavior, which is closely akin to the phenomenon of "thrashing" that has been observed in heavily-loaded multitasking systems. Types of stability have been defined in

[8].

Conclusions

It has been shown that a broad class of real-time multitasking systems may be represented as discrete-time (discontinuous) finite dimensional dynamic systems. Some issues which remain to be investigated are: (1) consistency requirements for initiation and termination functions, (2) alterna-tive forms of conflict resolution (e.g., other than priority assignment), (3) minimal realizations and canonical forms, (4) development of design synthesis tools to obtain guaranteed performance.

References

[1] M.G. Kienzle and K.C. Sevcik, "Survey of Ana-lytic Queueing Network Models of Computer Sys-tems", Proc. 1979 Conf. on Simulation, Measure-ment and Modelling of Computer Systems, pp. 113-129.

[2] G.K. Hutchinson and J.J. Hughes, "A General-ized Model of Flexible Manufacturing Systems", Proc. Multi-Station Digitally-Controlled Mfg. Systems Workshop, Milwaukee, Wisc., Jan. 1977; pp. 88-115.

[3] Shannon, R.E., Systems Simulation: The Art and Science, Prentice-Hall, Inc., Englewood Cliffs, N.J., 1975.

[4] Pritsker, A.A.B., The GASP IV Simulation Lan-guage, J. Wiley & Sons, New York, 1974. [S] Johnson, T.L., "Finite-State Compensators for

Continuous Processes", Proc. 7th IFAC Congress, Helsinki, Finland, June 19.78, pp. 1823-1828. [6] Kaliski, M.E. and Lemone, K., "Discrete Codings

of Continuous Valued Signals", Proc. 14th Ann. Conf. on Info. Sci. and Sys., Johns Hopkins Univ., March 1980.

[7] Utkin, V.I., Sliding Modes and Their Applica-tion to Valuable-Structure Systems, MIR Pub-lishers, Moscow, 1978.

[8] Johnson, T.L., "Stability of Diced Systems", Proc. 19th IEEE Conf. on Decision and Control, Albuquerque, N.M., Dec. 1980.

(9] Gonzalez, M.J., "Deterministic Processor Sched-uling", ACM Computing Surveys, Vol; 9, No. 3, pp. 173-204.

Références

Documents relatifs

On this network of timed au- tomata represented in U PPAAL syntax, we formally prove by model-checking that multitask programming reduces the reaction time of the conveyor,

Based on the analysis of the cycles of the process graph, these studies simultaneously take into account the variable observability and the reliability of the sensors in order to

How is a historian of ideas even supposed to think that such quantities of text can be studied with the historian’s traditional method of investigation, namely close reading on one’s

Findings - The results suggest that the book value of other intangible assets of European listed firms is higher under IFRS than Local GAAP and has more informative

Note that in this case (which is a particular case of existential announcements) the circularity problem does not exist, as consistency of a state (w, σ, c) can be trivially checked

Different upper ontologies employ the term ‘process’ quite differently; but the kind of process on which we focus is allegedly an ‘ongoing’ occurrent that is typically expressed

Unfortunately, the random seed values for the models trained and evaluated on the test and China data sets were lost and so the (train and dev) and (test and China) results are from

The technologies listed above solve processing and consensus problems in different ways. Currently, there is a rapid development of this area, and there is no