Re: Mutable global state and threads

2017-01-06 Thread Chris Angelico
On Wed, Jan 4, 2017 at 5:41 PM, Kev Dwyer wrote: > Hello List, > > I came across some threading code in Some Other place recently and wanted to > sanity-check my assumptions. > > The code (below) creates a number of threads; each thread takes the last > (index -1) value from a global list of integ

Re: Mutable global state and threads

2017-01-03 Thread Chris Angelico
On Wed, Jan 4, 2017 at 5:41 PM, Kev Dwyer wrote: > Hello List, > > I came across some threading code in Some Other place recently and wanted to > sanity-check my assumptions. > > The code (below) creates a number of threads; each thread takes the last > (index -1) value from a global list of integ