What is synchronization? How it can be achieved?

Answer Posted / sainaveen

Synchronization is a mechanism used to control multiple
threads from accessing shared resources, if multiple
threads access shared resources there might be a chance for
one thread to change the shared values of another thread
leading to errors

Is This Answer Correct ?    6 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a constructor be protected?

792


What is the basic of java?

787


What is a singleton factory?

726


What interface is extended by awt event listeners?

817


Is logger a singleton?

718


Can we initialize the final blank variable?

821


What is a protected class in java?

762


What is difference between char array and string?

786


os is developed in c no java is more secured then c na why dont the os developed is developed using java

3839


What are the advantages of java over cpp?

816


What are the basic concepts of OOPS in java?

764


What happens when a thread cannot acquire a lock on an object in java programming?

786


In which order the iterator iterates over collection?

784


What are the differences between throw and throws?

843


Can we return null in java?

838