• Post Reply Bookmark Topic Watch Topic
  • New Topic

static synchronized and non-static synchronized

 
Kee Kee moon
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we call static or non-static synchronized methods in the same class, it will block each other if they are invoked using the same instance.
Does it mane we should not either call static or non-static methods in the same class it they are invoked using the same instance, otherwise they will
be dead-locked.

Thanks
 
Kee Kee moon
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kee Kee moon wrote:If we call static or non-static synchronized methods in the same class, it will block each other if they are invoked using the same instance.
Does it mane we should not either call static or non-static methods in the same class it they are invoked using the same instance, otherwise they will
be dead-locked.

Thanks


I withdraw this question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!