473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Benefits - Background process as NT service

Hi ,

Doubt may be bit trivial , but i wanted to know , what are the exact
benefits derived while we run a background process as an NT service in
windows , we can as well achieve the functionality using standalone exe
, which will keep on running in a loop and do the job till been messaged
to stop .

Essentially , i want the key advantages of implementing process daemons
as an NT Service in windows .

Any pointers or enumeration will be great .

TIA ,

Mrinal
Nov 17 '05 #1
4 2365
On Thu, 04 Aug 2005 21:01:40 +0530, Mrinal Kamboj wrote:
Doubt may be bit trivial , but i wanted to know , what are the exact
benefits derived while we run a background process as an NT service in
windows , we can as well achieve the functionality using standalone exe
, which will keep on running in a loop and do the job till been messaged
to stop .

Essentially , i want the key advantages of implementing process daemons
as an NT Service in windows .


Basically, a Windows service is just like a normal Windows application
except that:

- a windows service starts as soon as Windows starts (if it is set to start
automatically) before any user logs in
- it runs constantly in the background even if there are no users logged
in. It remains running even when all the users log out
- there is always only one instance of your Windows service running even if
several interactive Windows users are logged in simultaneously
- the service control manager (SCM) lets you decide what to do if your
service crashes. You can tell the service control manager to restart the
service, restart the computer or run an executable if your service crashes
(which could for example notify you of the problem by sending an email)
- You can access the SCM remotely (provided that you have sufficient right
to do so), which allows you to monitor your service remotely
- a Windows service doesn't (well, shouldn't) have any UI
- Only administrators can start and stop a Windows Service (that's if your
service is running under the Local System account, i'm not sure of what
happens if you choose to run it under another user account)

That's all i can think of for now.
Nov 17 '05 #2
One of the most important reasons is that your service will be running when
your machine is turned on but nooone is logged in. A lot of companies
configure their servers to run everything as a service and leave the machine
on but with no users logged in. This is the most secure way to do it. If
you have a Windows application then a user must be logged in to the server
to run the application.

Another benefeit is that all of the Services are managed in a central
location (Services Applet). You have one place to look at to
manage/reconfigure/monitor all of your services.

"Mrinal Kamboj" <mr***********@oracle.com> wrote in message
news:YL*************@news.oracle.com...
Hi ,

Doubt may be bit trivial , but i wanted to know , what are the exact
benefits derived while we run a background process as an NT service in
windows , we can as well achieve the functionality using standalone exe ,
which will keep on running in a loop and do the job till been messaged to
stop .

Essentially , i want the key advantages of implementing process daemons as
an NT Service in windows .

Any pointers or enumeration will be great .

TIA ,

Mrinal

Nov 17 '05 #3
The main advantage is the service can run in non-interactive mode and can be
configured to start as soon as the machine boots.

"Mrinal Kamboj" wrote:
Hi ,

Doubt may be bit trivial , but i wanted to know , what are the exact
benefits derived while we run a background process as an NT service in
windows , we can as well achieve the functionality using standalone exe
, which will keep on running in a loop and do the job till been messaged
to stop .

Essentially , i want the key advantages of implementing process daemons
as an NT Service in windows .

Any pointers or enumeration will be great .

TIA ,

Mrinal

Nov 17 '05 #4
One thing is that you logout and login as a new user all processes are shut
down, exception services because services run independent from a logged in
user.
"Mrinal Kamboj" <mr***********@oracle.com> schrieb im Newsbeitrag
news:YL*************@news.oracle.com...
Hi ,

Doubt may be bit trivial , but i wanted to know , what are the exact
benefits derived while we run a background process as an NT service in
windows , we can as well achieve the functionality using standalone exe
, which will keep on running in a loop and do the job till been messaged
to stop .

Essentially , i want the key advantages of implementing process daemons
as an NT Service in windows .

Any pointers or enumeration will be great .

TIA ,

Mrinal

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
3
by: Greg Bryant | last post by:
I'm doing some work for a company that has an auction site running in coldfusion. They're not real happy with it, and it needs a major overhaul, so I'm looking at redoing it, and while I'm at it,...
0
by: David L. Jessup | last post by:
I'm sorry if this is a duplicate posting. I attempted to post before, but it doesn't appear to have been sent out correctly. Anyway, I've got a problem, and I'm hoping somebody here can help....
4
by: pokémon | last post by:
Ok, I want to implmement a "backgound process", but the catch is this: I want to control it via a Web Service, that is to say, the Web Service will be its API. What type of application should...
0
by: Marian Dvorsky | last post by:
I would like to create an application that will be running in the background and will have an icon in the Notify bar in the lower-right corner of Windows desktop. For Windows NT+ I will probably...
1
by: Ed | last post by:
Is there a way to run an application in the background other than through a service. As I understand it when creating a service it is best practice not have any kind of user interface. My...
4
by: Tim | last post by:
I need to create a C# service that will run a stored procedure which returns a result set. From there I need to create a file using the result set in a specific format. The format could be fixed...
4
by: g.ankush1 | last post by:
I want to make an application in C (windows ) using Visual c++ 6.0 which runs in background. What do i need to do for it. There is no user input in the application .
2
by: Hilmar Bunjes | last post by:
Hi, I'm working on a web application in ASP.NET 3.5 and need some help with processing stuff in the background. The user who visits a web page can make reservations. Each reservation will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.