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 / ysr

It depends upon the data.
where the data is chngable by threads at that time we need
to apply the synchronization.
if the data is purly static data no need to protect the
databy using synchronization. why because if we apply
(synchronization) each and every time there is a
performance degradation is there.
Time factor(it will take more time)

Is This Answer Correct ?    29 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and what are the types of it?

971


Can a class declared as private be accessed outside it’s package?

1000


Which is the best approach for creating thread ?

1183


Difference between notify() method and notifyall() method in java?

952


What is a flag and how does it work?

978


What are the differences between throw and throws?

1064


How do you detect memory leaks?

1044


What is the difference between serializable and externalizable interfaces?

1076


Differentiate between overriding and overloading cases?

1081


Is java a digit method?

978


What is double word?

958


What is static and final keyword in java?

1007


Can inner class be public in java?

997


What are the classes of java?

955


What is meant by data hiding in java?

1123