File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java Interview Guide
this week in the
Threads and Synchronization
Question on Synchronization
Joined: Sep 15, 2000
Jan 16, 2001 13:56:00
If a thread enters an object's monitor, can some other thread access the Non-Synchronized method of the same object?
Joined: Sep 19, 2000
Jan 16, 2001 16:47:00
Yes. All of the code that's synchronized on one monitor object is protected from access by more than one thread at a time. Code that's not synchronized, or is sync'ed on another monitor object, may be accessed freely.
Joined: Jun 28, 2000
Jan 17, 2001 05:10:00
I agree with Jerry.
I agree. Here's the link:
subject: Question on Synchronization
Question on Thread Synchronization
Question on synchronized methods
Doubt regarding monitor object and IllegalMonitorStateException
Lock for whole object? or only synchronized block?
synchronized keywords in static methods
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015