开发者

Task Scheduler in c#

I would like to schedule threads like the Task Scheduler 2.0 only problem that I cannot use task scheduler is that it is regist开发者_StackOverflowered at os level not the program level. Is there any way to use the task scheduling api to invoke thread creation with in program?


Have a look at System.Threading.Timer.

This allows you to specify a delegate to be invoked at a given time.


Quick and dirty solution is to check the time and date (say every minute). It will not take much CPU resources but the execution time will not be accurate to a second.


i ended up pushing my own scheduling api very much like task schedular that will schedule threads not processes

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜