Help me use my Dual Core CPU!

Simon Wittber simonwittber at gmail.com
Wed Sep 13 03:26:21 EDT 2006


Paul Rubin wrote:
> "Simon Wittber" <simonwittber at gmail.com> writes:
> > I've just noticed that os.fork is not available on Win32. Ouch.
>
> Use the subprocess module.

I can't see how subprocess.Popen can replace a fork. Using a manually
started process is not really viable, as it does not automatically
share pre-built (read-only) data between the processes. If it can, I'd
really like to know how...

Yikes. This is a bummer. The conclusion seems to be, I cannot use any
common cross platform, true concurrency strategies in my games. On top
of that, I can't really use any form of concurrency on Win32.

Lets hope we get some super fast SMP friendly backends for PyPy sooner
rather than later!

-Sw.




More information about the Python-list mailing list