Mail Archives: djgpp/1996/07/18/22:00:13
> I've been working on a preemptive multitasking library and I've finally
> gotten it to work.  The only problem is that the task-switching is slow.
> I'm hooking IRQ0 with the default 18.2 tick/sec.  I've speeded up the 
> timer to about 400hz without problems, but anything above that explodes.
Hmm.. I'm no interrupt expert (not by a long shot =), but it sounds 
like your interrupt code is taking too long - try optimizing it.  The 
usual way to solve this is to just set a flag in the interrupt, and
let some routine check it and do whatever's nessecary - I can't see 
any way of doing that with a task switcher though =(
--
Lee Braiden  (lee_b AT celestia DOT dnet DOT co DOT uk)
<Celestia>
- Raw text -