A ton of software complains like twenty times that I need to restart Windows if I don't close certain apps during an installation... Then it works fine and doesn't bother me any more. The only things that usually require restarts are certain Windows Updates.
I presume it's due to the fact that Linux lets files be modified while opened/loaded/being executed. Windows locks them (as they memory map them with a lock)... So Linux can update files without forcing things to stop (though that can break things badly). Windows has to restart to clear all the file locks that the system itself has.
Which is also odd, as NT being a hybrid kernel is far less 'integrated' and monolithic than the monolithic Linux kernel.
Ed: to clarify, Linux generally memory maps executables/libraries as copy-on-write. You can modify/delete executables while they are running, and it won't impact the current execution. However, if you update a shared object with a new one with a new ABI, and a currently - executing program loads it presuming it is the same as before... breaky-breaky-time. Try updating glibc on a Linux system, one library at a time. The entire system will stop functioning at all before you are a third complete. Also, interestingly, file locking is and has been competely broken in Linux.. well, forever. It's always a good idea to memory map files on Linux as copy-on-write for reads so that they don't inexplicably change on you while you are reading them. The kernel may do that for you now internally, though.
If I was Microsoft, I'd be focusing on minimising the amount of time the restart takes during an update. Do as much as possible in the background while the computer is running, then just swap all the files on the reboot. Should only take a few seconds.
Sure, having to restart is annoying. But what really pisses people of are restarts that take 10-30min.
While Linux sytems tend to be more lightweight (or less featureful, if you prefer) than Windows, upgrades take way less time to install than on Windows and the time to reboot is the same as any other reboot. The downside is that a few programs don't handle the underlying files being replaced on-the-fly and may break/crash.
I think that NixOS (an 'unusual' Linux distro) has the most futuristic update system I've seen so far. It can save multiple system configurations and almost instantaneously swap them either live or in a reboot, so that e.g. you can launch an update, keep working for however long you want without anything breaking, then when you reboot it will load the updated system without any extra delay. It can also load an old system configuration ('rollback' the update) in seconds as well.
Fedora Atomic / Fedora Silberblue with their ostree can also do that; with the upside, that you don't have weird paths, or have to recompile the world when something at the root of dependency tree changes.
367
u/Namtsua Feb 06 '19
Woah, no reloading for new extensions is sick