[erlisp-devel] Re: async signals

David Hopwood david.nospam.hopwood at blueyonder.co.uk
Mon Sep 19 15:28:42 UTC 2005


Ivan Boldyrev wrote:
> On 9236 day of my life fahree at gmail.com wrote:
> 
>>or they can be lower-level (talking directly to the kernel, to avoid
>>the limitations of the C library).
> 
> It's not limitation of C library, it is limitation of architecture.
> Layer of C library over signal API is too thin to limit something.

It isn't particularly thin, and it certainly can be limiting.

> No matter if you write you program in C, asm or Lisp, if processor can't
> write something atomically, you can't use it in async. interrupts.
> 
> For example, no matter which language you use, you can't atomically
> write or read 64-bit integer (aka long long) with x86 platform.

Bad example: 'lock cmpxchg8b'.

-- 
David Hopwood <david.nospam.hopwood at blueyonder.co.uk>




More information about the Erlisp-devel mailing list