KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 way to keep the main UI thread running, for as long as the side threads are running? foreach (var url in urls) { Console.WriteLine("starting thread: " + url); ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(myMethod), url); } I'm kicking off my threads as per the code above.
Tags (comma-separated)
Save Edits
Cancel