• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question For Thread Guru's ..  RSS feed

 
Vipul
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i dont know the number of objects i am going to handle before hand .What is the **best** way to sychronize my code ? .

Scratch your Thread guru ..
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you help us out with more description of what you want to do? I'm not sure how you need to synchronize on a bunch of objects. Thanks!
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How's about taking a gander at the Java Tutorial on Threads. There's an explanation in there about synchronization. No guru needed.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!