Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] using rusage
- Date: Fri, 20 Jun 2008 17:14:01 +0900
- From: Edward Middleton <emiddleton@example.com>
- Subject: Re: [tlug] using rusage
- References: <78d7dd350806181930i6acda17co682c322d3a7872af@mail.gmail.com> <20080619035005.GB11561@lucky.cynic.net> <78d7dd350806190155k328d24bcjcf61cb707c42045c@mail.gmail.com> <20080619114706.GA15943@lucky.cynic.net> <d8fcc0800806191638u4afa8ac9v62409fe0305ad233@mail.gmail.com> <20080620001947.GD19792@lucky.cynic.net> <d8fcc0800806200039t32a6fe51h11ad9b0bec24037e@mail.gmail.com>
- User-agent: Thunderbird 2.0.0.14 (X11/20080529)
Josh Glover wrote:2008/6/20 Curt Sampson <cjs@example.com>:
And why do you think nanosleep will get you closer than sleep?
Again, from Stevens (if my flaky memory serves), I seem to remember
that some Unices gave you worse resolution for sleep(3) than for
usleep(2) or nanosleep(3).
Well the relevant Stevens quotes would be from 10.19. sleep Function
"As with an alarm signal, the actual return may be at a time later than requested, because of other system activity."
"FreeBSD 5.2.1, Linux 2.4.22, and Mac OS X 10.3, on the other hand, use another technique: the delay is provided by nanosleep(2)."
Even if the resolution where higher there is no guarantee that it will be scheduled immediately after becoming runnable.
Edward
- References:
- [tlug] using rusage
- From: Hung Nguyen Vu
- Re: [tlug] using rusage
- From: Curt Sampson
- Re: [tlug] using rusage
- From: Hung Nguyen Vu
- Re: [tlug] using rusage
- From: Curt Sampson
- Re: [tlug] using rusage
- From: Josh Glover
- Re: [tlug] using rusage
- From: Curt Sampson
- Re: [tlug] using rusage
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] using rusage
- Next by Date: Re: [tlug] First FF3.0 bug? F6 doesn't work
- Previous by thread: Re: [tlug] using rusage
- Next by thread: Re: [tlug] using rusage
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links