home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4778 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!dsinc!ub!acsu.buffalo.edu!sivap-s
  2. From: sivap-s@acsu.buffalo.edu (Suresh .S)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: Solaris 2.0/2.1 Realtime programming
  5. Message-ID: <BxxEyo.7BG@acsu.buffalo.edu>
  6. Date: 18 Nov 92 19:18:23 GMT
  7. References: <87021@bcsaic.boeing.com>
  8. Sender: nntp@acsu.buffalo.edu
  9. Distribution: comp.unix.wizards
  10. Organization: UB
  11. Lines: 24
  12. Nntp-Posting-Host: thuban.cs.buffalo.edu
  13. X-Newsreader: TIN [version 1.1 PL6]
  14.  
  15. Sinan Karasu (sinan@bcsaic.boeing.com) wrote:
  16. : Hi wizards,
  17. : I am porting an application that requires very fine
  18. : timing control to Solaris 2.0/2.1. I need to be able to schedule
  19. : my program at given time increments. The time increment can be
  20. : anywhere from 1 millisecond to 50 milliseconds. I gave played
  21. : with setitimer and SIGALRM , they do work fine except I can not
  22. : get better than 10 millisecond granularity. So I decided
  23. : to try something more hardware oriented and noticed that there are
  24. : 2 timer/counters in the MMU chip.
  25. : Questions:
  26.  
  27.  
  28. One indirect way of timing with a fine control  is using select() call
  29. with NULL descriptors set and appropriately setting the struct timeval.
  30.  
  31.  
  32. By setting the struct timeval buf you can  get timings of the order of
  33. microseconds !!.
  34.  
  35. -- 
  36. Suresh Sivaprakasam                    
  37. Department of Computer Science,    SUNY Buffalo,    Amherst,   NY - 14260-0001
  38. Internet :sivap-s@cs.Buffalo.EDU               Bitnet : sivap-s@SUNYBCS.BITNET
  39.