A
ankur
Hello all,
Is it correct to say that a thread can execute a non synchronized
method on a shared object on which another thread is already executing
a synchronized method ?
If the above is true then is it true that for a shared object it would
be wise to have all methods declared synchronized, esp if the
operations in those methods if performed in an interleaved fashion can
result in an inconsistent state of the object ?
Is it correct to say that a thread can execute a non synchronized
method on a shared object on which another thread is already executing
a synchronized method ?
If the above is true then is it true that for a shared object it would
be wise to have all methods declared synchronized, esp if the
operations in those methods if performed in an interleaved fashion can
result in an inconsistent state of the object ?