I have written a .net winforms application that does some heavy processing and slows my computer down pretty much. I have read something about
Thread.CurrentThread.Priority
but i dont really understand if i should give the main thread more priority or to lower its priority to remove the “lagging” and the slowing of my computer.
Thank you.
It depends entirely what your application and any additional threads are doing. You shouldn’t really boost your UI thread priority, however you could lower any background thread priorities.
To keep the UI responsive, don’t do any heavy processing on that thread – do the work on a background thread.
It’s a bit vague perhaps, but then so if your question. Happy to go into more detail if you can too. Hope that helps !