home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4729 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!shabby
  3. From: shabby@Athena.MIT.EDU (Chris Shabsin)
  4. Subject: Re: What is wrong with this post(Idle dos box/giveup time slice)?
  5. In-Reply-To: mg@elan's message of 26 Aug 92 09:18:19 GMT
  6. Message-ID: <SHABBY.92Sep4031932@w20-575-48.mit.edu>
  7. Sender: news@athena.mit.edu (News system)
  8. Nntp-Posting-Host: w20-575-48.mit.edu
  9. Organization: Massachusetts Institute of Technology
  10. References: <mg.714119080@elan> <mg.714820699@elan>
  11. Date: Fri, 4 Sep 1992 07:19:39 GMT
  12. Lines: 18
  13.  
  14. Well, kbhit() just checks a register somewhere, it does NOT wait for
  15. the key to be hit.  (You obviously know this...)  Basically, I assume
  16. that OS/2 doesn't detect this to be idle because you're just checking
  17. a memory location, as near as it can tell...  (unless you want it to
  18. have hard-coded memory locations for things such as keyboard buffer in
  19. the idle-testing code).  When you call the interrupt to wait for a
  20. key, this TELLS it what you are doing, explicitly.  You should be
  21. doing it that way, anyway.  
  22.  
  23. These are all guesses of mine, but I am pretty sure it's how it works.
  24. --
  25. -Chris Shabsin
  26. -shabby@athena.mit.edu
  27. -member, SIPB, PWLCSBHNM, MITMB, VWA, MITCC, PWN
  28. -founder, Gations, Inc.
  29. -"You got the power, you got the might, get ready for battle, beat
  30.     that Black Knight!"
  31.                     -Black Knight pinball game...
  32.