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...

we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it?

Answer Posted / ranjan

synchronization is necessary in threads
problem.synchronization means at a time only one thread can
access it.If it is not done then one thread will read the
resource & other will try to update it.It will create a
problem.

Is This Answer Correct ?    3 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can java cast null?

1039


Explain restrictions for using anonymous inner classes?

1093


What happens if we override private method?

971


What is the difference between array list and vector in java?

935


What is the benefit of inner classes in java?

1087


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

1030


What is the most important feature of java? What is an interface?

1015


What is the use of toarray () in java?

1071


What are the differences between Java 1.0 and Java 2.0?

2274


What is a heavyweight component?

1024


What is the final keyword denotes?

1110


why an outer class cannot be declared as private?

4320


What are thread priorities and importance of thread priorities in java?

1139


What is autoboxing in java?

1066


What is super?

1162