code_junkie

What's the maximum number of threads in Windows Server 2003

Nov 13th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. int i = 0;
  2. try
  3. {
  4. while (true)
  5. {
  6. new Thread(new ThreadStart(() => Thread.Sleep(int.MaxValue))).Start();
  7. i++;
  8. }
  9. }
  10. catch (Exception ex)
  11. {
  12. Console.WriteLine(i);
  13. Console.WriteLine(ex.ToString());
  14. }
Add Comment
Please, Sign In to add comment