3 Replies Latest reply: Jun 22, 2008 1:02 AM by jwenting RSS

    how to set main thread Priority?

    807589
      i have set:

      Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
      
      // and the other thread ( )
      thread_load = new Thread();
      thread_load.setPriority(Thread.MIN_PRIORITY);
      thread_load.start();
      but it doesn't make any diffrent,
      i mean diffent the CPU usage for the thread.

      i want the main thread has a MAX PRIORITY CPU usage , then the other thread.

      is this true to set the thread priority use setPriority(..) ?

      thx..