Hi,
is there any reason to synchronise the run() method in a subclass of the
Thread class (or Runnable interface),
if we assume that this method is NOT invoked directly? E.g. by
someThreadInstance.run();
I mean, if a thread is started and enters the run-method, it gets the lock of the
this object, which is the thread instance itself.
No other thread instance has ever any chance to acquire this lock. Are there any other reasons for that synchronizing?
Except of the direct invocation of the run()-method.
Is my reasoning OK?
thanks
Bob
Here one code example: