Multithreaded service, BackgroundWorker vs ThreadPool?

后端 未结 5 1592
暖寄归人
暖寄归人 2020-12-07 19:01

I have a .NET 3.5 Windows Service. I\'m testing with a small application that just sleeps threads after starting them, for random timespans of 300 to 6500ms. I have various

5条回答
  •  忘掉有多难
    2020-12-07 19:39

    BackgroundWorker was designed to simplify interaction of the task working in the background thread with the UI. You will see the great answer on when to use BackGroundWorker, ThreadPool and simply Thread at BackgroundWorker vs background Thread

    I think it answers the question :).

提交回复
热议问题