Method getPriority()
Return type: int
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 thread.setPriority(Math.max(thread.getPriority()-2, Thread.MIN_PRIORITY));
2 thread.setPriority(((thread.getPriority()-2) < Thread.MIN_PRIORITY) ? Thread.MIN_PRIORITY : (thread.getPriority()-2));
3 int priority = Thread.currentThread().getPriority();
4 this(maxSize, minSize, Thread.currentThread().getPriority()-1);
5 thread.setPriority(Math.max(thread.getPriority()-2, Thread.MIN_PRIORITY));
6 runPriority = getPriority();
7 this(DEFAULT_MAX_POOL_SIZE, DEFAULT_MIN_POOL_SIZE, Thread.currentThread().getPriority()-1);
8 _critiquer.setPriority(Thread.currentThread().getPriority() - 1);
9 setPriority(thread.getPriority());
10 priority = Thread.currentThread().getPriority() + 1;
11 int priority = thread.getPriority ( ) - 1;
12 mPriority = Thread.currentThread().getPriority();
13 + " Prio: " +(tarray[i].getPriority())) ;
14 sb.append(Util.toString(simpleClassName(t), 18)).append(" ").append(Util.toString(t.getName(), 21)).append(" ").append(Util.toString(t.getThreadGroup().getName(), 16)).append(Util.toString(new Integer(t.getPriority()), 3));
15 int cpriority = Thread.currentThread().getPriority();
16 server.setPriority(Thread.currentThread().getPriority());
17 int oldPriority = Thread.currentThread().getPriority();
18 int prior = Thread.currentThread().getPriority();
19 sbuf.append(t[i].getPriority());
20 rx.setPriority (rx.getPriority()+1); // Thread problem
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.