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
What is bubble sort in java?
What is class forname?
What is the static method?
What about member inner classes?
What are serialization and deserialization?
What do you mean by compiler?
What are the main differences between notify and notifyAll in Java?
Which containers use a flowlayout as their default layout in java programming?
Explain about automatic type conversion in java?
What do you mean by append?
What value is a variable of the string type automatically initialized?
Explain the use of volatile field modifier?
Why char array is preferred over string for storing password?
what is the difference between future and callable interface in java?
How can you set the applet size?