I have a program that runs in a few threads. The main thread shares an object with the other threads and in the main I have a call to:
synchronized(obj){
Increasing the main thread's priority the way
Macarse says will probably work. However, you are relying on the platform's preemptive thread scheduler to work properly. You should instead call the Thread.yield()
static method in your worker threads when they are done with whatever important sections of code they are running. This is a good habit to get into even when you are using different levels of thread priority.