Home Download Buy Blog Forum Support

[BUG] Linux, missing multiprocessing

[BUG] Linux, missing multiprocessing

Postby damnwidget on Mon Apr 02, 2012 9:22 pm


The bundled python2.6 API miss some important modules on Linux, for example the _multiprocessing module is not built as a built-in and dyn-libs are not added into the zip package (obviously) so is not possible to use multiprocessing on Linux without horrible hacks.

I'd like to know if this is planned to be fixed because I want to avoid the GIL on Linux.

Ty very much.
Posts: 15
Joined: Thu Feb 23, 2012 2:35 pm

Re: [BUG] Linux, missing multiprocessing

Postby bizoo on Tue Apr 03, 2012 6:21 am

I don't think multiprocessing could work on Windows box. As fork() doesn't exists on Windows, multiprocessing run a new Python interpreter for each new process, which is impossible in ST2.
It *could* work on Linux, but I suppose that when you call fork() from ST2, it's the entire process that is forked, not only Python interpreter, so it's far from optimal.

Why don't you call an external Python script using subprocess ?
Posts: 958
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 29 guests