Every windows user seems to have experiences with Windows that asks to restart so often. Either when installing and uninstalling software or drivers. Have you ever think why does Windows work like this way? If yes then here all that you need to know why does Windows ask to restart and why.
Why does Windows ask to restart
Well in windows, the system locks the files that are currently in use and so it does not allow to modify that files. For example, you need to update a device driver like the display driver. Then the system will lock the driver files while the Windows is running because the hardware is currently in use. And to replace the driver with the new files it needs to restart. For doing that it will schedule and complete the modification on the next boot.
While there are tools available for modifying the locked files but by doing so you may create problems for the system. Users must have some extra skills and knowledge for doing it.
PendMoves and MoveFile is a great tool for modifying locked files.
What does restart do
When Windows needs to replace or remove files it schedules the operations with a registry key entry in the system. For e.g. renaming a file operation would be stored in the following registry key.
When the system reboots, it looks for the pending operations in registry keys and completes the pending operations before the system fully starts. And that’s how Windows reboots itself to modify or remove files when it can not do it while Windows is up and running.
What about Linux
The Linux OS does not work like the windows. In Linux normally the files that are in use also can be modified. Because Linux does not care about the files after they are loaded into the memory. But if you change the files then you may need to restart the program for changes to the associated files to take effect. Similarly for the files associated with a service if they changed, then restarting the service will consider the changes to take effect.
Sometimes it is not necessary that changes will take effect until you restart the Linux. For example, updating the Linux kernel. It will modify the files immediately but you will need to restart to consider the changes. Because the running processes belong to the system processes and they can’t be restarted because the complete system depends on it.
Also read the next article about privacy in private windows.