Message3927

Author cgroves
Recipients cgroves, gunter.bach
Date 2008-12-15.18:15:39
SpamBayes Score 1.0270538e-07
Marked as misclassified No
Message-id <1229364940.29.0.487297015603.issue1203@psf.upfronthosting.co.za>
In-reply-to
Content
I'd guess that the threads all execute, but because Jython doesn't have
a GIL, several of the increments to cnt_a and cnt_b are stomped on by
other threads.  To make this work properly you can lock around
incrementing the counters, or use
java.util.concurrent.atomic.AtomicInteger instead of plain Python ints.
History
Date User Action Args
2008-12-15 18:15:40cgrovessetmessageid: <1229364940.29.0.487297015603.issue1203@psf.upfronthosting.co.za>
2008-12-15 18:15:40cgrovessetrecipients: + cgroves, gunter.bach
2008-12-15 18:15:40cgroveslinkissue1203 messages
2008-12-15 18:15:40cgrovescreate