Why RTEMS timeslice is not as configured.

Fernando Nicodemos fgnicodemos at ncb.ind.br
Mon Jul 8 19:59:08 UTC 2013


Dears,

I configured 4 equal Tasks in RTEMS and the table as follows:

rtems_task_create(
Task_name[ 0 ],
2,
RTEMS_MINIMUM_STACK_SIZE * 2,
RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_ASR | RTEMS_INTERRUPT_LEVEL(0),
RTEMS_GLOBAL,
&Task_id[ 0 ]
);

They will operate in round-robin.

#define CONFIGURE_MICROSECONDS_PER_TICK 10000
#define CONFIGURE_TICKS_PER_TIME_SLICE 50

The result should show a timeslice of 500 milisseconds, but what i see in
osciloscope is more then 500ms, exactly 834ms. This code is running in a
ERC32 development kit from Atmel.

Any ideas what is missing for this extra time?

Thanks,

*Fernando G. Nicodemos*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20130708/4c68754c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4Task_round_robin.jpg
Type: image/jpeg
Size: 37718 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20130708/4c68754c/attachment.jpg>


More information about the users mailing list