What is the difference between function synchronization and object synchronization

Showing Answers 1 - 3 of 3 Answers

Not to sure what he meant by function synchronization, 

but i think that if you synchronize a function, the object is synchronized.
The word synchronized before function_name locks the object for the acess by any other thread
Now for the locking the class level, we have to use the static word before the function_name.
So what i think is that function level and object level both mean the same thing.Please correct if I am wrong!

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions