Comment by agildehaus
Comment by agildehaus 17 hours ago
Reminds me of BeOS (and now Haiku), which have "is_computer_on()" and "is_computer_on_fire()" both with great descriptions.
https://www.haiku-os.org/legacy-docs/bebook/TheKernelKit_Sys...
Comment by agildehaus 17 hours ago
Reminds me of BeOS (and now Haiku), which have "is_computer_on()" and "is_computer_on_fire()" both with great descriptions.
https://www.haiku-os.org/legacy-docs/bebook/TheKernelKit_Sys...
I know it is trying to be funny. But those states are quite normal in modern computer with advanced power management. OS should handle wakeups from deep sleep, or state where temperature of motherboard is 200 celsius.
That's still not a chip where an OS would have to handle motherboard temperatures of 200C, like the original point though. An 8051 is going to be running bare metal. TI has some stuff in the C2000 line that can run FreeRTOS at 200C, but the overwhelmingly vast majority of chips on the market are rated to 150C max.
For the curious minds: https://github.com/haiku/haiku/blob/master/src/system/libroo...
looking around a bit, it's used as an example in the documentation:
https://github.com/haiku/haiku/blob/7d07c4bc739dbf90159a5c02...
This is actually a great reason to keep it around; it's as simple as possible, and nothing uses it so it's easy to find the relevant bits of code.
Makes sense:
is_computer_on() int32 is_computer_on(); Returns 1 if the computer is on. If the computer isn't on, the value returned by this function is undefined.
Reminds me of Delphi -- it has an exception 'EProgrammerNotFound'.
https://docwiki.embarcadero.com/Libraries/Athens/en/System.S...
With a completely serious (though short) documentation page I read as very, very dry humour.