C# Waiting for multiple threads to finish

后端 未结 5 1691
滥情空心
滥情空心 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:15

    Store the Thread results in a list after they were spawned and iterate the list - during iteration call join then. You still join linearly, but it should do what you want.

提交回复
热议问题