信号处理程序是否有单独的堆栈?

Lun*_*oms 4 c linux multithreading signals

信号处理程序是否有单独的堆栈(每个线程都有单独的堆栈)?

这是在Linux/C上下文中.

Som*_*ude 8

从Linux手册页signal(7):

By default, the signal handler is invoked on the normal process stack.
It is possible to arrange that the signal handler uses an alternate stack;
see sigaltstack(2) for a discussion of how to do this and when it might
be useful.
Run Code Online (Sandbox Code Playgroud)