I was trying to estimate how long it would take for a timer, measured in nano-seconds using 64 bits would take to roll over. Here's my quick estimate
It would take 2^64/10^9 seconds = 2^64/2^9*5^9
Approximating on all calculations
= 2^55/5^9
5^3 = 125 ~= 2^7
5^9 = 2^21
= 2^55/2^21
= 2^34 seconds
2^34 seconds = 2^34/86500 days ~= 2^34/80*2^10 = 2^24/2^6 days = 2^18 days
1 year = 365 days, 3 years ~= 2^10 days
That leaves us with 2^8 years * 3 years
= 256*3 years before the timer overflows
With a machine, usually one would expect at-least one reboot in 800 years, if so, we would be fine for a long time to come.
See I need no calculator :-)
Subscribe to:
Post Comments (Atom)
privacy
Some of the policy from the app automation refers to https://rclone.org/privacy/ if you are a general blog reader, follow Google's polic...
-
I received my MS degree from BITS Pilani today. Wow! I am now qualified to do more, I feel so energized. As I am writing this blog, I look ...
-
I still remember meeting a great architect at a place I worked. He was very humble and so good that he was a role model. Basically whether w...
-
I reviewed a chapter of Computer Organization & Architecture, Designing for Performance. This is the last of my reviews for a long time ...
No comments:
Post a Comment