Java: dynamically creating threads

Associate
Joined
7 Jan 2007
Posts
640
Location
Cambridge
Hi all, I need a bit of help with my final year project.

I have a series of objects all running in seperate threads created from a main method, but I need each of these objects to have the ability to create a new thread with an object of the same type at specific intervals. Each of these objects are created in an array and each of them is passed an intermediary class. This intermediary class is then passed the filled array allowing the objects to interact with each other.

Any ideas how to go about it?

EDIT: Never mind, Thread Factories seem to do the job nicely
 
Last edited:
Back
Top Bottom