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 singleton math?
What is string and example?
How is the marker interface used in Java?
What is dot operator?
Who is the owner of java?
What is the purpose of assert keyword used in jdk1.4.x?
How many bytes is 255 characters?
How do you add an arraylist to an array in java?
Who found java?
what is interface in java? Explain
Can a function return a function?
What is constructor chaining and how is it achieved in java?
What are some alternatives to inheritance?
What is the use of optional ?
What is arraylist class in java?