Is it possible to limit a thread to use say max 25% of the CPU? Or is giving the thread a lower priority the only way to go here? What I'm trying to do is avoid lag in the main program while having a secondary CPU-consuming thread running in parallell.