Python threading (was: Re: global interpreter lock not working as it should)

Armin Steinhoff a-steinhoff at web.de
Fri Aug 9 11:10:51 CEST 2002


martin at v.loewis.de (Martin v. Loewis) wrote in message news:<m3k7n1yg01.fsf at mira.informatik.hu-berlin.de>...
> bokr at oz.net (Bengt Richter) writes:
> 
> > If you're talking about the compute-bound situation, as we have been,
> > yes, but typically all is not computation. I don't expect you mean that
> > in general multithreading always slows down a *system* ;-)
> 
> Compared to what? A single-threaded solution? I do think that
> multi-threading creates a higher CPU load, and if you manage not to
> block in system calls when there is work to and, and to avoid
> busy-waits, that a single-threaded application will have higher
> performance than a equivalent multi-threaded one.
> 
> Threads are for convenience, not for performance.

Threads are for concurrency ....


Armin

> 
> Regards,
> Martin



More information about the Python-list mailing list