private void Produce() { for (int i = 0; i < _numToProduce; i++) { var num = _rand.Next(1, 1001); _ring.Insert(num, 10); Thread.Sleep(num); } _completeEvent.Set(); }