Windows Service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I am developing a Windows Service application in C# which is designed to run at predetermined time everyday. My question is once my service starts what is the best way for it to run without hogging lots of resource from the CPU?

I guessed at some sort of timer approach?

Any suggestions gratefully recieved :-)

Thanks in advance

Andy
 
Actually, in this case you probably don't want to create a service at all.
Just create a regular command line type application and then schedule it
using the Task Scheduler service. This will be simpler and give you more
flexibility with respect to changing schedules, etc.

Andy said:
Hi

I am developing a Windows Service application in C# which is designed to
run at predetermined time everyday. My question is once my service starts
what is the best way for it to run without hogging lots of resource from the
CPU?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top