[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic Priority



Dynamic Priority
~~~~~~~~~~~~~~~~

Given

PRI PAR i = 1 FOR N
  P[i]

We could move the processes between the different priority queues (thinking
of a software implementation) so that this changed to

PRI PAR i= 1 FOR N
  P[new[i]]

That would happen in response to something - an event, I suppose: we have 
nothing else. Would such a mechanism be adequate?

If so, I *think* (haven't checked) that this is simply expressed in terms of
existing CSP(P) interrupt operator. I mentioned it before here in a different
context: hard real time systems. Adding this simple primitive to occam might
cover such things and much more. 

Adrian
-- 
A E Lawrence, MA., DPhil.  	adrian.lawrence@xxxxxxxxxxxxxx
MicroProcessor Unit, 13, Banbury Road, Oxford. OX2 6NN. UK.                
Voice: (+44)-1865-273274,  Fax: (+44)-1865-273275