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 does 3 dots mean in java?
What is a byte string?
How can an exception be thrown manually by a programmer?
What are the procedures?
Can vector have duplicates in java?
How many types of voids are there?
What do you mean by an interface in java?
Why local variables are stored in stack?
Why java is used everywhere?
How java enabled high performance?
How we can generate random numbers in java?
What are streams?
What are namespaces in java?
When should you make a function static?
What is a text string?