piclist 2001\01\19\015206a >
Thread: Has anyone made their own multitasker for a PIC or SX device?
www.piclist.com/techref/ubicom/devices.htm?key=sx
flavicon
face BY : Germain Morbe email (remove spam text)



Hello Neil,

i once did that on a 8049 in the late 80s.
I used an empty main loop to wait for the next int. Therefore all threads
did need to finish before the next int happened. Since every task was ended
before a second int, there was no need to store the exit point which is
always the same. Also the routines are always executed from the start. That
means no worry about the next entry point.
Drawback is to always waste some time in the empty mainloop.
On the other hand, if you let your threads execute until the next int
happens then you would waste no time but you will need to store your exit
point for the next entry.
But i think you will have no good chance to do that because the next int
will
pop you off your actual task without any warning.

Germain Morbe

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


<000701c081e4$4f5263a0$1601a8c0@software> 7bit

See also: www.piclist.com/techref/ubicom/devices.htm?key=sx
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Has anyone made their own multitasker for a PIC or SX device?

month overview.

new search...