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
What is the integer of 16?
What is off heap memory?
What is the latest version of java?
Does java support Operator Overloading?
What is jvm? Why is java called the platform independent programming language?
Discuss 2D arrays.
how would you implement a thread pool? : Java thread
In a class implementing an interface, can we change the value of any variable defined in the interface?
Write a program to print fibonacci series
Difference between static synchronization vs. Instance synchronization?
How do you control extraneous variables?
what do you mean by java annotations?
What do you mean by Function Overloading in java?
Can we write any code after throw statement?
What does nextint () do in java?