Article View: comp.os.os2.programmer
Article #1070Idle dos box/giveup time slice, how?
From: Michael Golan
Date: Tue, 18 Aug 1992 06:24
Date: Tue, 18 Aug 1992 06:24
14 lines
854 bytes
854 bytes
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
Technical Details
Message-ID:
<mg.714119080@elan>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!jvnc.net!princeton!newross!elan!mgShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!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