For performance gain and better usability, I am running some heavy tasks in the background. I want to assign low priority to this new process as otherwise its eating the CPU and the computer remains unusable till the time process finishes off.
If I reduce the priority of this new process using windows task manager, it works just fine. Can anyone please suggest similar (pr different) way to tackle this issue?
Thanks in advance, mrP
love your job and not your company;
...because you never know when your company will stop loving you!
Unless there's something new in Java 1.5/5.0/whatever (I still use 1.4), there is no way to set the priority of an external process via pure Java. You can do it via native code and JNI, on a platform-specific basis, of course.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.