Why my python code doesn't print in a separate thread? (IronPython)

35 views Asked by At

I'm not sure, what I did wrong: So, I started a thread with the ThreadStart()-delegate from the .net-libary. It's delegating to another method. In the method I have a for-loop. But when I'm looking in the console, I can't find any text.

def Loop():
   for i in range(0,10):
     print(i)

Updating_Thread = Thread(ThreadStart(Loop))
Updating_Thread.Start()
0

There are 0 answers