Chris,
I assume you're talking about this method:
public static boolean interrupted() {
boolean i = Thread.currentThread().interrupting;
Thread.currentThread().interrupting = false;
return (i);
}
There is no need to protect anything; interrupted will always be the
interrupting flag of the current thread.
- Godmar
>
>
> In Thread.java the interrupted() method is not monitored; preemption
> might cause to the wrong thread to be issued "...interrupting = false"
> Chris
>
- Unmonitored operation in Thread.java jacobi
- Godmar Back
