【问题标题】:Do signal handers have a separate stack?信号处理程序有单独的堆栈吗?
【发布时间】:2011-11-18 09:03:46
【问题描述】:

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

这是在 Linux/C 上下文中。

【问题讨论】:

标签: c linux multithreading signals


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-03-31
    • 2013-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多