Ivan Boldyrev wrote:
On 9236 day of my life fahree@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'.