From: Mateusz_madi on
On 12 Maj, 13:56, Mateusz_madi <madi.cz...(a)gmail.com> wrote:
> 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?

And is running in background?
From: Ersek, Laszlo on
On Wed, 12 May 2010, Rainer Weikusat wrote:

> 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]

Thanks ;D
lacos
From: Chris Friesen on
On 05/12/2010 05:57 AM, Mateusz_madi wrote:
>> So can i say that service is a "kind of" process witch , rather than
>> communicating with user communciates with other processes?
>
> And is running in background?

Or started up on demand.

Chris
From: rjw on
On 2010-05-12, Chris Friesen <cbf123(a)mail.usask.ca> wrote:
> On 05/12/2010 05:57 AM, Mateusz_madi wrote:
>>> So can i say that service is a "kind of" process witch , rather than
>>> communicating with user communciates with other processes?
>>
>> And is running in background?
>
> Or started up on demand.

Or smells like home work?

~rjw