Message-Id: <199607190159.VAA19129@delorie.com> Comments: Authenticated sender is From: "Lee Braiden" Organization: Celestia To: djgpp AT delorie DOT com Date: Thu, 30 May 1996 15:35:07 +0 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: preemptive multitasking for dj Reply-to: lee_b AT celestia DOT dnet DOT co DOT uk > 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)