Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Interna2 implements Runnable {
- public void run() {
- Thread t = Thread.currentThread();
- t.setPriority(10);
- for (int i = 0; i < 10; i++) {
- System.out.println("Thread: " + t);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement