Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

question on Thread synchronization

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


Please Help Members By Posting Answers For Below Questions

How do you escape sequences in java?

1070


What is javac used for?

937


Which browsers work with java?

1071


Which of the following classes will have more memory allocated?

1017


What is difference between ++ I and I ++ in java?

964


What are the topics in advance java?

966


Can you explain the meaning of aggregation and composition

1008


Can we override constructor in java?

1089


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

1017


What is an class?

1032


What is a local block?

1130


What is the purpose of the System class?

996


Why is singleton not thread safe?

1045


Explain throw keyword in java?

1043


What is heterogeneous in java?

958