using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Diagnostics; namespace cw1_2 { 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 " + ile_watkow + " utworzony"); } } } }