C# Multi-threaded app - structure?
问题 So, I'll make an application for checking links if they're accessible(live). My question is how to make the threads "always busy". What I mean: The app run 100 threads(created with FOR loop for example) with 100 different URLs. So when 1 of the threads finish it's job(check if URL is available) to get new URL and start again immediately. So the 100 threads will work non-stop till all URLs are checked. How can I accomplish that? 回答1: What you are looking for is called the Producer-Consumer