On Apr 6, 5:34 pm, mattschinkel <[email protected]> wrote:
> > I'm sure real multitasking would be possible (with blocking delays in > the task procedures), although it would run quite slow on 8bit > processors. This is real Multitasking, It's Co-operative, not pre-emptive and instead of a separate Process/Semaphore/Task/Suspend library, it's designed into the code. Approximately how much ram would it require for 3 tasks? > Could it be written in JAL, or does it require ASM? > > Matt. The major issue is that the PIC 10 to PIC18 only has one HW stack. Only the 18F has Push & Pop. So you have to do stacks entirely in software. To be any use "Suspend", "Send" <signal>, "Wait" <signal> all have to work at any call depth of procedure/function calls. It's going to be really poor and eat a lot of RAM. I think this is why Kyle never went further, and why suspend in JAL can only be in top level of the Task. I think Task and Suspend should be given a decent funeral. It's not for PIC, but for ARM. -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
