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

What is locale in java?

808


Explain the difference between treeset and treemap in java?

778


Explain the difference between association, aggregation and inheritance relationships.

837


Which language is java?

771


How to create com object in Java?

864


What is the default size of load factor in hashing based collection?

820


What are features of java?

797


Why java is used everywhere?

779


What’s the difference between unit, integration and functional testing?

851


What happens when main () method is declared as private?

867


Explain constructors and types of constructors in java.

850


How to declare objects of a class ?

832


When would you use a static class?

773


Which package is imported by default?

855


What is meant by main method?

808