home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.misc
- Path: sparky!uunet!noc.near.net!mars.caps.maine.edu!gandalf!jurlwin
- From: jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin)
- Subject: Re: Why does DOS (Telix, AutoCAD, etc.) use 100%
- Message-ID: <1992Dec19.004242.20259@gandalf.UMCS.Maine.EDU>
- Organization: University of Maine, Department of Computer Science
- References: <17DEC199220532131@zeus.tamu.edu> <1992Dec18.063549.9256@netcom.com>
- Date: Sat, 19 Dec 1992 00:42:42 GMT
- Lines: 33
-
- In article <1992Dec18.063549.9256@netcom.com> samiam@netcom.com (Scott Moore) writes:
- >rem5156@zeus.tamu.edu (The Doctor) writes:
- >
- >>..does anyone know why my system maxes out to 100% when I use Telix, or OrCAD
- >>or AutoCAD in a DOS full-screen session?
- >
- >Apparently pulse gets confused with dos/windows tasks. The CPU useage as
- >displayed is not correct.
-
- Well, pulse is only as confused as your DOS apps. DOS apps tend to poll
- the keyboard in a tight loop, such as:
-
- while NOT User_hit_key
- do_small_chunk_of_background_processing();
-
- Even if it has nothing to do in the background (with Autocad it might
- be drawing something large or computing, while checking for your next
- keystroke), it will still check to see if you hit a key or check to
- see if it has something to do.
-
- This (I think) is one of the biggest uses of threads. One thread will
- be waiting for a key (not polling, but waiting via an OS/2 DosKbdxxx call)
- while another thread is running and processing your request.
-
- Pulse doesn't realize that nothing is being done in your dos app, it just
- knows that your dos app is doing something. You can change how much time
- OS/2 gives to a dos app in the IDLE_SENSITIVITY and IDLE_SECONDS settings.
-
- Jeff
- --
- --------------------------------------
- jurlwin@gandalf.umcs.maine.edu
-
-