home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!wupost!darwin.sura.net!jvnc.net!princeton!newross!elan!mg
- From: mg@elan (Michael Golan)
- Subject: Idle dos box/giveup time slice, how?
- Message-ID: <mg.714119080@elan>
- Keywords: dos under os2
- Sender: news@newross.Princeton.EDU (USENET News System)
- Organization: Princeton University, Dept. of Computer Science
- Date: 18 Aug 92 06:24:40 GMT
- Lines: 15
-
- I thought that the DOS program
- main() { while(!kbhit()); }
-
- is going to be detected as idle, but alas, under both borand & MS compilers
- it does not.
- How exactly DOES os2 detect an idling dos program?
-
- Also, if someone knows for sure what the best way for a dos program to
- give up its timeslice under OS2 (same as topview? the 'idle' bios call?)
- please post (code would be even nicer)
-
- Thanks
- Michael Golan
- mg@princeton.edu
-
-