From: Mateusz_madi on 12 May 2010 06:36 Hi guys, i am wondering what is a diference between service and process?? Do you have any ideas?
From: Rainer Weikusat on 12 May 2010 07:04 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 12 May 2010 07:41 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 12 May 2010 07:44 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 12 May 2010 07:56 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?
|
Next
|
Last
Pages: 1 2 Prev: EFBIG and determination of max file, et al. Next: socket send add funny chars to sent msg |