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

How many decimal places is a double?

942


Why we used break and continue statement in java?

1085


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

1137


What environment variables do I need to set on my machine in order to be able to run java programs?

976


What is floor in java?

998


What does three dots mean in java?

1078


How to create a base64 decoder in java8?

1016


Why char array is preferred over string for storing password?

1053


What is a flag value?

970


Write a java program to count the number of words present in a string?

949


What is slash r?

963


What is a default method?

1004


How many types of variables are there?

1092


What is the difference between abstract classes and interfaces?

984


What are the wrapped, classes?

1020