home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7505 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!destroyer!cs.ubc.ca!uw-beaver!newsfeed.rice.edu!rice!ruf.rice.edu!amitp
  3. From: amitp@ruf.rice.edu (Amit J Patel)
  4. Subject: Re: Surrendering timeslice under DOS?
  5. Message-ID: <C0pouG.BwB@rice.edu>
  6. Sender: news@rice.edu (News)
  7. Reply-To: amitp@owlnet.rice.edu
  8. Organization: Rice University
  9. References: <1993Jan9.045430.2626@wicat.com> <imD5wB3w165w@tcscs.UUCP> <93010.071447U16244@uicvm.uic.edu>
  10. Date: Mon, 11 Jan 1993 22:51:52 GMT
  11. Lines: 23
  12.  
  13. In article <93010.071447U16244@uicvm.uic.edu>, David James Alexander Hanley <U16244@uicvm.uic.edu> writes:
  14. |> >
  15. |> >> Once you know you're in an OS/2 DOS box, calling interrupt 2F with AX set
  16. |> >> 01680h will release the timeslice.
  17. |> 
  18. |>   Well, I tried this, and the program became REALLY slow.  The interrupt seemed
  19. |> to be giving up almost a half-a-second, far more than I wanted.  Why might
  20. |> this be?  I had in mind more like 1/100th of a second, so my program would
  21. |> respond realtime.
  22. |> 
  23.  
  24. I tried the timeslice code, too, and my program became unusably slow.
  25. I also tried giving up the timeslice every n keyboard polls, but that
  26. didn't help (after I thought about it, it made sense that it wasn't
  27. better).
  28.  
  29.  
  30. Are there any other time-slice methods in use?  Perhaps by doing the
  31. DOS idle interrupt (28h?)?
  32.  
  33.  
  34.     Amit
  35.  
  36.