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 main method java?
What is OOP's Terms with explanation?
Give us a program to check for parenthesis matching using stack.
What is data type modifier?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
What are the steps in the jdbc connection?
Can finally block be used without a catch?
What are the 6 functions?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What is static class
how we can make a write-only class in java?
What is difference between pointer and reference?
What are the steps that are followed when two computers connect through tcp?
How many digits is int32?
Why is whitespace important?