what is mean by synchronization?
Answer Posted / 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 |
Post New Answer View All Answers
Can we override singleton class?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
How do you add an arraylist to an array in java?
What is string builder in java?
What’s the difference between constructors and other methods?
What is the symbol for line break?
When the constructor of a class is invoked?
Can a class be a super class and a sub-class at the same time? Give example.
What are the restrictions imposed by a Security Manager on Applets?.
Is it possible for yielded thread to get chance for its execution again ?
Explain about procedural programming language or structured programming language and its features?
What is string syntax?
Is passing by reference faster?
Can singleton class be inherited in java?
How do you make an arraylist empty in java?