Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ahoka
· 1mo ago · 0 comments
Yes, using prime numbers are a good way to reduce the risk of multiple timers coinciding, for example a 10s, 30s, 60s period on a freshly restarted node / process.
Comments
[–]
cman1444
1mo ago
Reminds me of hunting tooth gearsets. Perhaps these systems should be checking battery every 59, or 61 seconds, as those numbers are coprime with 60.
https://shoppress.dormanproducts.com/hunting-tooth-gearsets/