Re: usleep

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Jeremy
Subject: Re: usleep
Date: Friday, February 22, 2008 - 11:08 am

On Fri, Feb 22, 2008 at 05:14:47PM +0200, Andrew Pogrebennyk wrote:

Can you provide a reference for this please.


I've never seen a shell function called usleep.  Which shell are you using?


Possibly on some OSs but not on FreeBSD.


Such as?  If you are talking about having the process suspended
instead of the thread then this is dependent on the threading library
and the thread attributes and is no more or less surprising than any
other similar function.


If you bothered to read what Sharad had said, the man page or the source,
you would find that usleep(3) _is_ implemented using nanosleep(2) so there
is no point in using nanosleep() instead of usleep().

--=20
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
usleep, Sharad Chandra, (Fri Feb 22, 3:28 am)
Re: usleep, Heiko Wundram (Beenic), (Fri Feb 22, 6:37 am)
Re: usleep, Andrew Pogrebennyk, (Fri Feb 22, 8:14 am)
Re: usleep, Peter Jeremy, (Fri Feb 22, 11:08 am)
Re: usleep, KAYVEN RIESE, (Fri Feb 22, 3:28 pm)
Re: usleep, Sharad Chandra, (Mon Feb 25, 2:10 am)
Re: usleep, Heiko Wundram (Beenic), (Mon Feb 25, 2:39 am)
Re: usleep, Sharad Chandra, (Mon Feb 25, 3:45 am)
Re: usleep, Heiko Wundram (Beenic), (Mon Feb 25, 4:04 am)
Re: usleep, Robert Woolley, (Mon Feb 25, 6:15 am)
Re: usleep, Heiko Wundram (Beenic), (Mon Feb 25, 7:47 am)
Re: usleep, KAYVEN RIESE, (Mon Feb 25, 12:03 pm)