Originally posted by Adil El mouden:
I want to know if bMethod() is executed concurrently even the synchronized block.
Thank you
The bMethod can be called concurrently, but the synch block can only be called in a synchronized manner,i.e., one at a time.. (ofcourse, as long as its the same object "a")
For more information:
This kind of construct is mostly used in the singleton factory methods and is also known as Double Checked Locking (DCL), try searching for it in this forum or google it.
[ August 12, 2005: Message edited by: Sachin Ahuja ]