What is synchronization? How it can be achieved?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
synchronization is the process of allowing only one thread
at a time.It's been achieved by marking the method as
synchronized or locking a particular portion of code
Is This Answer Correct ? | 7 Yes | 5 No |
Answer / sainaveen
Synchronization is a mechanism used to control multiple
threads from accessing shared resources, if multiple
threads access shared resources there might be a chance for
one thread to change the shared values of another thread
leading to errors
Is This Answer Correct ? | 6 Yes | 8 No |
what is the volatile modifier for? : Java thread
Is array a class?
what is the use of bean managed and container managed with example?
What is the range of a character variable?
Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.
What is an abstract method in java programming?
What is the basically use of finally while we know it is always executed but why?
What are "methods" and "fields"?
What is a pointer and does java support pointers?
What is use of static in java?
Is arraylist a class in java?
How do you remove all elements from an arraylist in java?