What is the difference between a Windows service and a Windows process?
A process is an instance of an executable file. That's why there is at least one process running every time you open an app. A service, on the other hand, runs as an instance of the svchost.exe process, mostly (DLL files).
Windows Processes are Windows Services and background programs you normally don't see running on the computer. A process may be a printer program that runs in the background and monitors the ink levels and other printer settings while the computer is running.
You can't. A Service doesn't run under any "real" user at all, so it can't start any processes which can in any way interact with the user - input or output - as there won't necessarily be any user logging in while the service is running.
A windows service always runs once the computer starts up (as long as it's so configured). A standard EXE only runs when a user is logged in, and will stop if the user logs out. You would use a windows service for things that always need to run even if nobody is logged in.
A service is a true-blooded Windows process, no difference there. The only thing that's special about a service is that it is started by the operating system and runs in a separate session. An isolated one that keeps it from interfering with the desktop session. Traditionally named a daemon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With