Re: Task scheduler

"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]> Tue, 8 Jun 2004 14:53:02 -0500
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <00bf01c44d92$358be0e0$764000b4@kardis>
>   - I think that the task scheduler manages tasks but, which is the
> timeslice among tasks?, can I program this time?, where?.

The default time slice is 4 ms (more accurately, it is 4 ticks of timer 0).
It is not programmable, however, you can write your own custom tick handler.
The ethernet speaker appnote does this and might be used as a guide:
http://pdfserv.maxim-ic.com/en/an/app609.pdf

>  - Does this timeslice manage the useriopoll's entry?.

Yes, but again, if you overwrite the tick interrupt you could do an iopoll
on every tick if you wanted.

> - The userpoll is on every 4 milliseconds. What´s the matter if it lasts
> more than this time?. Is it stopped or running until its end?.

With the timer tick that is in the ROM, it would try to call useriopoll
again even if it was still running. We don't stop the useriopoll function.
Generally, it shouldn't be running that long.  The useriopoll function is
intended to allow you to check for some input and wake up a task that was
waiting for it.

Kris

----- Original Message -----
From: <[email protected]>
To: <tini-6tN4nzCoH/[email protected]>
Sent: Monday, June 07, 2004 11:28 AM
Subject: [TINI]Task scheduler


Hello list,

I am developing the skeleton of the application and I have some doubts.

  - I think that the task scheduler manages tasks but, which is the
timeslice among tasks?, can I program this time?, where?.

  - Does this timeslice manage the useriopoll's entry?.

  - The userpoll is on every 4 milliseconds. What´s the matter if it lasts
more than this time?. Is it stopped or running until its end?.

Thanks and best regards.

R.Leon


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini



_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini