For the second task get rid of (last) constructor:
// public MyThread(ThreadGroup group, Runnable target, String name, long stackSize, boolean inheritThreadLocals) {
// super(group, target, name, stackSize, inheritThreadLocals);
// setPriority(priorityIncrement());
// }
GO TO FULL VERSION