Hacker News new | past | comments | ask | show | jobs | submit login

51 days * 86400 seconds * 1000

=> 4406400000

2^32

=> 4294967296

the coincidence seems unlikely, it's basically ~~5 hours and a half~~ 30 hours of difference if one has a 1-ms counter increment




Watch Windows 95 crash live as it exceeds 49.7 days uptime https://news.ycombinator.com/item?id=28340101

Must be a northwest washington thing.


It's a day and a half difference, and since 2^32 is the smaller number that would be pretty catastrophic. Pretty likely it's coincidence.


Where did you get 5 hours and a half? It seems to be closer to 31 hours:

    >>> round((4406400000 - 2**32)/(1000 * 3600), 3)
    30.954


from me typing too quickly in bc, apparently :')


Not getting it.. yeah the famous 32 bit ms overflow after 49 something days. But why then 51 here? Shouldn't they be required to reboot after 49 days please please? :D


Possibly cumulative error in the timing source?


It's possible to run tasks instead of starting every second, starting one second after the previous iteration finishes.

So if you have something that checks the system health every millisecond, and keeps a count instead of a duration, then if it takes a couple microseconds to complete you might get something less than 86 million ticks per day instead of 86.4 million.


The OS used on the 787 has a hard real-time scheduler. Tasks are started up at a specific frequency (set per task), run to completion or to the end of their time slot (set per task) and terminated. We had, IIRC, a strict 100ms slot for our bit of LRU software to do everything and it would be launched every 1s (from memory, that was 15 years ago). Information could be stored between executions so partial completion is something you could handle if needed by storing state information and using it at the start of the next iteration (we didn't need that, our tasks finished in the slot).

You don't base the start of a future task on the end of the prior one, you base it on a fixed clock for these kinds of systems.


Or maybe it's aliens and their strontium-89 wormhole collapses after 51 days. At this point we're just making shit up.


Or just ticking every 1.025 ms (e.g. at 975 Hz instead of 1khz)... that brings us to :

    (4406400000 - 1.025*2 ^ 32)/1000 
so a difference of 1.12 hours with the "51 days" mention.


This is even scarier than the base concern.


Maybe it takes 2 days to boot the entire thing?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: