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

sychronization is used to execute only one thread or one
block ata time.if your not declare sychronized in the method
there is chance to execute the mixed data i.e.; to threads
start at atime.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is singleton in java?

1003


Is string passed by reference in java?

962


Is 0 an irrational number?

1008


Explain what pure virtual function is?

976


How can we make string upper case or lower case?

1034


What is the latest java version?

1017


what is the difference between a threads start() and run() methods? : Java thread

967


Write a program in java to find the maximum and minimum value node from a circular linked list.

1025


What is the use of beaninfo?

989


Difference between serialization and deserialization in java?

1088


Difference between predicate, supplier and consumer ?

998


What are the major advantages of internal iteration over external iteration?

995


What is meant by interface?

1019


Why char array is favored over string for the storage of passwords?

1014


Which is best ide for java?

1003