I have a number of threads that need running (about 160) creating files and then copying them to various places:
'Files is basically a list of strings
'which is passed to a function that creates a file from a number of database fields
'when thats done it copies it to a number of places
For Each x In Files
Dim Evaluator = New Thread(Sub() API.Files.Create.Standard(x))
Evaluator.Start()
Next
What i want it to do is fire off the 160 or so threads (with permitter x) then wait for all the threads to finish and then continue with the rest of the program.