• Post Reply Bookmark Topic Watch Topic
  • New Topic

Synchronization

 
sri rallapalli
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
1. Can any one tell the difference between class level synchronization and object level synchronization.
2. What is the use of each type of synchronizations.
3. Situations where we will go for class level, object level.

Thanks in advance,
Srini.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds a little like homework. What were your answers? Post them and we'll provide critique.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sri rallapalli:
1. Can any one tell the difference between class level synchronization and object level synchronization.


quite a bit of work to answer all the three.

About the first I can say that , the difference between class level syncronization and object level synchronization is according to the lock that you try to aquire.In the case you acquire the Class's lock (using static syncronized) you do a class level synchronization and in case of a normal synchronization , you do a object level synchronization.

Rest two , I guess you can figure out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!