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
What does the string method compareto () do?
What is empty list in java?
Can a main method be overloaded?
What is the relationship difference the canvas class and the graphics class?
What is a boolean used for?
What does the @override annotation do?
What is arrays aslist in java?
What happens if I remove static from main method?
What is the use of arrays tostring () in java?
What are the data types supported by java? What is autoboxing and unboxing?
What are 3 data types?
What is sortedmap interface?
What is the difference between sleep and wait in java?
What restrictions are placed on method overriding?
Is singleton thread safe in java?