It's not a secret anymore!
The moose likes Threads and Synchronization and the fly likes Question on Thread 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 Thread Synchronization" Watch "Question on Thread Synchronization" New topic

Question on Thread 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?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
I am moving this to threads and synchronization.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1868
Hi Rajesh,
Try playing out with the code below and it will give you the answers if not i will elaborate.
I agree. Here's the link:
subject: Question on Thread Synchronization
It's not a secret anymore!