From: Mateusz_madi on
Hi guys, i am wondering what is a diference between service and
process?? Do you have any ideas?
From: Rainer Weikusat on
Mateusz_madi <madi.czadi(a)gmail.com> writes:
> Hi guys, i am wondering what is a diference between service and
> process??

--------
#include <stdio.h>

union discord {
unsigned char s[8];
unsigned long long v;
};

static union discord service = {
.s = "service"
};

static union discord process = {
.s = "process"
};

int main(void)
{
printf("The answer is %llu\n", service.v - process.v);
return 0;
}
-------

[SCNR]
From: Mateusz_madi on
On 12 Maj, 13:04, Rainer Weikusat <rweiku...(a)mssgmbh.com> wrote:
> Mateusz_madi <madi.cz...(a)gmail.com> writes:
> > Hi guys, i am wondering what is a diference between service and
> > process??
>
> --------
> #include <stdio.h>
>
> union  discord {
>     unsigned char s[8];
>     unsigned long long v;
>
> };
>
> static union discord service = {
>     .s = "service"
>
> };
>
> static union discord process = {
>     .s = "process"
>
> };
>
> int main(void)
> {
>     printf("The answer is %llu\n", service.v - process.v);
>     return 0;}
>
> -------
>
> [SCNR]

Hmm, what do you mean by "service.v - process.v"? Is it mean that
Service is somethiing above process??
From: Ulrich Eckhardt on
Mateusz_madi wrote:
> Hi guys, i am wondering what is a diference between service and
> process?

If you run a program, the running program is a process. If you dig further,
a process has a memory space associated with it and at least one thread.
Further, resources like e.g. open files are bound to a process. Note that
the terms task and process are used interchangeably, with task being used a
bit more often under Unix, I believe.

A service is a program that provides some service, like e.g. a timeserver,
webserver etc. Note that under Unix, the term service isn't used as often,
this is rather used in the MS Windows context. Under Unix, a service is
rather called daemon. Common to them is that they don't have a user
interface like e.g. a GUI or the standard input/output/error streams.
Rather, they are controlled by IPC mechanisms like signals.

Uli

From: Mateusz_madi on
On 12 Maj, 13:44, Ulrich Eckhardt <dooms...(a)knuut.de> wrote:
> Mateusz_madi wrote:
> > Hi guys, i am wondering what is a diference between service and
> > process?
>
> If you run a program, the running program is a process. If you dig further,
> a process has a memory space associated with it and at least one thread.
> Further, resources like e.g. open files are bound to a process. Note that
> the terms task and process are used interchangeably, with task being used a
> bit more often under Unix, I believe.
>
> A service is a program that provides some service, like e.g. a timeserver,
> webserver etc. Note that under Unix, the term service isn't used as often,
> this is rather used in the MS Windows context. Under Unix, a service is
> rather called daemon. Common to them is that they don't have a user
> interface like e.g. a GUI or the standard input/output/error streams.
> Rather, they are controlled by IPC mechanisms like signals.
>
> Uli

So can i say that service is a "kind of" process witch , rather than
communicating with user communciates with other processes?