we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it?
Answer Posted / ysr
It depends upon the data.
where the data is chngable by threads at that time we need
to apply the synchronization.
if the data is purly static data no need to protect the
databy using synchronization. why because if we apply
(synchronization) each and every time there is a
performance degradation is there.
Time factor(it will take more time)
| Is This Answer Correct ? | 29 Yes | 0 No |
Post New Answer View All Answers
How many decimal places is a double?
Why we used break and continue statement in java?
What are inner classes or non static nested classes in java?
What environment variables do I need to set on my machine in order to be able to run java programs?
What is floor in java?
What does three dots mean in java?
How to create a base64 decoder in java8?
Why char array is preferred over string for storing password?
What is a flag value?
Write a java program to count the number of words present in a string?
What is slash r?
What is a default method?
How many types of variables are there?
What is the difference between abstract classes and interfaces?
What are the wrapped, classes?