home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15404 < prev    next >
Encoding:
Text File  |  1993-01-11  |  953 b   |  26 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!fuchsia!daniel
  3. From: daniel@fuchsia.uchicago.edu (Daniel Fu)
  4. Subject: Question on using usleep for real-time stuff
  5. Message-ID: <daniel.726731765@fuchsia>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Organization: University of Chicago Computing Organizations
  8. Date: Mon, 11 Jan 1993 05:56:05 GMT
  9. Lines: 15
  10.  
  11. I'd like to do some experiments on a pan/tilt head we've got.  When I
  12. give the head a command to pan, I'd like to be able to predict and
  13. verify it's in a certain position at a certain time.
  14.  
  15. So the question is: is usleep the most reliable method?  What can I do
  16. so that usleep takes the least time?  Is there a way to detect if the
  17. usleep was unreliable?  Is this a hopeless situation?
  18.  
  19. I'm using ATT C++ on a Sparc 2 with SunOS4.1.2
  20.  
  21. Dan
  22.  
  23. ____________________________________
  24. Daniel Fu
  25.               daniel@cs.uchicago.edu
  26.