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

Explain what is synchronization?

813


Is a class a subclass of itself?

805


What are the different methods of identifying an object?

759


What are local interfaces? Describe.

885


What is jboss?

758






How are the elements of a borderlayout organized?

816


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

798


When is the best time to validate input?

794


Which class is the immediate superclass of the menucomponent class?

877


What is meant by method chaining?

857


How can I scroll through list of pages like the search results in google?

753


Brief description about local interfaces?

878


Which are the different segments of memory?

810


What restrictions are placed on the values of each case of a switch statement?

726


What is a modular application? What does module-relative mean?

727