If a
thread has obtained a lock on an object, i.e. it is within a synchronized block, can another thread modify that object?
For example,
class C{
methodA(){
synchronized(this)
}
methodB(){
}
}
When Thread1 is in synchronized block in methodA, can another thread run methodB
Thanks