delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/18/22:00:13

Message-Id: <199607190159.VAA19129@delorie.com>
Comments: Authenticated sender is <lb8412 AT mailhost DOT dnet DOT co DOT uk>
From: "Lee Braiden" <lee_b AT celestia DOT dnet DOT co DOT uk>
Organization: Celestia
To: djgpp AT delorie DOT com
Date: Thu, 30 May 1996 15:35:07 +0
MIME-Version: 1.0
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)
<Celestia>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019