threading

  • Thread starter Thread starter hharry
  • Start date Start date
H

hharry

Hello All,

I have designed an application with one UI thread which spawns one
thread (THREAD 1). When THREAD 1 completes an event is sent to the UI
signalling that the thread has completed.

For performance reasons, I need to increase the number of threads. I
now have one UI thread which spawns one thread (THREAD 1). THREAD 1
spawns 3 threads (SUB THREAD 1, SUB THREAD 2, SUB THREAD 3).

I need SUB THREAD 1, SUB THREAD 2 and SUB THREAD 3 all to complete
prior to THREAD 1 completing.
What is the best way to do this ?

Pointers appreciated
Thanks
hharry
 
hharry said:
I have designed an application with one UI thread which spawns one
thread (THREAD 1). When THREAD 1 completes an event is sent to the UI
signalling that the thread has completed.

For performance reasons, I need to increase the number of threads. I
now have one UI thread which spawns one thread (THREAD 1). THREAD 1
spawns 3 threads (SUB THREAD 1, SUB THREAD 2, SUB THREAD 3).

I need SUB THREAD 1, SUB THREAD 2 and SUB THREAD 3 all to complete
prior to THREAD 1 completing.
What is the best way to do this ?

Have a look at Thread.Join.
 
Back
Top