write a sheduled thread in C#

  • Thread starter Thread starter Eranga
  • Start date Start date
E

Eranga

How can I write a sheduled thread in C#. Can you please point out to me
any good artticles on this?
 
Hi, what is a scheduled thread? You can have a thread check current time,
say, every second (sleeping the rest of the time), and if something should
be done, do it.
 
Hi,

Explain further what you want.
In the meantime, you could use a Timer and execute the thread when it ticks.

Cheers,
 
What I want to run a shceduled program repeatedly at a specified time
interval. That time interval also changes, if the user wants to. how can
I attain this?
Thanks for any help in advance
 
Hi,

You can use my suggestion and use a timer.

If you need to change the interval you can do it using several ways, you
could check for a config file and reload it when changed for example.

Is this is going to be a windows service right?

cheers,
 
Back
Top