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

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!jpunix!hounix!pelliott
  3. From: pelliott@hounix.org (Paul Elliott)
  4. Subject: driver timer resolution
  5. Message-ID: <1993Jan08.195114.23866@hounix.org>
  6. Organization: Houston UNIX Users Group (HOUNIX), Houston, TX
  7. Date: Fri, 08 Jan 1993 19:51:14 GMT
  8. Lines: 22
  9.  
  10. I am trying to write an OS/2 driver for the CALNET RANDOM NUMBER GENERATOR
  11. RNG-810.
  12.  
  13. This is a realy simple device. Everytime you do a in byte on port 300
  14. you get a random byte from the random number generator which the device
  15. creates using Johnson noise. However, if you read the port faster than 25000
  16. bytes per second or 40 usec between reads, the succesive bytes may not be
  17. randomly independant.
  18.  
  19. Is there any way in OS/2 to wait such a small period of time in an IO 
  20. driver without hogging the CPU?
  21.  
  22. I believe that you can define a timer interrupt handler, but
  23. that interrupt occurs only 18.2 times per second. This would
  24. slow down my driver too much. Is there any way to get increased
  25. timer resolution?
  26.  
  27. By the way, does any one out there know what calnet's snail address is?
  28. I wrote them reciently at their old address but my letter came back
  29. to me.
  30.  
  31. Paul.Elliott@hrnowl.lonestar.org
  32.