• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reg. Thread basics question

 
Angela Narain
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can someone explain me the lines //1 and //2 and the effect
of creating this threads and calling the run method.
How will they be synchronized ?
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain me the lines //1 and //2 and the effect
of creating this threads and calling the run method.
How will they be synchronized ?

</BLOCKQUOTE>

Since they are each synchronized with respect to themselves, there will be no visible effect of the synchronization. They are seperete objects synchronized on seperate things.

[This message has been edited by CL Gilbert (edited October 08, 2001).]
[This message has been edited by CL Gilbert (edited October 08, 2001).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!