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