subratabera
Just another linux lover.
One of the most frustrating things about installing or upgrading programs on certain operating systems is the constant need to have to reboot. This is especially true with drivers or system files. Why is it that linux can be upgraded without rebooting? Read on to find out.
It all comes down to how linux and the file system handles files. When linux runs an executable it loads the whole file into memory and accesses it from there. This means that there is no connection to the physical file on the disk drive. When the program is closed and all connections to the file are cut the file is deleted from memory.
So while the program is running, from memory, the physical file on the disk can be updated or changed at will and the running program is not affected. If the program is then closed, and the copy is deleted from memory, it can then be started again using the new file version.
This method works with all files on a linux system, including drivers and system files, with the exception of just one file. That file is the actual linux kernel itself and of course it stands to reason that if that file is closed down then the entire operating system is closed down.
To sum it all up every single program on a linux system can be upgraded while the system is running. All that needs to be done to start using the upgraded program is to restart it. The only reason to need a computer reboot is to start using a new linux kernel. There is no other reason at all to need a computer reboot when using linux.
What all this means is that a linux system can be upgraded in real time while it is working and still have a hundred percent uptime. It has been this way with linux from the start while another operating system is still nowhere near this capability even with its latest and greatest(?) release.
Source: *blogs.ittoolbox.com/linux/locutus/archives/why-linux-can-be-updated-without-rebooting-12826
It all comes down to how linux and the file system handles files. When linux runs an executable it loads the whole file into memory and accesses it from there. This means that there is no connection to the physical file on the disk drive. When the program is closed and all connections to the file are cut the file is deleted from memory.
So while the program is running, from memory, the physical file on the disk can be updated or changed at will and the running program is not affected. If the program is then closed, and the copy is deleted from memory, it can then be started again using the new file version.
This method works with all files on a linux system, including drivers and system files, with the exception of just one file. That file is the actual linux kernel itself and of course it stands to reason that if that file is closed down then the entire operating system is closed down.
To sum it all up every single program on a linux system can be upgraded while the system is running. All that needs to be done to start using the upgraded program is to restart it. The only reason to need a computer reboot is to start using a new linux kernel. There is no other reason at all to need a computer reboot when using linux.
What all this means is that a linux system can be upgraded in real time while it is working and still have a hundred percent uptime. It has been this way with linux from the start while another operating system is still nowhere near this capability even with its latest and greatest(?) release.
Source: *blogs.ittoolbox.com/linux/locutus/archives/why-linux-can-be-updated-without-rebooting-12826