Tasks priority and time slice

Adam Lackorzynski adam at os.inf.tu-dresden.de
Mon Jul 9 21:04:16 CEST 2012


On Mon Jul 09, 2012 at 11:14:01 +0200, Pierre Larus wrote:
> I am running two para-virtualized OS on L4RE. I would like to define tasks
> priority and time slice.
> The real time scheduling extensions does not seem to be implemented on ARM.
> But I have find this code in a Ned example:
> scheduler =  L4.Env.mem_alloc:create(L4.Proto.Scheduler, 0x78, 0x70)
> I don't understand how to use second and third arguments.

The second is the maximum priority and the third is the base prio, i.e.
when you use for example prio 3 in your program it will get 0x73
globally (better: 0x73 in the context of the running script). Any prio
bigger than 8 in the program will be capped to 0x78.

Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/

More information about the l4-hackers mailing list