[Python-ideas] Thread IPC idea: Quipe? Sockqueue? (Re: Python and Concurrency)
jimjjewett at gmail.com
Thu Mar 29 15:29:16 CEST 2007
On 3/28/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> I was thinking about thread killing, and why we
> think it's okay to kill OS processes but not
[Suggestion for a Queue variant that knows when one end is dead]
I think the bigger problem is when threads don't restrict themselves
to queues, but just use the same memory directly. If a thread dies in
the middle of an "atomic" action, other threads will see corrupted
memory. If a process dies then, nobody else would be able to see the
What we really need is a Task object that treats shared memory
(perhaps with a small list of specified exceptions) as immutable.
If you're willing to rely on style guidelines, then you can already
get this today.
If you want safety, and efficiency ... that may be harder to do as an addon.
More information about the Python-ideas