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 is another word for methodology?
What is the functionability stubs and skeletons?
List out benefits of object oriented programming language?
What are inner classes or non static nested classes in java?
What is called module?
Which sorting algorithm is best in java?
What is generics in java interview questions?
What class allows you to read objects directly from a stream in java programming?
What are the main features of java?
Describe the various concepts related to object oriented programming (oop).
What are three ways in which a thread can enter the waiting state in java programming?
Which package is always imported by default?
Can inner class have constructor?
How do you sort a list in java?
Convert a BST into a DLL and DLL to BST in place.