Timeslicing question
Angelo Fraietta
afraiett at bigpond.net.au
Fri Oct 3 02:10:51 UTC 2003
Kenneth Peters wrote:
> Ugh. Thanks for the quick reply. This is ugly, though, if I have to go
> through and retrofit my task functions to the POSIX API.
>
> At first glance, it does not look like that would work, since the
> function code reads as too tied to POSIX threads. However, maybe a
> straightforward modification would provide me with a Classic function
> that would tweak the budget_algorithm. It looks like that would work,
> but I don't know if that is a good idea or if it will mess up the
> Classic threads (or if other Classic thread functions will not
> preserve the unexpected budget_algorithm).
You could place a rtems_task_wake_after 1 where you require the thread
to relinquish.
Maybe a task relinquish couild be added to the classic API for this
exact purpose. I remeber Nucleus ATI had that function and it was useful
for that exact purpose.
--
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