Message3927
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. |
|
Date |
User |
Action |
Args |
2008-12-15 18:15:40 | cgroves | set | messageid: <1229364940.29.0.487297015603.issue1203@psf.upfronthosting.co.za> |
2008-12-15 18:15:40 | cgroves | set | recipients:
+ cgroves, gunter.bach |
2008-12-15 18:15:40 | cgroves | link | issue1203 messages |
2008-12-15 18:15:40 | cgroves | create | |
|