SCHED_RR in Classic API?
    Kamen Penev 
    kamen at penev.net
       
    Fri May 30 00:44:44 UTC 2003
    
    
  
Joel Sherrill wrote:
> So you can call pthread_XXX on a task created using the Classic API.
> This would be the easiest way to get this scheduling mode.
>  
>
After successfully creating a classic task with:
   status = rtems_task_create(Task_name[MON_TASKNUM],
                              200,
                              RTEMS_MINIMUM_STACK_SIZE * 
MONITOR_STACK_FACTOR,
                              RTEMS_PREEMPT|RTEMS_TIMESLICE,
                              RTEMS_FLOATING_POINT,
                              &Task_id[MON_TASKNUM]);
   assert (RTEMS_SUCCESSFUL == status);
The following fails:
   pstatus = pthread_setschedparam(Task_id[MON_TASKNUM],
                                    SCHED_RR,
                                    &xSteperPosixParams);
pstatus is ESRCH, which was the result of _Objects_Get searching for the 
classic Task_id in _POSIX_Threads_Information (via _POSIX_Threads_Get)..
What am I missing?
Kamen
    
    
More information about the users
mailing list