On 29-Dec-99 Ken Bolingbroke wrote:
>  From my own experience, altho I'm not that skilled a programmer,
>  sleep()
>  is not thread-safe.  I believe sleep() sets a global SIGALARM, which
>  is
>  reset by every thread that calls it, and thus only the last one ever
>  returns.  Replacing sleep() with nanosleep() or something else that
>  is
>  thread-safe should solve that problem.

Stupid question time..

If that is so why doesn't sleep just use nanosleep? :)

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to