we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it?
Answer Posted / sridhar
In this case synchronization is not requied because u r not
going to change the data.
U can use synchronization but performence will decrease.
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
How do you clear a list in java?
Explain the difference between a Thread and a Process.
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What does nextint () do in java?
Mention some features of java?
What are different exception types exceptions available in java ?
What is method reference in java?
How is tree Mirroring implemented?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
Why volatile is used in java?
Explain about field hiding in java?
Can I use % with real numbers?
What is internal variable?
What are thread local variables?
Is string a class in java?