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 are three ways in which a thread can enter the waiting state in java programming?
What is the += operator called?
What is string in java?
What are the differences between checked exception and unchecked exception?
Explain wait() method of object class ?
Give the difference between the println method and sqrt method?
Explain the difference between a Thread and a Process.
How do you check if a number is a perfect square?
Tell me about different OOPS concepts.
If I only change the return type, does the method become overloaded?
What is == in java?
Is null == null in java?
When can you say a graph to be a tree?
Explain about map interface in java?
What is public/private protected in java?