Hey guys,

I've got a GUI thread, which creates a new thread to compute some data. Depending on how big that data is more threads get spawned from the new thread.

My problem is this

GUI - Thread A - Thread A creates a new Object called objectB. Object B decides how many new threads to create to get the job done. Max 3 min 1.

So 've got

Gui - Thread A - Object - Thread 1, 2 3...

Now how can I tell Thread A that Thread 1 2 and 3 are finished?

Cheers.

Trigger an event at the end of the threads running

That sounds good, but I'm not sure how to implement such a thing

OK.....
Have a read on making events.. that would be a good place to start.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.