what you actually probably want is process priority. You can change thread priority with string param: int system.threadPriority = (number from -2 to 2), but you are probably trying to solve a problem in incorrect way. I advise you to post your specific problem instead