Scheduled task with windows services and system.timer.timer

Posted by nccsbim071 on Stack Overflow See other posts from Stack Overflow or by nccsbim071
Published on 2010-03-30T13:08:54Z Indexed on 2010/03/30 13:13 UTC
Read the original article Hit count: 675

Filed under:
|
|

Hi i want implement a windows services scheduled task. I already created windows service. In a service i have implemented a timer.The timer is initialized at class interval. The timers interval is set in the start method of service and also it is enabled in the start method of the service. After timers elapsed event is fire i have done some actions.

My problem is that, i am in a dilemma. Lets say the action i have done in Elapsed event, lets say take one hour and the timers interval is set to half an hour. so there are chances that even if the previous call to elapsed event has not ended new call to elapsed event will occur.

my question will there be any conflict or is it ok or shall i use threads. please give some advice

© Stack Overflow or respective owner

Related posts about Windows

Related posts about Services