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 scanner in java?
Why do we create threads in java?
Why deletion in linkedlist is fast than arraylist?
What is bubble sort in java?
What is gui programming?
What is tcp and udp?
What is methods and methodology?
How many tetrahedral voids are there in bcc?
What is the full name of java?
What do you understand by java?
What are the two ways of implementing multi-threading in java?
How do singleton patterns work?
Which is better ascii or unicode?
How do you convert an int to a string in java?
How many characters is 2 bytes?