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

What is the integer of 16?

928


What is off heap memory?

935


What is the latest version of java?

1051


Does java support Operator Overloading?

987


What is jvm? Why is java called the platform independent programming language?

945


Discuss 2D arrays.

998


how would you implement a thread pool? : Java thread

844


In a class implementing an interface, can we change the value of any variable defined in the interface?

1022


Write a program to print fibonacci series

1073


Difference between static synchronization vs. Instance synchronization?

1048


How do you control extraneous variables?

856


what do you mean by java annotations?

1049


What do you mean by Function Overloading in java?

1124


Can we write any code after throw statement?

1004


What does nextint () do in java?

932