Home > Net >  How do I use multithreading calculating the value of 1 to 100?
How do I use multithreading calculating the value of 1 to 100?

Time:11-07

I just learn multithreaded
Topic request with a main thread, 4 child thread, child thread computation 1 plus 1 to 25, 2 threads to calculate 26 to 50, the third child thread 51 to 75, the fourth child thread calculation of 76 to 100, is a thread execution is completed, the main thread to 4 is the result of the threads together, get 5050,
Do not use the thread pool, with thread communication or synchronous how to do?
  •  Tags:  
  • C#
  • Related