Doubt on creating threads

koranthala at gmail.com koranthala at gmail.com
Sat Jan 3 23:25:59 EST 2009


On Jan 4, 4:59 am, Bryan Olson <fakeaddr... at nowhere.org> wrote:
> koranth... 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

Thank you very much.
I was worried about this a lot.



More information about the Python-list mailing list