what is synchronization

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean that a method or field is “static”?

712


What is an abstract class and what is it’s purpose?

718


What is thread pool in java with example?

732


How are the elements of a gridbaglayout organized in java programming?

731


What is r in java?

780


Can we rethrow the same exception from catch handler?

786


What is the difference between public, private, protected, and friend access?

781


What is the purpose of javac exe?

777


What is the method to declare member of a class static?

757


What do you mean by buffering?

765


How do you sort data in java?

719


What is string value?

835


Can we cast any other type to boolean type with type casting?

734


What is a method declaration?

716


What is a predicate method?

746