we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it?
Answer Posted / ranjan
synchronization is necessary in threads
problem.synchronization means at a time only one thread can
access it.If it is not done then one thread will read the
resource & other will try to update it.It will create a
problem.
| Is This Answer Correct ? | 3 Yes | 11 No |
Post New Answer View All Answers
Can java cast null?
Explain restrictions for using anonymous inner classes?
What happens if we override private method?
What is the difference between array list and vector in java?
What is the benefit of inner classes in java?
Describe the various concepts related to object oriented programming (oop).
What is the most important feature of java? What is an interface?
What is the use of toarray () in java?
What are the differences between Java 1.0 and Java 2.0?
What is a heavyweight component?
What is the final keyword denotes?
why an outer class cannot be declared as private?
What are thread priorities and importance of thread priorities in java?
What is autoboxing in java?
What is super?