A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
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.
I agree. Here's the link:
subject: synchronized methods
ambiguity in Master Exam option
Thread behavior with synchronized method
ENLIGHTENING, thread synchronization, concept clarification --plz help
call non-synchronized method within synchronized method (or) synchronized block?
Synchronized calling non-synchronized
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015