Re: Python and threads

2009-01-19 Thread Scott David Daniels
vedrandeko...@yahoo.com said: > ... when I run these two threads, > I think they don't start at the same time In response, Diez B. Roggisch wrote: ... Even if you managed to get two threads started simultaneously (which the OS doesn't even offer IINM), the would soon run out of sync And th

Re: Python and threads

2009-01-19 Thread vedrandekovic
On 18 sij, 21:27, Stefan Behnel wrote: > vedrandeko...@yahoo.com wrote: > > and thanks for all previous help.I want to measure memory usage of > > executed python script.I'am working on windows XP. > > Could you qualify "measure"? Do you mean: > > a) "debug" (permanently high accuracy, potentially

Re: Python and threads

2009-01-18 Thread Stefan Behnel
vedrandeko...@yahoo.com wrote: > and thanks for all previous help.I want to measure memory usage of > executed python script.I'am working on windows XP. Could you qualify "measure"? Do you mean: a) "debug" (permanently high accuracy, potentially high runtime overhead) b) "monitor" (high accuracy,

Re: Python and threads

2009-01-18 Thread vedrandekovic
On 18 sij, 17:48, "Diez B. Roggisch" wrote: > vedrandeko...@yahoo.com schrieb: > > > > > Hello again, > > > Thanks for previous help on "Start two threads in same time" it was > > useful,but when I run this > > two threads, I think they don't start at the same time, here is my > > code snippet: >

Re: Python and threads

2009-01-18 Thread Diez B. Roggisch
vedrandeko...@yahoo.com schrieb: Hello again, Thanks for previous help on "Start two threads in same time" it was useful,but when I run this two threads, I think they don't start at the same time, here is my code snippet: import threading class ThreadedClass1(threading.Thread): def __init

Re: Python and threads

2009-01-18 Thread Stefan Behnel
vedrandeko...@yahoo.com wrote: > Thanks for previous help on "Start two threads in same time" it was > useful,but when I run this > two threads, I think they don't start at the same time That's normal. Threading is an unpredictable concurrency pattern. Things often don't happen the way one would w