Locked tasks

Angelo Fraietta angelo_f at bigpond.com
Thu Jun 5 22:36:03 UTC 2003



Chris Johns wrote:

> Angelo Fraietta wrote:
>
>> If two tasks have the same priority and one of them goes into a 
>> locked up state, such as a while loop, will the other task get 
>> scheduled again if the locked task does not specifically relinquish?  
>> What I believe is happening is that my termios task is getting locked 
>> out at the write but preventing my other task of equal priority to run.
>>
>> Is there a way to use timeslices so a task never gets all cpu usage?
>>
>
> The classic API has a timeslice option. I am not sure about the POSIX 
> or ITRON APIs.
>
> Check the task modes for the 'rtems_task_create' call.
>
I have been using this
  status = rtems_task_create(Task_name, 10, RTEMS_MINIMUM_STACK_SIZE * 
10, RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_ATTRIBUTES, &Task_id );

Does the default attributes use timeslices?

-- 
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page


http://www.users.bigpond.com/angelo_f/

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)








More information about the users mailing list