Article View: comp.os.os2.programmer
Article #913Re: What is wrong with this post(Idle dos box/giveup time slice)?
From: Michael Golan
Date: Wed, 26 Aug 1992 09:18
Date: Wed, 26 Aug 1992 09:18
22 lines
1376 bytes
1376 bytes
I posted this about 10 days ago. Only got one followup that didnt answer
my questions at all. Surely you guys out there (some IBMer?) know the
answer. This should be simple and should allow my DOS program to run
better under OS/2. Here we go again, 2nd try
Thanks!
Michael Golan
mg@princeton
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?
Obviously it count 'polling' per time unit, but what exactly do they call
polling? I would think the above code is classic in that respect?
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).
[I need a DOS system call, not the on in OS2 API]
Technical Details
Message-ID:
<mg.714820699@elan>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!princeton!newross!elan!mgReferences:
<mg.714119080@elan>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!princeton!newross!elan!mg From: mg@elan (Michael Golan) Subject: Re: What is wrong with this post(Idle dos box/giveup time slice)? Message-ID: <mg.714820699@elan> Keywords: dos under os2 Sender: news@newross.Princeton.EDU (USENET News System) Organization: Princeton University, Dept. of Computer Science References: <mg.714119080@elan> Date: 26 Aug 92 09:18:19 GMT Lines: 25