Hacker News new | past | comments | ask | show | jobs | submit login

> They can come at any time but they are only delivered to your process by the kernel during a context switch.

This is backwards and extremely misleading; a signal being queued can trigger an immediate context switch (effected via an inter-processor interrupt). See `kick_process()` in the Linux kernel [1].

> What you've done is turned signals into interrupts, which is .. hokey. And not how signals are intended to be used.

Signals are userspace interrupts. That's exactly what they are, and they're no more hokey than hardware interrupts (so, pretty hokey).

[1]: https://elixir.bootlin.com/linux/latest/source/kernel/sched/...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: