home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4444 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.3 KB  |  38 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!princeton!newross!elan!mg
  3. From: mg@elan (Michael Golan)
  4. Subject: Re: What is wrong with this post(Idle dos box/giveup time slice)?
  5. Message-ID: <mg.714820699@elan>
  6. Keywords: dos under os2
  7. Sender: news@newross.Princeton.EDU (USENET News System)
  8. Organization: Princeton University, Dept. of Computer Science
  9. References: <mg.714119080@elan>
  10. Date: 26 Aug 92 09:18:19 GMT
  11. Lines: 25
  12.  
  13. I posted this about 10 days ago. Only got one followup that didnt answer
  14. my questions at all. Surely you guys out there (some IBMer?) know the 
  15. answer. This should be simple and should allow my DOS program to run
  16. better under OS/2. Here we go again, 2nd try
  17. Thanks!
  18.  Michael Golan
  19.  mg@princeton
  20.  
  21. I thought that the DOS program
  22. main() { while(!kbhit()); }
  23.  
  24. is going to be detected as idle, but alas, under both borand & MS compilers
  25. it does not.
  26. How exactly DOES os2 detect an idling dos program?
  27. Obviously it count 'polling' per time unit, but what exactly do they call
  28. polling? I would think the above code is classic in that respect?
  29.  
  30.  
  31. Also, if someone knows for sure what the best way for a dos program to
  32. give up its timeslice under OS2 (same as topview? the 'idle' bios call?)
  33. please post (code would be even nicer).
  34. [I need a DOS system call, not the on in OS2 API]
  35.  
  36.  
  37.  
  38.