Message-ID: <32795181.2C20@gbrmpa.gov.au> Date: Fri, 01 Nov 1996 09:25:22 +0800 From: Leath Muller Reply-To: leathm AT gbrmpa DOT gov DOT au Organization: Great Barrier Reef Marine Park Authority MIME-Version: 1.0 To: snarfy AT goodnet DOT com CC: djgpp AT delorie DOT com Subject: Re: Preemptive Multitasking under DPMI References: <559ej1$bg6m AT news DOT goodnet DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit snarfy AT goodnet DOT com wrote: > > >Onto a different topic: > > > >As for DOS multi-tasking, the implementation I will take is to use the > >uclock timer, select a time slice size - say, 10ms, and run my > >subroutines > >from my uclock timer interrupt (well, thats the plan anyway... :) that > >way my uclock interrupt will decide what gets to run when, and will as a > >result be fully pre-emptive. I was also looking at having an interrupt > >run at say 44100 times a second, and use my own sound mixing code. This > >interrupt would pre-empt my uclock interrupt, having absolute priority. > >Isnt this pre-emptive multi-tasking? (although its for a dedicated > >application and I have no idea how I am going to do it yet... :) > Check out the lwp package at http://www.goodnet.com/~snarfy/threads.html > and save yourself some headaches. :) I did...I will probably use the threads package to do the mouse, keyboard etc I/O type of stuff. Unfortunately, it only interrupts at 50Hz (is this right?) so its not fast enough for real-time sound mixing using the intterupts... Unless anybody has any other ideas? ;) Say, does anybody know anything about texture mapping? My code is giving me a major head ache... :) Leathal.