Re:Solving multi-core Python
by ant6n on Friday July 10, 2015 @12:36AM
(#9862314)
multiprocessing can be fickle. In ipython, ctrl-c during a computation using multiprocessing results in general unhappiness, and will probably be followed by a 'killall python'
[ Parent
| on HN ]
Re:Solving multi-core Python
by crdoconnor on Friday July 10, 2015 @12:59AM
(#9862377)
I've had this problem too, but after doing the (quite considerable) leg-work to fix it involving messing around with process groups and the ridiculous number of different types of signal, I'm more inclined to blame the horrible 30 year old UNIX APIs than python.
I've had this signal handling problem in single process/single threaded code too, and in other languages.
True, it would be nice if python layered on a nicer set of APIs to deal with the nastiness.
Re:Solving multi-core Python
by logicchains on Friday July 10, 2015 @04:08AM
(#9862798)
>I'm more inclined to blame the horrible 30 year old UNIX APIs than python.
Datapoint: I encountered the same thing on Windows, having to use the Powershell equivalent of `killall python` to deal with it.
No, this is pretty easy in c. i think the python docs even apologise for it somewhere.