delay starting a thread until a previous thread is completed
Posted on 2004-08-27
HOw can I delay the start of a thread until a previous thread has completed. My code is as follows:
Dim Q As Thread
Q = New Thread(AddressOf invtransfer)
Q.Name = "putaways_one"
dim R as Thread
r = new Thread ( AddressOf of runsql)
r.Name = "putaways_two"
I want thread R to start after thread Q has exited. Should I use a Do while loop until status of threadQ is complete?