using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Diagnostics; namespace cw1._1 { class Program { static void funkcja() { while (true) { bool x; } } static void Main(string[] args) { int ile_Watkow = 0; while (true) { Thread watek = new Thread(funkcja); ile_Watkow++; watek.Start(); Console.WriteLine("Watek " + iloscWatkow + "utworzony"); } } } }