A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
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
Thread behavior with synchronized method
ambiguity in Master Exam option
Synchronized calling non-synchronized
call non-synchronized method within synchronized method (or) synchronized block?
ENLIGHTENING, thread synchronization, concept clarification --plz help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014