@bobnoordam

Changing the runtime priority of your application

Module Module1
  
    Sub Main()
  
        ' --- Idle time only, the lowest priority. Use with care as your application could get very little cpu
        '     time allocated on a busy system
        System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.Idle
  
        ' --- Below normal priority
        System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.BelowNormal
  
        ' --- Default priority, equal to other programms
        System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.Normal
  
        ' --- High priority, use for importan applications and processes that need to be responsive all the time.
        System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal
  
        ' --- Use with care, as your application may eat up more resources then you like !
        System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.RealTime
  
  
    End Sub
  
End Module