[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    RE: [PATCH] nslookup: ensure unique transaction IDs for the DNS queries
From:       David Laight <David.Laight () ACULAB ! COM>
Date:       2023-05-10 12:01:17
Message-ID: 3fc828778e914a98b9a66b6590691793 () AcuMS ! aculab ! com
[Download RAW message or body]

From: Laurent Bercot
> Sent: 10 May 2023 12:36
> 
> >You miss the point. CLOCK_MONOTONIC may simply be too granular
> >on some hardware - returning the same value for the duration of
> >several milliseconds.
> 
>   Wait, what? Is that a thing? Is there actual hardware where
> CLOCK_MONOTONIC stalls for a noticeable period of time?
>   That does not sound permitted by POSIX:

Some implementation will increment the nanoseconds on
every call to avoid returning the same value.

But the underlying timer might only change every 10ms (or more).
Even though the output value has a nanosecond part.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic