home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: 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
-
- 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]
-
-
-
-