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

Python and threads

2009-01-18 Thread vedrandekovic
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__(self): threading.Thread.

Re: Problems with python and threads under Freebsd

2005-02-08 Thread Andrew MacIntyre
snacktime wrote: After debugging this some more I narrowed it down to an encryption function in pycrypto that is triggering the segfault. I posted a bug report. Don't really know enough about threading to know whether it's a python bug or a pycrypto bug, but I'll let someone else sort that out no

Re: Problems with python and threads under Freebsd

2005-02-07 Thread snacktime
After debugging this some more I narrowed it down to an encryption function in pycrypto that is triggering the segfault. I posted a bug report. Don't really know enough about threading to know whether it's a python bug or a pycrypto bug, but I'll let someone else sort that out now.. Chris -- ht

Re: Problems with python and threads under Freebsd

2005-02-07 Thread snacktime
This is a followup with some more information. The program is written in twisted and I posted this to twisted-python also. The freebsd list wants a more detailed backtrace, which even with python compiled with OPT -g and --with-pydebug isn't happening for some reason. The script below calls a bl

Re: Problems with python and threads under Freebsd

2005-02-07 Thread Stefan Schwarzer
snacktime wrote: > I am consistantly getting seg faults and bus errors when running a > multi threaded python application under 5.3-release-p2. Python was > built from the port(python 2.4) with threading enabled. I had similar problems some time ago. The solution/workaround was to remove the thre

Problems with python and threads under Freebsd

2005-02-07 Thread snacktime
I posted this to freebsd-questions, but though I would put it here also in case anyone has any ideas. I am consistantly getting seg faults and bus errors when running a multi threaded python application under 5.3-release-p2. Python was built from the port(python 2.4) with threading enabled. Rebu