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 continuity of a function?
What is the longest unicode character?
How we can declare a static variable?
What is append function?
What is an empirical question?
What is a marker interface?
What restrictions are placed on method overloading?
Differentiate between array list and vector in java.
Which keyword specify that a variable is effectively final ?
What is the purpose of a parameter?
How do I start learning java?
What is data member in java?
Which package is always imported by default?
How do you replace all in word?
Is set ordered in java?