what is mean by synchronization?
Answers were Sorted based on User's Feedback
Answer / uma
synchronized means that in a multiple threaded
environment,a synchronized object does not let two threads
access the same time.this means that one thread cant be
reading while another updates it.the second thread will
instead wait until the first is done.the overhead is
speed,but the advantage is guaranteed consistency of data..
| Is This Answer Correct ? | 4 Yes | 1 No |
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 |
Answer / ravi ranjan
Synchronization is capability to control multiple thread for
any share resources
| Is This Answer Correct ? | 1 Yes | 0 No |
Explain about version control?
What is the use join() in Threads ?
Can size_t be negative?
What is instance example?
What do you understand by abstract classes?
How to sort array in descending order in java?
write a program to create an arraylist with string(add,remove) operation.and value should be enter through keyboard.
What are the parts of methodology?
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects
using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.
What is classes in java?
Is it compulsory to have atleast one abstract method in abstract class?