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 bubble sort in java?

1061


What is class forname?

1025


What is the static method?

1084


What about member inner classes?

1100


What are serialization and deserialization?

1272


What do you mean by compiler?

1050


What are the main differences between notify and notifyAll in Java?

1099


Which containers use a flowlayout as their default layout in java programming?

1017


Explain about automatic type conversion in java?

1054


What do you mean by append?

1076


What value is a variable of the string type automatically initialized?

1115


Explain the use of volatile field modifier?

1083


Why char array is preferred over string for storing password?

1109


what is the difference between future and callable interface in java?

1245


How can you set the applet size?

1058