This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Question on Synchronization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Question on Synchronization" Watch "Question on Synchronization" New topic

Question on Synchronization

Rajesh Hegde
Ranch Hand

Joined: Sep 15, 2000
Posts: 112
If a thread enters an object's monitor, can some other thread access the Non-Synchronized method of the same object?
Jerry Pulley
Ranch Hand

Joined: Sep 19, 2000
Posts: 221
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.
Marcela Blei
Ranch Hand

Joined: Jun 28, 2000
Posts: 477
I agree with Jerry.
I agree. Here's the link:
subject: Question on Synchronization
It's not a secret anymore!