1. what is the difference between service and .exe file




















Services can't interact with the user's GUI directly. They can use the standard Windows IPC inter-process communication services such as pipes and shared memory regions. Such tools usually have both a service and a per-user windowless. A service is usually is a standard exe with no UI.

It can run even when there is no user logged into the machine, and it's access rights and view of the file system is no dependent on what user is logged in.

A service can and should tell the SC. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How does a Windows service differ from a standard exe? Ask Question. Asked 11 years, 9 months ago. Active 10 years, 1 month ago. Viewed 25k times. What's the difference between a Windows service and a standard exe? In Windows, services almost always run as an instance of the svchost.

Sometimes, processes may run in the background without interacting with the desktop, but without being installed as a service. Many device drivers with enhanced features do this. For example, a touchpad driver will usually have a process which runs when a user logs in and handles the special features of the touchpad, but isn't a service and doesn't show any windows to the user.

Sometimes an application may depend on a certain service. Printing from any program requires that the print spooler service be active. Installation packages. Antivirus programs usually employ a service so they can continue running even when the user is not logged in.

Processes usually exit when an application is closed, however this is not always the case. Some programs, particularly download and backup programs, may continue to run in the background without displaying any windows. Antivirus is also an example of this - in addition to using a service, many antivirus applications run a process silently in the background which only displays an application to the user when action is required.

Both applications and services are processes. Applications are meant to interact with a single user, whereas services work across the system, but don't interact with users directly. A service is usually a background application that runs when windows starts up. A stand alone application is just a normal program a. Stand alone usually refers to a single executable that can be run by itself. Sign up to join this community.

The best answers are voted up and rise to the top. More examples include Skype, MS Office apps, image editors, and so on.

Services, on the other hand, are computer program that work in the background whether or not you have an app open in the foreground. That means they are not exactly made, or running, for the end users, but helps the programs perform their tasks. Services do not have a user interface. A service is usually started by the operating system itself.

However, a user can start or restart it manually. Services can also start when a condition is satisfied, like by an event.

An example of an event would be starting the operating system. For example, event logging, error reporting, printing, device optimization, and sensor related services. Antivirus has a UI, but it can run in the foreground too. That is because a service is a process, but a process may or may not be a service. A process is an instance of an executable file.

A service, on the other hand, runs as an instance of the svchost. That is the Windows service host process. Notice how svchost is also an executable file and the service host is itself a process? Sign in. United States English. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:.

Archived Forums.



0コメント

  • 1000 / 1000