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

How do you remove an element from an arraylist in java?

464


What is the tradeoff between using an unordered array versus an ordered array?

666


Why is it called boolean?

527


Can we override private constructor in java?

509


Explain about serializable interface in java?

586






Can a class have a static inner class?

608


What is singleton class and how can we make a class singleton?

661


What are the differences between stringbuffer and stringbuilder?

543


Can we use synchronized block for primitives?

606


Can a string be null?

545


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

583


Differences between external iteration and internal iteration?

577


How do you escape json?

542


Is main is a keyword?

585


What are the basics of core java?

553