wood burning stoves 2.0
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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Question on Synchronization
It's not a secret anymore!