home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4371 < prev    next >
Encoding:
Text File  |  1992-08-19  |  735 b   |  17 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!sdd.hp.com!wupost!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!hobbes.physics.uiowa.edu!news.uiowa.edu!news.weeg.uiowa.edu!schwaigr
  3. From: schwaigr@news.weeg.uiowa.edu (Jim Schwaiger)
  4. Subject: Yielding a Timeslice
  5. Message-ID: <1992Aug19.184837.24219@news.weeg.uiowa.edu>
  6. Organization: University of Iowa, Iowa City, IA, USA
  7. Date: Wed, 19 Aug 1992 18:48:37 GMT
  8. Lines: 7
  9.  
  10. Is there a standard (or commonly accepted) way for a program to yield
  11. its timeslice?  I have a program which checks on a condition in shared
  12. memory and would like to sleep (for less than 1 second) if that condition
  13. is not met, rather than waiting in the "hot" loop.
  14.  
  15. Jim Schwaiger
  16.  
  17.