public void run() { Thread t = Thread.CurrentThread; // print (t.IsAlive); while (t.IsAlive == true) { while (counter_for_run > 0) { ; } Egal.ccn_run(h, -1); } }