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

In this case synchronization is not requied because u r not
going to change the data.
U can use synchronization but performence will decrease.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you clear a list in java?

1201


Explain the difference between a Thread and a Process.

1045


Add a value x to array from index l to r where 0 <= l <= r <= n-1

1130


What does nextint () do in java?

1047


Mention some features of java?

1005


What are different exception types exceptions available in java ?

1046


What is method reference in java?

1190


How is tree Mirroring implemented?

1120


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

1023


Why volatile is used in java?

1139


Explain about field hiding in java?

996


Can I use % with real numbers?

1078


What is internal variable?

1061


What are thread local variables?

1224


Is string a class in java?

1028