SIGSTOP和SIGTSTP有什么区别? [英] What is the difference between SIGSTOP and SIGTSTP?

查看:190
本文介绍了SIGSTOP和SIGTSTP有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只想知道SIGSTOP和SIGTSTP信号之间的区别.

Just wondering about the difference between SIGSTOP and SIGTSTP signals.

推荐答案

两个信号都被设计为挂起一个进程,该进程最终将通过SIGCONT恢复.它们之间的主要区别是:

Both signals are designed to suspend a process which will be eventually resumed with SIGCONT. The main differences between them are:

  • SIGSTOP是通过编程方式发送的信号(例如:kill -STOP pid),而SIGTSTP(对于 sig nal- t erminal <用户也可以通过tty驱动程序(通常是 Control - Z )通过键盘输入 stop ).

  • SIGSTOP is a signal sent programmatically (eg: kill -STOP pid ) while SIGTSTP (for signal - terminal stop) may also be sent through the tty driver by a user typing on a keyboard, usually Control-Z.

SIGSTOP不能忽略. SIGTSTP可能是.

SIGSTOP cannot be ignored. SIGTSTP might be.

这篇关于SIGSTOP和SIGTSTP有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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