what is mean by synchronization?
Answer Posted / p.nanda kishore
Synchronization is a process of accessing a shared resource in a multithreaded environment by one thread at a time.
Generally in Multithreaded applications all the threads start execution at a time(i.e doing multiple task at a time) . In this situation we need a piece of code to used by one thread at a time then we need to use Synchronization.
When a thread access a Synchronized code it establishes lock with that code and all the other threads will be there in waiting state. The Lock will be released once the thread as finished it task and other thread waiting will acquire the lock.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is bool mean?
What are the different collection views provided by maps?
What is the set interface in java programming?
How to sort an array from smallest to largest java?
Can a class have multiple constructors?
What is the different between get and post?
What technique is carried out to find out if a particular string is empty?
What is data and its types?
Do I need java on my computer?
Write a program to print fibonacci series up to count 10.
What is a short in java?
Detail discussions on JVM, memory management and garbage collector.
What is the difference between the ">>" and " >>>" operators in java?
What is nullpointerexception in java?
What is nextint java?