c# How to wait all thread finished

  • For example ,wait 10 threads terminate

  • thread function :