A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
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.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: synchronized methods
ambiguity in Master Exam option
ENLIGHTENING, thread synchronization, concept clarification --plz help
call non-synchronized method within synchronized method (or) synchronized block?
Synchronized calling non-synchronized
Thread behavior with synchronized method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014