[Tutor] thread.error: can't start new thread

Alan Gauld alan.gauld at btinternet.com
Wed Jun 4 21:30:12 CEST 2008


"Mohit Jain" <mjain at buzzient.com> wrote

> I am new to python (started programming a week back).

I assume from what follows that you are not new to programming
and have experience of threads in other languages(maybe Java?)

If not and you are new to programming then back off from threads
for now! They are not a good place for beginners to go! :-)

> piece of text analysis code over a database which contain more than
> 10,000,00 rows. I decided to run the program in a threaded way.

Are you actually processing multiple rows at once or are
you just launching a single (or few) long lived thread(s)? The latter
approach should not give any problems. The former is likely to
run into resource issues of all sorts.

Could be database, OS, file handles etc etc. as well as Python.

> thread.error: can't start new thread.

Can you show us the entire error including the stack trace plus
some contextual code around the error. Specifically how you are
starting the threads.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list