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