R
RandyS
Hello All,
I have a windows service that only need to run once a day to download files
from an AS400 system. What is the best approach for this type of service.
Right now what I have done is to start a thread and calculate the amount of
time until the next time to run Now + 23.59.59.00 then put the thread to
sleep for the timespan.
Is the best way to do this?
I thought about have the thread sleep for short periods and check the time
to see if its time to run.
I may also want to setup a service may need to run every X hours or also.
Any thoughts or suggestion would be greatly appreciated
Thanks
Randy
I have a windows service that only need to run once a day to download files
from an AS400 system. What is the best approach for this type of service.
Right now what I have done is to start a thread and calculate the amount of
time until the next time to run Now + 23.59.59.00 then put the thread to
sleep for the timespan.
Is the best way to do this?
I thought about have the thread sleep for short periods and check the time
to see if its time to run.
I may also want to setup a service may need to run every X hours or also.
Any thoughts or suggestion would be greatly appreciated
Thanks
Randy