🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1070

Idle dos box/giveup time slice, how?

#1070
From: Michael Golan
Date: Tue, 18 Aug 1992 06:24
14 lines
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!mg

Show 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