home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4294 < prev    next >
Encoding:
Text File  |  1992-08-17  |  830 b   |  27 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!wupost!darwin.sura.net!jvnc.net!princeton!newross!elan!mg
  3. From: mg@elan (Michael Golan)
  4. Subject: Idle dos box/giveup time slice, how?
  5. Message-ID: <mg.714119080@elan>
  6. Keywords: dos under os2
  7. Sender: news@newross.Princeton.EDU (USENET News System)
  8. Organization: Princeton University, Dept. of Computer Science
  9. Date: 18 Aug 92 06:24:40 GMT
  10. Lines: 15
  11.  
  12. I thought that the DOS program
  13. main() { while(!kbhit()); }
  14.  
  15. is going to be detected as idle, but alas, under both borand & MS compilers
  16. it does not.
  17. How exactly DOES os2 detect an idling dos program?
  18.  
  19. Also, if someone knows for sure what the best way for a dos program to
  20. give up its timeslice under OS2 (same as topview? the 'idle' bios call?)
  21. please post (code would be even nicer)
  22.  
  23. Thanks
  24.   Michael Golan
  25.   mg@princeton.edu
  26.  
  27.