void Run() { for (int i = 0; i < 1000; i++) { syracuse.Next(); Thread.Sleep(10); } }
void Run() { for (int i = 0; i < 1000; i++) { syracuse.Next(); Thread.Sleep(10); lock (syracuse.verrou) { i++; } } }
void Run() { for (int i = 0; i < 1000; i++) { syracuse.Next(); Thread.Sleep(10); } }
void Run() { for (int i = 0; i < 1000; i++) { syracuse.Next(); Thread.Sleep(10); lock (syracuse.verrou) { i++; } } }