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

What is another word for methodology?

1017


What is the functionability stubs and skeletons?

1156


List out benefits of object oriented programming language?

897


What are inner classes or non static nested classes in java?

1178


What is called module?

982


Which sorting algorithm is best in java?

989


What is generics in java interview questions?

1067


What class allows you to read objects directly from a stream in java programming?

1078


What are the main features of java?

972


Describe the various concepts related to object oriented programming (oop).

1030


What are three ways in which a thread can enter the waiting state in java programming?

1166


Which package is always imported by default?

1101


Can inner class have constructor?

1045


How do you sort a list in java?

1035


Convert a BST into a DLL and DLL to BST in place.

1116