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"