StrataFrame Forum

Task scheduler

http://forum.strataframe.net/Topic22511.aspx

By ChanKK - 3/28/2009

Hi,

I am developing task scheduler. May I know if SF ThreadManager suitable to be used here? Any ideas how to developer task scheduler?



Thank you
By Trent L. Taylor - 3/30/2009

Depends.  If you are doing this on the web, then no.  But even still, you are better off using a System.Threading.Timer in this type of situation so that you can create a scheduler to a timed event.  The System.Threading.Timer class is create for a threaded async or synced callback.  This is how we create our scheduled tasks.

This is a very low overhead mechanism to use.  In some cases we may have 20-30 of these going through an application and they work great.

By ChanKK - 6/25/2009

Hi,

What if I use it for TaskManager? TaskManager will responsible to invoke an object method in async or sync mode; record down its start/end datetime; duration and etc.



Please advice.



Thank you
By Trent L. Taylor - 6/25/2009

Again, it depends on how it will be shelled. Most likely it will work fine in this environment, but I would still use a threaded timer in this type of scenario.