0

I was asked this question in an interview.

After installation of programs on windows OS,some program need the system to be restarted while others not.

What is the reason behind this?

I googled but didn't get satisfactory answer.

Thanks in advance.

fresher
  • 296
  • 2
  • 12

1 Answers1

1

If a program (or software) need restart, it is because of one of the following conditions is true :

  1. The software updates a DLL that is loaded in one or more processes that are required by Windows. The update cannot be completed while the DLL is loaded. Therefore, the software update must stop the process that causes the DLL to be loaded. Stopping the process will unload the DLL that is required to complete the update. However, the process in which the DLL is loaded cannot be stopped while Windows is running.

  2. The software updates an .exe file that is currently running as a process that is required by Windows. The update cannot be completed while this process is running. However, you cannot force this process to stop unless you shut down Windows.

  3. The software updates a device driver that is currently being used and that is required by Windows. The update cannot be completed while this device driver is being used. However, you cannot unload this device driver unless you shut down Windows.

  4. The software makes changes to the registry. These changes require that you restart your computer.

Other references

Might be helpful to gain clarity -

(1) Why need restart after installing software

(2) Why need restart before program run

Community
  • 1
  • 1
Vikram Singh Saini
  • 1,749
  • 3
  • 22
  • 42