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
Why use string handling in Java?
What is nextint java?
What are generic methods?
Explain about the interpreter in java?
How does hashset works in java?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What java ide should I use?
How can I become a good programmer?
What is charat java?
What is the default size of arraylist in java?
What is lazy programming?
What is meant by javabeans?
Is char * a string?
How do you find the maximum number from an array without comparing and sorting?
In java, how many ways you can take input from the console?