Method setPriority(int newPriority)
Return type: void
Member of:
java.lang.Thread
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
setPriority (9) ;
2
myThread.setPriority( 1 );
3
t.setPriority(2);
4
this.setPriority( Thread.MAX_PRIORITY );
5
t.setPriority(priority);
6
runView.setPriority(Thread.MIN_PRIORITY);
7
thread.setPriority(Thread.MIN_PRIORITY);
8
t.setPriority (Thread.NORM_PRIORITY-1);
9
m_monitorThread.setPriority( Thread.MIN_PRIORITY );
10
thread.setPriority(Math.max(thread.getPriority()-2, Thread.MIN_PRIORITY));
11
thread.setPriority(((thread.getPriority()-2) < Thread.MIN_PRIORITY) ? Thread.MIN_PRIORITY : (thread.getPriority()-2));
12
setPriority( MAX_PRIORITY );
13
kicker.setPriority(Thread.MIN_PRIORITY);
14
this.thisThread.setPriority( priority );
15
connector.setPriority(Thread.MIN_PRIORITY);
16
update.setPriority(Thread.MIN_PRIORITY); // we do not wait for results
17
setPriority(Thread.MIN_PRIORITY);
18
((Thread) threads.get(n)).setPriority(priority);
19
controlThread.setPriority(Thread.NORM_PRIORITY - 2);
20
worker.setPriority(Thread.NORM_PRIORITY + 1);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.