What is the use of synchronizations

Showing Answers 1 - 1 of 1 Answers

vinod_arya

  • Oct 2nd, 2005
 

let us say there are 2 thread objects accessing the same method of a class, here the operating system is controlling threads, hence it may happen that control is transffered even before the method is completed. So by making the method synchronized we can make it sure that method is not terminated in between

  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