Doubt on creating threads

Bryan Olson fakeaddress at nowhere.org
Sat Jan 3 18:59:02 EST 2009


koranthala at gmail.com wrote:
> 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? 

Compared to a procedure call it's expensive, but a couple threads per 
second is insignificant. My out-dated Pentium 4 desktop can create and 
destroy a few thousand threads per second under WinXP; more under recent 
Linux.


-- 
--Bryan



More information about the Python-list mailing list