Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i = 0;
- try
- {
- while (true)
- {
- new Thread(new ThreadStart(() => Thread.Sleep(int.MaxValue))).Start();
- i++;
- }
- }
- catch (Exception ex)
- {
- Console.WriteLine(i);
- Console.WriteLine(ex.ToString());
- }
Add Comment
Please, Sign In to add comment