Komodo problem with threading:
Hello,
I can't run this program:
def printtime(Max):
i = 0
while True:
time.sleep(1)
print time.ctime(time.time())
i+=1
if i==Max : break
pass
if __name__ == "__main__":
thread.start_new_thread(printtime,(2,))
But it runs inside IDLE.
pujo
--
Hi there,
I have installed python(2.4.3) & trac(0.9.4) on freebsd(4.8) from the ports
collection and I seem to have an underlying problem with the thread module.
Pysqlite is calling 'import thread' which is failing with "no such module" and
causing it not to load. I thought that 'thread' was one
Dorian Mcfarland wrote:
> Hi there,
> I have installed python(2.4.3) & trac(0.9.4) on freebsd(4.8) from the
> ports collection and I seem to have an underlying problem with the
> thread module.
> Salling 'import thread' from the python prompt yields the same result.
>
> I have a 'threading.py'
That was the problem. thanks for the clarity - finally working.
> How did you install python? By default, if built from ports, it should
> pop up a configuration dialog in which one of the options is to enable
> thread support. If you have a bad configuration record, you can do a
> "make config
Hello,
my thread calls a program with os.system().
> os.system("/usr/bin/wine /path/to/ultima/online.exe")
Ultima Online is starting and i can enter commands and navigate through the
game with my keyboard. If I move the mouse over the Ultima Online window
Ultima Online crashes. (the mouse just ne
Daniel Bernhardt wrote:
> my thread calls a program with os.system().
>> os.system("/usr/bin/wine /path/to/ultima/online.exe")
in the example you included, you use execv. which one is it?
> Ultima Online is starting and i can enter commands and navigate through the
> game with my keyboard. If I
Fredrik Lundh wrote:
> in the example you included, you use execv. which one is it?
it should be system(). I just played a bit and forgot to change it back.
>
> just curious: do you really have to use a thread? why not just do
>
>os.system(command + "&")
>
No, i don't need to use a th
I found that multi-threaded program(io-centralize ) runs very slowly
on linux while the same program runs very quickly on windows.If I
change the thread number to one ,the program runs quickly on linux, in
fact the speed is quicker than the multi-threaded version .
It turns out that python'
[EMAIL PROTECTED] wrote:
> I found that multi-threaded program(io-centralize ) runs very slowly
> on linux while the same program runs very quickly on windows.If I
> change the thread number to one ,the program runs quickly on linux, in
> fact the speed is quicker than the multi-threaded vers
[EMAIL PROTECTED] wrote:
> I found that multi-threaded program(io-centralize ) runs very slowly
> on linux while the same program runs very quickly on windows.If I
> change the thread number to one ,the program runs quickly on linux, in
> fact the speed is quicker than the multi-threaded ver
10 matches
Mail list logo