delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/03/20:47:32

From: mfb AT mbunix DOT mitre DOT org (Michael F Brenner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Int-Hooking, DOS vs LINUX
Date: 3 Oct 1997 20:57:46 GMT
Organization: The MITRE Corporation
Lines: 29
Message-ID: <613m8a$b1v@top.mitre.org>
References: <199709282203 DOT PAA14896 AT adit DOT ap DOT net> <EHCAw1 DOT EKv AT nonexistent DOT com> <Pine DOT SGI DOT 3 DOT 91 DOT 971002100755 DOT 16860C-100000 AT atmosp DOT physics DOT utoronto DOT ca>
> ... and if you get fast enough drivers ...
NNTP-Posting-Host: mbunix.mitre.org
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Obviously the reason to hook interrupts is precisely that you do not
have fast enough drivers. What comes with most languages on most
machines does not give you fast enough access to cooked and uncooked
filesand keystrokes, mouse strokes and buttons, serial  and
parallel bytes, printer and CD ROM write bytes; however,the input
and output graphics are not even in the same universe. On a 266 MHz
Pentium running Windows NT, (which is many times faster than my 
Heathkit H-89 editor called PI running on a dual Z80 chip, one for
the 64K CPU and one for the screen-keyboard driver), the pop up
editor uses the BIOS keyboard driver, and slows the keyboard
response rate slower than the speed of the 16 year old Z80 PC.   
When a human has to wait for a machine needlessly, it is time to
upgrade the device drivers. Part of the problem is that speed is
not usually given as a performance requirement of most device
drivers. But a bigger part of the problem is that the programmers
have extremely high-level APIs which you can beg for them to 
grant you slow access to SOFTWARE streams on top of streams, 
ultimately on top of the hardware streams of bytes, instead of
direct APIs giving you access to the underlying hardware streams
of bytes.  For GUIs, which make computers play like a very slow
video game, it might be okay to slow down access to the I/O
streams. But in realtime systems such as CDROM burners, cool games,
airplane flying, printer timeouts, and audio players, missing
a realtime deadline misses the beat, blotsches the printout,
hardens the landing, lessens the fun of the game, and gives you
a data underrun please start burning your CD all over again.

Mike  

- Raw text -


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