Facebook
From Toxic Kitten, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 378
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. using System.Diagnostics;
  8.          
  9. namespace cw1._1
  10. {
  11.     class Program
  12.     {
  13.          
  14.         static void funkcja()
  15.         {
  16.               while (true)
  17.               {
  18.                    bool x;
  19.               }
  20.         }
  21.          
  22.         static void Main(string[] args)
  23.         {
  24.             int ile_Watkow = 0;
  25.          
  26.                    
  27.             while (true)
  28.             {
  29.                  Thread watek = new Thread(funkcja);
  30.                  ile_Watkow++;
  31.                  watek.Start();
  32.                  Console.WriteLine("Watek " + iloscWatkow + "utworzony");
  33.          
  34.             }
  35.                  
  36.         }
  37.     }
  38. }
  39.