Message8613

Author zyasoft
Recipients JonathanFeinberg, duffy151, fwierzbicki, irmen, santa4nt, zyasoft
Date 2014-06-09.17:24:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402334640.45.0.504561129854.issue1949@psf.upfronthosting.co.za>
In-reply-to
Content
Santoso, we actually do just that. So dict and set are backed by ConcurrentHashMap, taking advantage of weakly consistent iteration to match CPython semantics; likewise one of the major fixes for 2.5.0 in its beta cycle was for list, see #1026.

The concurrency chapter I wrote for the Jython book is a good place to start, especially these sections:

* http://www.jython.org/jythonbook/en/1.0/Concurrency.html#thread-safety
* http://www.jython.org/jythonbook/en/1.0/Concurrency.html#atomic-operations

The fact that the GIL imposes a memory model is quite relevant to what it actually is supposed to do.
History
Date User Action Args
2014-06-09 17:24:00zyasoftsetmessageid: <1402334640.45.0.504561129854.issue1949@psf.upfronthosting.co.za>
2014-06-09 17:24:00zyasoftsetrecipients: + zyasoft, fwierzbicki, irmen, JonathanFeinberg, duffy151, santa4nt
2014-06-09 17:24:00zyasoftlinkissue1949 messages
2014-06-09 17:24:00zyasoftcreate