[Python-ideas] Optimistic Concurrency

Leonardo Santagada santagada at gmail.com
Mon Oct 20 22:33:11 CEST 2008


On Oct 20, 2008, at 6:12 PM, Adam Olsen wrote:

> Stepping back a bit, there's two distinct problems to solve:
> 1) Making threading easier
> 2) Removing the GIL
>
> #1 can be done by things like monitors and transactions (the two are
> complementary).  #2 at its core is about refcounting, and transactions
> are irrelevant there — you need to switch to a tracing-based GC
> implementation


PyPy has a real GC and doesn't depend on refcount already. So that is  
not the only thing needed to accomplish #2, you need to lock mutable  
data containers so concurrent threads don't leave them in a broken  
state. This is the part not ready on PyPy yet.

But it is probably easier to fix on PyPy than on CPython.

[]'s
--
Leonardo Santagada
santagada at gmail.com






More information about the Python-ideas mailing list