Server-based timers working.

  • Thread starter Thread starter archana
  • Start date Start date
A

archana

Hi all,

can anyone tell me how server based timer in .net works?


Which one of either system.timers.timer, system.threading.timer is
better for use in windows service.


How worker thread call elapsed event. Will it depend on any of system
factors?


If anyone can shed some light on it then it will really benefical for
me.


thanks in advance.
 
I've used System.Timers.timer and have never had any problem.

IMO you can use either one. Just go over the docs and decide which is better
in your case based .

Pay especial atention to where the thread runs and if you need to restart it
after each event
 

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