难道左撇子的信号有一个独立的堆栈? [英] Do signal handers have a separate stack?

查看:94
本文介绍了难道左撇子的信号有一个独立的堆栈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

做信号处理程序有一个单独的协议栈,(如每个线程有独立的堆栈)?

Do signal handlers have a separate stack, (like each thread have separate stacks)?

这是在Linux中/ C上下文。

This is in Linux/C context.

推荐答案

在Linux手册页<一个href=\"http://kernel.org/doc/man-pages/online/pages/man7/signal.7.html\"><$c$c>signal(7):

From the Linux manual page 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.

这篇关于难道左撇子的信号有一个独立的堆栈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆