gpt4 book ai didi

linux - sighandler 和其他线程

转载 作者:太空宇宙 更新时间:2023-11-04 11:29:00 25 4
gpt4 key购买 nike

  1. 是否可以在当前处理另一个信号时处理一个 sighandler?
  2. 是否可以在当前处理另一个线程执行时处理一个 sighandler?

谢谢,埃亚尔

最佳答案

一些答案​​在文档中是正确的here

A process-directed signal may be delivered to any one of the threads that does not currently have the signal blocked. If more than one of the threads has the signal unblocked, then the kernel chooses an arbitrary thread to which to deliver the signal.

关于linux - sighandler 和其他线程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12518064/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com