I have a c# console application that creates up to 5 threads.
The threads are executing fine, but the UI thread shuts down as it finishes its work.
Is there a
The threads in the ThreadPool are background threads and that means an exiting application won't wait for them to complete.
You have a few options:
Parallel.ForEach(urls, url => MyMethod(url));