• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reg. Thread basics question

 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
reply
    Bookmark Topic Watch Topic
  • New Topic