what is synchronization

Answer Posted / surya simhadri

Synchronization is the process of allowing only one thread
at atime on a shared resource. It is like a monitor on a
shared resource.It can be done either 'Block level'
or 'Method level'. Before enter in to the synchronized area
the thread shold get the lock on the method or block object.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is collatration?

2735


What is the purpose of void class?

598


How do you pass by reference?

531


Differentiate between a class and an object.

556


Explain different ways of creating a thread. Which one would you prefer and why?

568






What are drawbacks of singleton class?

514


What is the difference between scrollbar and scrollpane?

603


What does a boolean method return?

621


What is the latest version of java?

575


What is the difference between a factory and abstract factory pattern?

678


What are the differences between include directive and include action?

534


Which package has light weight components in java programming?

668


Why can't you declare a class as protected?

588


Can a class have multiple subclasses?

576


What is exception propagation?

583