delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/31/01:21:09

From: "Alexander Russell" <alexander DOT russell AT telus DOT com>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos,comp.os.msdos.djgpp,comp.os.msdos.misc
References: <bf50ce95 DOT 0110242053 DOT 1568dcea AT posting DOT google DOT com> <B9NB7.30940$%K4 DOT 5763583 AT news1 DOT telusplanet DOT net> <bf50ce95 DOT 0110260054 DOT 1153f72a AT posting DOT google DOT com> <eRoC7.38433$%K4 DOT 6914940 AT news1 DOT telusplanet DOT net> <8ea1626e DOT 0110280229 DOT 68dc811b AT posting DOT google DOT com> <BkXC7.55360$Og4 DOT 7783751 AT news0 DOT telusplanet DOT net> <bf50ce95 DOT 0110301711 DOT 78e48e58 AT posting DOT google DOT com>
Subject: Re: Control timing
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <UwMD7.63547$Og4.9393877@news0.telusplanet.net>
Date: Wed, 31 Oct 2001 06:05:40 GMT
NNTP-Posting-Host: 142.179.73.197
X-Trace: news0.telusplanet.net 1004508340 142.179.73.197 (Tue, 30 Oct 2001 23:05:40 MST)
NNTP-Posting-Date: Tue, 30 Oct 2001 23:05:40 MST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"jeffchan" <jeffkhc AT netvigator DOT com> wrote in message
news:bf50ce95 DOT 0110301711 DOT 78e48e58 AT posting DOT google DOT com...
> Hi,
>
> That's mean i must install DOS on my PC. Can i use windows startup
> disk booting up, to make an environment as dos? Is that still same as
> dos box in win9x?
>
> And if the new_timer(void) routine is too much coding, it can't finish
> the job when the next interrupt came expected. Do i need to set some
> interrupt masking flags?
>
> How do i check the timing spent of this interrupt service routine?
>
> Jeff
>

I generally make an interrupt service as SHORT and FAST as possible. Set a
flag, store a bit of data in a global structure. then the main program polls
the vars set by the interrupt and does any longer processing.

For example, the interrupt my just store data to a queue, then the main prog
process the data in the queue and write it to disk.

As for dos 7, I haven't tried that, but its likely ok.

>
> > > > AJR - I don't see an obvious problem. Are you running under DOS? If
> >  running
> > > > under a dos box in win9x the timing will not be exactly what you
expect.
> > >
> > >       Let me know the reason.
> > >
> > Windows 9x grabs all the interrupts, and lets dos programms 'use' them
at
> > random intervals.
> >
> > > --
> > >   Peace - The choice of the new generation.


- Raw text -


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