C# Downloader: should I use Threads, BackgroundWorker or ThreadPool?

后端 未结 4 1184
遥遥无期
遥遥无期 2020-12-05 12:34

I\'m writing a downloader in C# and stopped at the following problem: what kind of method should I use to parallelize my downloads and update my GUI?

In my first att

4条回答
  •  长情又很酷
    2020-12-05 13:02

    Having 100% cpu load has nothing to do with the download (as your network is practically always the bottleneck). I would say you have to check your logic how you wait for the download to complete.

    Can you post some code of the thread's code you start multiple times?

提交回复
热议问题