piclist 2000\04\17\121643a >
Thread: Simultaneous Interrupts
face BY : Don Hyde email (remove spam text)

A PIC multithread OS can be done if the individual threads are not allowed
to do any call's and return's.  For each thread, you need to store the same
stuff that the interrupts save (w, status, PCLATH, etc.)  Since most PIC's
have no way of reading the stack (except for the 18Cxxx), there is no way
for the OS to save the call/return history of individual tasks.  This
limitation makes PIC multitasking, well..., pretty much useless.

Much the same end effect can often be accomplished by writing code that
implements multiple state machines, in which case you may be able to get by
with as little as one byte of state per machine.  You might even manage to
implement something resembling preemptibility.

> {Original Message removed}

See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
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) Simultaneous Interrupts

month overview.

new search...