sturlamolden wrote:
On Jun 5, 11:02 am, pataphor <[EMAIL PROTECTED]> wrote:

This is probably not very central to the main intention of your post,
but I see a terminology problem coming up here. It is possible for
python objects to share a reference to some other object. This has
nothing to do with threads or processes, although it can be used as a
*mechanism* for threads and processes to share data.

It is complicated in the case of processes, because the object must be
kept in shared memory. The complicating factor is that the base
address of the memory mapping, which is not guaranteed to be the same
in the virtual address space of different processes.

   Introducing shared memory in Python would be a terrible idea,
for many reasons, including the need for interprocess garbage
collection and locking.  Don't go there. Use message passing instead.

                                        John Nagle
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to