What is the difference between process and service?


  • 0
    S

    What is the difference between process and service?


  • 0
    M

    @saif_as said in What is the difference between process and service?:

    he difference between process and service?

    A process is a running application, and each process has its own separate memory space. An application can start multiple processes at the same time. For example, for the IE browser program, a new process is started every time a IE browser window is opened. Similarly, each time you execute the JDK Java.exe program, you start a separate Java virtual machine process that is responsible for parsing and executing the Java program code.
    There is no actual service interface, quietly running in the background, he can provide some more features for the application of things, such as playing MP3, opened a broadcast MP3 service, users click on the start button to open the notification service, click the close button to close the notification service, if you disable this service, the others want to play MP3 that is not enough, but also between services is likely to depend on each other.


  • 9
    C

    A process is a program which is started by the system (OS) or a third-party application. It is terminated once its purpose is done.

    A service is a program which runs in the background, and does not terminate unless it encounters a problem, (example: an error).


  • 0
    M

    @clint.a very neat explantion


  • 0
    G

    @clint.a can we say that service is provided by OS when a function call takes place?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.