thread can enter a synchronized method, thus acquiring a lock, and then immediately invoke a synchronized method on a different object, thus acquiring that lock as well.
Above lines are taken from K& B page no708.
here author is talking about simultaneously obtaining a lock on " different object ",how do we re declare the same
thread with a new runnable object.
please help me with this .please provide an example if any one can
thanks in advance