atomic section in code

Tim Roberts timr at probo.com
Sat Sep 6 21:55:43 EDT 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