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

What is difference between printf and scanf?

1 Answers  


while creating thread why we extend thread class

2 Answers  


What is bytecode verifier?

1 Answers  


What is difference between local variable and global variable?

1 Answers  


primitive data types in Java ?

3 Answers  


Difference between static and dynamic class loading.

1 Answers  


what r advatages of websphere? & how to deploy?

1 Answers   Saksoft,


Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time

4 Answers   Huawei,


Explain the difference between Unicast and Multicast objects?

1 Answers  


Why do we use regex?

1 Answers  


What do you understand by looping in java? Explain the different types of loops.

1 Answers  


What is indexof?

1 Answers  


Categories