preemption question
Stan
zylog at club-internet.fr
Mon Mar 11 12:07:35 UTC 2002
Hi,
if :
***********************************
long c1, c2, c3;
rtems_task t1(
rtems_task_argument argument
)
{
c1=0;
while(1){
c1++;
}
}
rtems_task t2(
rtems_task_argument argument
)
{
c2=0;
while(1){
c2++;
}
}
rtems_task t3(
rtems_task_argument argument
)
{
c3=0;
while(1){
c3++;
}
}
***********************************
and tasks mode = RTEMS_PREEMPT + RTEMS_NO_TIMESLICE, with egal priority.
Which has to be the result after n second?
c1 >0
c2 =0
c3 =0
or
c1 >0
c2 >0
c3 >0
Thanks a lot.
Note: creation in order t1,t2 and t3.
Stan .
More information about the users
mailing list