[Python-ideas] An error in multiprocessing on MacOSX?
mwm at mired.org
Wed Nov 28 00:35:20 CET 2012
On Tue, Nov 27, 2012 at 4:53 PM, Richard Oudkerk <shibturn at gmail.com> wrote:
> On 27/11/2012 9:37pm, Sturla Molden wrote:
>> I would suggest to use a piece of shared memory and atomic
>> Shared memory can be pickled (e.g. take a look at what I have on github).
> On unix (without assuming a recent gcc) there isn't any cross platform way
> of doing compare-and-swap or other atomic operations. And even if there
> were, you need to worry about busy-waiting.
> One could also consider using a process-shared semaphore or mutex allocated
> from shared memory, but that does not seem to be available on many
Do we need a cross-platform solution for all posix systems, or just a
wrapper that provides that functionality that can be implemented on
many of them? Something akin to the apr global mutex routines?
More information about the Python-ideas