开发者

Task Scheduler in c#

开发者 https://www.devze.com 2023-04-13 04:09 出处:网络
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

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

精彩评论

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