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/

相关文章:

linux - 如何打印开头以制表符分隔的 find 命令的输出

linux - $(()) 和 expr 有什么区别?

c - setitimer()调用是否被 child 继承

mp4转mpeg ts,视频和音频播放速度过快

c - 根据条件从字符串中提取子字符串

c++ - Qt中用于线程间通信的类设计

java - 在java中处理套接字

c - 如何以编程方式从 VxWorks 获取 CPU 负载?

linux - zsh和普通shell如何共享环境变量和别名而不互相复制

c++ - 无需等待的并发代码