Hacker News new | ask | show | jobs
by ahoka 32 days ago
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.
1 comments

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/