Double-checked locking

Double-checked locking is the attempt to avoid lock acquisition overhead by first checking the locking criterion in an unsafe manner before taking the lock. This is strongly discouraged, since it may behave differently, or not work at all, across memory models.

See also Java memory model.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.7.208