C# Waiting for multiple threads to finish

后端 未结 5 1698
滥情空心
滥情空心 2020-11-28 12:30

I have a windows forms app that I am checking all the serial ports to see if a particular device is connected.

This is how I spin off each thread. The below code is

5条回答
  •  鱼传尺愫
    2020-11-28 13:11

    The simplest and safest way to do this is to use a CountdownEvent. See Albahari.

提交回复
热议问题