System.Threading.Timers VS Windows Service VS Schedule Assignment

For a task to be done every hour, which one do you recommend and why?
since the system works in real time with a high load of the processor and memory and I / O, I need a better approach with minimal overhead for checking if it's time to complete the task or not!

Edit: It may take more than one hour to complete the task so that it does not start twice.

Edit: I have an application that does a ton of image processing and I / O on disk and online. The task can be included both in this application and as an external application.

+3
source share
2

. - - -, ? , system.threading.timer. Windows , .

:

  • , . - Windows. , , .

? .

  • . Windows 59 60 , , .
+1

, " ". (4PM, 5PM), . , . , , , . , , , ( ).

Thread.Sleep() , . Thread , .

Windows, Thread X , , , - . . , . Thread.Sleep().

, , . , , .

0

Source: https://habr.com/ru/post/1781651/


All Articles