I have a VB.NET application that starts a background task defined as a System.Threading.Thread. The background task is only analysing data that is already in memory, but it may take hours to finish. When I look at the CPU utilisation it never seams to get more that 50% CPU (only one thread) even if the rest is free. On PC's with a 4 threaded CPU it is often as low as 25%.
Is it possible to adjust this so that the background task gets all (or at least a lot more than 50%) of the CPU and run it as a low priority task?
I have looked around and there seams to be possible to control this from both inside the application and directly within Windows, but what is the best way to control this?
Does anyone know how to configure this?