Pause/resume a thread in C#
问题 I try to pause all my threads when I reach a certain value but I can't do it. I would like that when I reach this value all threads are paused for 10 seconds and after these 10 seconds all threads start again. I tried that with : Threads.Sleep(); | Threads.Interrupt(); and Threads.Abort(); but nothing work. I tried what you can see in the code below. static void Main(string[] args) { for (int i = 0; i < 10; i++) { Threads.Add(new Thread(new ThreadStart(example))); Threads[i].Start(); } for