Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Nov 04, 2000
Dec 19, 2005 15:27:00
All, if a synchronized method calls a non synchronized one, I think the guarantee of only thread accessing the method won't extend to the non-synchronized one. Am I right?
Joined: Feb 07, 2005
Dec 19, 2005 15:29:00
There are scenarios where you could have multiple threads access the unsynchronized methods, but no other thread would use the unsynchronized method from within the synchronized method until it obtained a lock on the object.
It is sorta covered in the
JavaRanch Style Guide
subject: synchronized methods
Synchronized calling non-synchronized
Thread behavior with synchronized method
ambiguity in Master Exam option
ENLIGHTENING, thread synchronization, concept clarification --plz help
call non-synchronized method within synchronized method (or) synchronized block?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013