Multi-threading in Python vs Java

Chris Angelico rosuav at gmail.com
Fri Oct 11 04:48:31 EDT 2013


On Fri, Oct 11, 2013 at 7:41 PM, Peter Cacioppi
<peter.cacioppi at gmail.com> wrote:
> So, my hope is that the GIL restrictions won't be problematic here. That is to say, I don't need **Python** code to ever run concurrently. I just need Python to allow a different Python worker thread to execute when all the other worker threads are blocking on the model.solve() task. Once the algorithm is in full swing, it is typical for all the worker threads should be blocking on model.Solve() at the same time.

Sounds like Python will serve you just fine! Check out the threading
module, knock together a quick test, and spin it up!

ChrisA



More information about the Python-list mailing list