Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static long counter;
- static void Main(string[] args)
- {
- try
- {
- counter = 0;
- while(true)
- {
- new Thread( () => {
- for (long i = 0; i < 1000000000000; i++) ;
- } ).Start();
- counter++;
- }
- }
- catch(Exception)
- {
- Console.WriteLine(counter);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement