Doubt on creating threads

koranthala at koranthala at
Sat Jan 3 17:39:52 CET 2009

I was going through Python posts and this post caught my attention

 You have missed an important point. A well designed application does
 neither create so many threads nor processes. The creation of a
 or forking of a process is an expensive operation. You should use a
 of threads or processes.

I am creating an application and it creates ~1-2 threads every second
and kill it within 10 seconds. After reading this I am worried. Is
creating a thread a very costly operation? I cannot use a pool of
threads because I am using an external application (twisted) to create
the threads (deferToThread).

More information about the Python-list mailing list