[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Timestamp race avoidance in do_update()
From: |
Laine Stump |
Subject: |
Re: Timestamp race avoidance in do_update() |
Date: |
16 Feb 2001 13:17:46 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Brad Chisholm <address@hidden> writes:
> On Wed, Feb 14, 2001 at 09:58:46PM -0500, Derek R. Price wrote:
> >
> > Well, it didn't seem very hard to do, so I had configure search for
> > nanosleep, usleep, and select in that order, then use them in the same
> > order of preference, falling back on sleep as a last resort. It speeds up
> > 'make check' noticeably.
> >
> > Checked in.
>
> Just curious, but will a 20 ms wait be sufficient to prevent timestamp races?
> It appears the times saved in the Entries file have a granularity of 1 sec.
Did you look at the code? The 20ms delay is in a loop that repeats
until the value returned from time() changes. the value returned from
time() changes once each second (ie it has a granularity of 1 sec), so
there is no problem. All that this change does is eliminate a lot of
extra wait *after* the system time had already changed.
- Timestamp race avoidance in do_update(), Brad Chisholm, 2001/02/12
- Re: Timestamp race avoidance in do_update(), Larry Jones, 2001/02/13
- Re: Timestamp race avoidance in do_update(), Laine Stump, 2001/02/14
- Re: Timestamp race avoidance in do_update(), Larry Jones, 2001/02/14
- Re: Timestamp race avoidance in do_update(), Laine Stump, 2001/02/14
- Re: Timestamp race avoidance in do_update(), Larry Jones, 2001/02/14
- Re: Timestamp race avoidance in do_update(), Derek R. Price, 2001/02/14
- Re: Timestamp race avoidance in do_update(), Brad Chisholm, 2001/02/16
- Re: Timestamp race avoidance in do_update(),
Laine Stump <=
- Re: Timestamp race avoidance in do_update(), Derek R. Price, 2001/02/16
- Re: Timestamp race avoidance in do_update(), Larry Jones, 2001/02/16
- Re: Timestamp race avoidance in do_update(), Derek R. Price, 2001/02/16
- Re: Timestamp race avoidance in do_update(), Paul Sander, 2001/02/15
- Re: Timestamp race avoidance in do_update(), laine+info-cvs, 2001/02/16