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

synchronization is necessary in threads
problem.synchronization means at a time only one thread can
access it.If it is not done then one thread will read the
resource & other will try to update it.It will create a
problem.

Is This Answer Correct ?    3 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is considered as platform independent?

1054


How you can force the garbage collection?

1029


I want to print “hello” even before main is executed. How will you acheive that?

1147


What is the default access specifier for variables and methods of a class?

1253


What is pre increment and post increment in java?

1033


Explain illegalmonitorstateexception and when it will be thrown?

1154


How to run a JAR file through command prompt?

1337


Is ruby built on java?

984


What is the requirement of thread in java?

1101


Which of the following classes will have more memory allocated?

1062


How do you join strings in java?

1110


Can this keyword be used to refer static members?

1073


Explain the importance of join() method in thread class?

1133


What is string intern in java?

1086


What is the difference between iterator and enumeration ?

1041