Create Dynamic Threads in c# [closed]

Your question lacks the details but I think you are looking for a throttling mechanism. There are plenty of the existing libraries that can do the heavy lifting for you, e.g. https://nugetmusthaves.com/Tag/throttling

You can also implement it yourself. The implementation details will be different for sync and async code.

https://blog.briandrupieski.com/throttling-asynchronous-methods-in-csharp

Leave a Comment