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?

Answers were Sorted based on User's Feedback



we have two threads..both the threads are reading the data.. is there any need of synchronization ..

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

we have two threads..both the threads are reading the data.. is there any need of synchronization ..

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

we have two threads..both the threads are reading the data.. is there any need of synchronization ..

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

we have two threads..both the threads are reading the data.. is there any need of synchronization ..

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

More Core Java Interview Questions

What is an image buffer?

0 Answers  


What are concepts of OOPS and how are they implemented in Java?

2 Answers   KPIT,


What is the difference between compiler and jvm?

0 Answers  


What is the primary benefit of encapsulation?

0 Answers  


What is the argument in java?

0 Answers  


What is the list interface in java programming?

0 Answers  


What are the procedures?

0 Answers  


what is sendredirect?

7 Answers   TCS,


I have 2 objects inside one object(vector). how can i serialize one of them. I dont want to serialize the second one

3 Answers   ABC, L&T,


What is entry set in java?

0 Answers  


Why deletion in linkedlist is fast than arraylist?

0 Answers  


What is a variable declaration?

0 Answers  


Categories