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

标签 c linux multithreading signals

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

这是在 Linux/C 上下文中。

最佳答案

来自 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.

关于c - 信号处理程序是否有单独的堆栈?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8179993/

相关文章:

c - 带开关的字符串指针?

c - 与弦作斗争。我的功能出了什么问题?

你能把 ASCII 码转换成 C 中的字符吗?

linux - 从 bash 脚本中的数字显示月份

用于带代理支持的多线程蜘蛛的 Python 包?

python - 加速 Pandas 通过请求申请 API 调用

c - 尝试释放以前的 malloc 时出错

c++ - 如何多次更改核心文件大小限制?

php - 如何确定文件路径是否是绝对路径?

C++ - 在线程之间传递信号到不同类的函数?