Answer Posted / dayanand pujer (from gokak)
Threads commonly share the same memory space area, that’s
why they can share the resources. Threads commonly
communicate by sharing access to fields and the objects
reference fields refer to. This communication type is
extremely efficient, but makes two kinds of problems: thread
interference and memory consistency errors. By the
synchronization tool we can avoid this problem. In other
words, There is very critical situation where we want only
one thread at a time has to access a shared resources. For
example, suppose two people each have a checkbook for a
single account same as like two different threads are
accessing the same account data.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the differences between abstract class and interface?
What are advantages of using Java?s layout managers than windowing systems?
Explain about abstract classes in java?
Can a final variable be null?
What is basic syntax?
What is the use of flag?
What is internal variable?
what r advatages of websphere? & how to deploy?
What is the size of int in 64-bit jvm?
Why unicode is important?
Is 0 a real number?
Can a java program have 2 main methods?
What is the difference between overriding & overloading?
What is the history of java?
What is method in research paper?