What is synchronization?

Answer Posted / akshay

If there is a portion of code within a method or the
complete method that can be accessed by multiple threads,
that section of code is called critical section. To make
sure that only one thread can access critical section at a
time, we synchronize critical section. Synchronization is
the keyword to avoid concurrent access to critical section
of the code.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you pass parameters in RMI? Why do you serialize?

702


What is bean? Where can it be used?

581


Why is actionform a base class rather than an interface?

570


What are the purpose of introspection?

680


What is the purpose of the wait() method?

621






What if the static modifier is removed from the signature of the main method?

709


What are the oops concept?

581


Define prototype?

585


Explain the difference between object state and behavior?

570


Do we need to override service() method

1145


What is the purpose of the finally clause of a try-catch-finally statement?

561


whats is mean by tiles in struts

1624


Difference between new operator and class.forname().newinstance()?

602


Where can I find seam examples and documentation?

569


Is infobus easy to use?

600