1.

Can Java Object Be Locked Down For Exclusive Use By A Given Thread?

Answer»

Yes. You can lock an object by putting it in a "SYNCHRONIZED" BLOCK. The LOCKED object is INACCESSIBLE to any thread other than the one that explicitly CLAIMED it.

Yes. You can lock an object by putting it in a "synchronized" block. The locked object is inaccessible to any thread other than the one that explicitly claimed it.



Discussion

No Comment Found