RE: Thread problem

2011-11-23 Thread Nikunj.Badjatya
Can someone help me on this please? From: python-list-bounces+nikunj.badjatya=emc@python.org [mailto:python-list-bounces+nikunj.badjatya=emc@python.org] On Behalf Of nikunj.badja...@emc.com Sent: Wednesday, November 23, 2011 11:15 AM To: python-list@python.org Subject: Thread problem

Thread problem

2011-11-22 Thread Nikunj.Badjatya
Howdy All, Please see http://pastebin.com/GuwH8B5C . Its a sample program implementing progressbar in multithreaded program. Here I am creating a thread and passing update2() function to it. Now wheneever I press CTRL-C, the program isnt returning to prompt. ! Can someone help me out with this p

Re: bsddb3 thread problem

2008-04-02 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Using threads with bsddb3.  I spent weeks trying to get it to behave > > when threading.  I gave up in the end and changed to sqlite :-( > > > So does it mean that I will have to use threading locks around access > methods? or that will also fai

Re: bsddb3 thread problem

2008-04-01 Thread [EMAIL PROTECTED]
On Apr 1, 9:02 pm, Rhamphoryncus <[EMAIL PROTECTED]> wrote: > It's my understanding that the connection is NOT thread-safe.  Your > thread should be using an entirely separate connection.- Hide quoted text - > Can you please explain that, which connection you are talking about? How to modify my te

Re: bsddb3 thread problem

2008-04-01 Thread [EMAIL PROTECTED]
> Using threads with bsddb3.  I spent weeks trying to get it to behave > when threading.  I gave up in the end and changed to sqlite :-( > So does it mean that I will have to use threading locks around access methods? or that will also fail mysteriously :) -- http://mail.python.org/mailman/listin

Re: bsddb3 thread problem

2008-04-01 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In my application I am trying to access(read) a DB thru a thread while > my main thread is adding data to it and it gives following error(s) [snip] > Do anybody has a clue what I am doing wrong here? Using threads with bsddb3. I spent weeks trying

Re: bsddb3 thread problem

2008-04-01 Thread Rhamphoryncus
On Apr 1, 1:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > In my application I am trying to access(read) a DB thru a thread while > my main thread is adding data to it and it gives following error(s) > > bsddb._db.DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, > run database re

bsddb3 thread problem

2008-04-01 Thread [EMAIL PROTECTED]
In my application I am trying to access(read) a DB thru a thread while my main thread is adding data to it and it gives following error(s) bsddb._db.DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: Permission denied') and sometimes bsddb._db.DBRunRecovery

Re: freebsd thread problem

2006-04-24 Thread Dorian Mcfarland
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

Re: freebsd thread problem

2006-04-24 Thread Ivan Voras
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'

freebsd thread problem

2006-04-24 Thread Dorian Mcfarland
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

Re: python's thread problem on Linux platform

2006-04-23 Thread robert
[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

Re: python's thread problem on Linux platform

2006-04-22 Thread Irmen de Jong
[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

python's thread problem on Linux platform

2006-04-22 Thread devdoer
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'

komodo thread problem

2005-02-04 Thread [EMAIL PROTECTED]
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 --

os.system() inside a thread problem

2004-12-11 Thread Daniel Bernhardt
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

Re: os.system() inside a thread problem

2004-12-11 Thread Daniel Bernhardt
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

Re: os.system() inside a thread problem

2004-12-11 Thread Fredrik Lundh
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