logoalt Hacker News

ahoka • today at 10:23 AM • 1 reply • view on HN

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.


Replies

cman1444 • today at 1:38 PM

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/