gpt4 book ai didi

c - Pthread 中的信号处理

转载 作者:行者123 更新时间:2023-12-02 06:24:01 25 4
gpt4 key购买 nike

pthreadsman 页面提到:

 POSIX.1 also requires that threads share a range  of  other  attributes
(i.e., these attributes are process-wide rather than per-thread):

...

- signal dispositions

...

“信号配置”是什么意思?

最佳答案

I signal disposition 是进程在传递信号时采取的操作。每个信号都有一个配置。有默认值。

来自 signal(7) :

Signal Dispositions    Each signal has a current disposition, which determines how the process    behaves when it is delivered the signal.[Dispositions are:]    Term   Default action is to terminate the process.    Ign    Default action is to ignore the signal.    Core   Default action is to terminate the process and dump core (see core(5)).    Stop   Default action is to stop the process.    Cont   Default action is to continue the process if it is currently stopped.[...]    The signal disposition is a per-process attribute: in a multithreaded    application, the disposition of a particular signal is the same for all    threads.

关于c - Pthread 中的信号处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3990392/

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