home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / misc / 29839 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  2.1 KB

  1. Path: sparky!uunet!sun-barr!olivea!isc-br!tau-ceti!comtch!mstaben
  2. From: mstaben@comtch.spk.wa.us (Matthew Staben)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: Wait without loading CPU?
  5. Message-ID: <5L1LqB1w165w@comtch.spk.wa.us>
  6. Date: 5 Sep 92 03:52:27 GMT
  7. References: <1992Sep03.160036.51282@ans.net>
  8. Sender: bbs@comtch.spk.wa.us (Waffle bbs)
  9. Organization: Waffle BBS at CompuTech Spokane, Washington
  10. Lines: 38
  11.  
  12. db3l@ans.net (David Bolen) writes:
  13.  
  14. > In article <1557@cogsci.ucsd.EDU> miller@cogsci.ucsd.EDU (Jeff Miller) writes
  15. > >I need to put a "wait" command in a .bat file (DOS box)
  16. > >or in a .cmd file (OS/2 box).  The idea is just to let
  17. > >some time elapse (e.g., 2 minutes) before going
  18. > >on to the next command.  The key problem is that the
  19. > >"wait" command should put AS LITTLE LOAD AS POSSIBLE
  20. > >on the CPU.
  21. > I'm not sure about DOS boxes - any DOS program is going to have to loop,
  22. > polling the system time to wait a specific period.  I see that either
  23. > (a) burning the CPU a bit, or (b) being detected as IDLE by OS/2, which is
  24. > fine - I don't know if the idle detection is basically keyboard I/O though.
  25. > --
  26. > -- David
  27. > --
  28. > /-----------------------------------------------------------------------\
  29. >  \              David Bolen             \  Internet: db3l@ans.net      /
  30. >   |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
  31. >  / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
  32. > \-----------------------------------------------------------------------/
  33.  
  34.  
  35. OS/2's idle detection is, as you've correctly surmised, detection of 
  36. I/O which is repetitive within certain time constraints.  Interrupt #28
  37. is a prime example of this, as is #9.  (by the way, these are hex).  By
  38. using a combination of DOS programs which are DesqView aware, the 
  39. wonderful OS/2 port of the "tame" program, and PM applications (or full
  40. screen) will make a smoothly harmonic system.  Unfortunately, the nice
  41. programs which one may want to use are never Desqview aware.  A prime
  42. example of this is Procomm's HOST mode.  Talk about HOGGIN' THE CPU!
  43.  
  44.  
  45. mstaben@comtch.spk.wa.us
  46.  
  47. - A warning to anyone, still in command...
  48.