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

What are the different methods of identifying an object?

563


Write a singleton program?

561


How are commas used in the intialization and iteration parts of a for statement?

573


difference between  ejb,struts,hibernate,spring and jsp

2289


Why does the tag url-encode javascript and mailto links?

573






What is table mutation and how do you avoid it?

1906


What do you mean by Socket Programming?

540


What is a tasks priority and how is it used in scheduling?

538


Name the class that is used to bind the server object with RMI Registry?

1686


Name three component subclasses that support painting?

606


Can we sent objects using Sockets?

637


What is an abstract method?

585


What method is invoked to cause an object to begin executing as a separate thread?

563


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

574


What is Remote Server?

1678