I have a windows service in C #. I want a specific thread to perform certain actions, but only when the CPU is inactive. Is there any way to do this in C #.
You can let the OS handle it for you as follows:
Thread thread = Thread.CurrentThread; thread.Priority = ThreadPriority.Lowest;
Try setting ThreadPriority to LowNormal or less. See MSDN .
Source: https://habr.com/ru/post/1715591/More articles:Injection Injection Container Per Request - c #FileNotFoundException AndroidManifest.xml - androidWhere should I add style to jQuery plugin elements? - jqueryjQuery ΠΡΠ±Π΅ΡΠΈΡΠ΅ 2 Divs Up - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1715590/wordpress-assigning-widgets-to-individual-pages&usg=ALkJrhi3ALyY12bzCx4ovhkBNCcJDYG3KQHow to associate a combo box with a dataset in WPF - data-bindingmooWMD Undefined? - javascriptCSS div width - only the width of the content ..? - htmlUrlRewriteModule.net and session problem - c #Eclipse for netbooks - what am I doing to improve performance on Linux? - eclipseAll Articles