Windows Service Question
I hope I'm posting this in the right section.
I created a Windows Service using VS2008 and installed it on a Windows Server 2008 VM. The service queries my database every minute and runs a stored procedure when certain criteria are met.
I'm not entirely sure how these services work so my question is, if it takes longer than a minute to complete the task in my service, will another instance of the service start on the following minute since it runs every minute?
Thanks
Andy
July 11th, 2011 8:43pm
I'd ask them here.
http://social.msdn.microsoft.com/Forums/en-US/category/visualstudio
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Free Windows Admin Tool Kit Click here and download it now
July 11th, 2011 8:55pm
I think the answer could be "it depends": it depends on the way you designed and developed the service; for example, the service could check if another instance of it is still running and wait for the completion or launch another instance (or, better, another
thread) that works in parallel and perform its own task.
Bye.Luigi Bruno - Microsoft Community Contributor 2011 Award
July 11th, 2011 10:23pm


