`high overhead of multiple Python processes' (was: Will multithreading make python less popular?)
Joshua Judson Rosen
rozzin at geekspace.com
Sat Feb 21 15:13:26 EST 2009
Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
>
> Right, that's basically the issue here: the cost of using multiple
> Python processes is unnecessarily high. If that cost were lower then
> we could more easily use multiple cores to make oru apps faster.
What cost is that? At least on unix systems, fork() tends have
*trivial* overhead in terms of both time and space, because the
processes use lazy copy-on-write memory underneath, so the real costs
of resource-consumption for spawning a new process vs. spawning a new
thread should be comparable.
Are you referring to overhead associated with inter-process
communication? If so, what overhead is that?
--
Don't be afraid to ask (Lf.((Lx.xx) (Lr.f(rr)))).
More information about the Python-list
mailing list