File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes Question For Thread Guru's .. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Question For Thread Guru Watch "Question For Thread Guru New topic
Author

Question For Thread Guru's ..

Vipul
Ranch Hand

Joined: Apr 27, 2005
Posts: 38
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

Joined: Jan 29, 2003
Posts: 8791
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!


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8265

How's about taking a gander at the Java Tutorial on Threads. There's an explanation in there about synchronization. No guru needed.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Question For Thread Guru's ..
 
Similar Threads
where are all the Moderators tonite? hehehehe..
Thread names??
Mock question authenticity (To Moderators)
Thread Q from Sierra & Bates SCJP Study Guide
Some clarification on the recent purgings...