what is synchronization

Answers were Sorted based on User's Feedback



what is synchronization ..

Answer / 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

what is synchronization ..

Answer / reddy

Two or more threads trying to access the same method at same
point of time leads to Synchronization.If that method is
declared as synchronized,only one thread can access at that
time of another thread can access that method only if the
first thread task is completed.

Is This Answer Correct ?    3 Yes 0 No

what is synchronization ..

Answer / sonam sharma

synchronization is a process in which only one thread
executes at a time.when one thread release the resources
then other thread used the resources.if one thread not
release the resources till that time other thread not uses
the resources.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

In java, how many ways you can take input from the console?

0 Answers  


What is java argument list?

0 Answers  


how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access?

1 Answers   Verizon,


When is the finally clause of a try-catch-finally statement executed?

0 Answers  


Can a method inside a interface be declared as final?

0 Answers  


What are different types of control structures?

0 Answers  


Can we have return statement in finally clause? What will happen?

0 Answers  


Can a for statement loop indefinitely?

3 Answers  


What is difference between ++ I and I ++ in java?

0 Answers  


what is auto boxing

3 Answers   UHG,


Can list be final in java?

0 Answers  


What is string variable?

0 Answers  


Categories