atomic section in code

Tim Roberts timr at probo.com
Sun Sep 7 03:55:43 CEST 2008


"Hendrik van Rooyen" <mail at microcorp.co.za> wrote:
>
>Fredrik Lundh <fredr...ware.com> wrote:
>
>>sounds like he wants/needs non-cooperative, mandatory locking.

More accurately, he THINKS he wants/needs mandatory locking.  We need to
find out what he's really trying to accomplish before we can suggest
something that is actually achievable.

>Could one get there using ctypes to disable interrupts?

No.  That can't be done in user mode in any operating system where Python
runs.  Even in kernel mode, it's not reliable, because disabling interrupts
only affects one core.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list