You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, the remote processes have to import the mtest module, in
order to execute the get_size() function.
This in turn calls the main() function, which creates a new pool of
processes, etc... exponential explosion.
Linux forks and does not have this problem.
Activity
mark-summerfield commentedon Aug 19, 2008
When the attached program is run on Linux it runs "instantly" and
outputs one line, e.g.:
(The number of bytes will vary depending on the system.)
When run on Windows XP there is no output at all; many processes seem to
be created but nothing seems to actually get done.
In both cases I'm using Py30b2.
amauryfa commentedon Aug 19, 2008
There is a problem in your script.
On Windows, the remote processes have to import the mtest module, in
order to execute the get_size() function.
This in turn calls the main() function, which creates a new pool of
processes, etc... exponential explosion.
Linux forks and does not have this problem.
The solution of course is
pitrou commentedon Aug 19, 2008
For what it's worth, this is documented in
http://docs.python.org/dev/library/multiprocessing.html#windows
mark-summerfield commentedon Aug 19, 2008
On 2008-08-19, Antoine Pitrou wrote:
Ah yes, sorry I missed that.