different outputs between Computer and connectport

Hello,

i get different outputs wenn i try to execute my code on the PC and on the connectport. The order of the output is wrong. The code starts with start.py

PC output:


Launching Python application 'aus.py' ...

hallo
hallo
sleep
ende
2011-08-10 08:00:16.676000
123
2011-08-10 08:00:16.684000
123

Connectport output:


Launching Python application 'aus.py' ...

sleep
hallo
1970-01-01 00:04:17
123
hallo
1970-01-01 00:04:17
123
ende

here is my code:
start.py


from test import *



test.py


import threading 
import time
import thread 

from datetime import datetime, date
class tester(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
        self.i=0
    def run(self):
        print "hallo"
        print datetime.utcnow()
        print "123"

def run():
    print "sleep"
    time.sleep(10)

    print "ende"
        
t=tester()
t1=tester()
#t.run()
t1.start()
t.start()
print "sleep"
time.sleep(10)

print "ende"

try debugging the code by setting the break points using ‘Digi ESP for python’ on both PC as well as ConnectPort X4. You can set time in the ConnectPort X4 by applying CLI command ‘set time’ through the telnet session. You can know the Command format by applying ‘set time?’.

Hello. At first glance, I would say you’re seeing this behaviour due to the hardware differences between your PC and gateway (primarily the CPU).

This could cause a difference in how the multliple thread objects are prioritized and executed on your PC versus how it is handled on the gateway.