Monday, October 6, 2008

Can a thread call a non-synchronized instance method of an Object when a synchronized

Can a thread call a non-synchronized instance method of an Object when a synchronized method is being executed ?

I am having difficulty understanding this synchronization stuff.

Assume if a Class has two methods
- method1 is synchronized instance method
- method2 is a regualr instance method

So in this scenario, can there be two threads calling these two methods in parallel for the same instance?

No comments: