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
How do you convert boolean to boolean?
When throw keyword is used?
What is jar?
Which class is the superclass of all classes?
Can size_t be negative?
What is Session reduplication and how its done?
What are predefined functions?
Name component subclasses that support painting in java programming?
What is the purpose of abstract class?
Why is boolean important?
Why does java not support operator overloading?
Explain how can you debug the Java code?
How many functional interfaces does java 8 have?
What is the difference between class & structure?
Can variables be used in java without initialization?