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?
 
Back
Top