线程-信号
时间:2009-04-17 来源:zhengwenwei_123
Each thread has its own signal mask, but the signal disposition is shared by all threads in the process. This means that individual threads can block signals, but when a thread modifies the action associated with a given signal, all threads share the action. Thus, if one thread chooses to ignore a given signal, another thread can undo that choice by restoring the default disposition or installing a signal handler for the signal.
你可以为每个线程设置它的掩码,但是由于signal disposition是共享的,也就是说你无法为一个线程安装自己的信号处理函数。
A thread can wait for one or more signals to occur by calling sigwait.
你可以为每个线程设置它的掩码,但是由于signal disposition是共享的,也就是说你无法为一个线程安装自己的信号处理函数。
#include <signal.h> |
A thread can wait for one or more signals to occur by calling sigwait.
|
相关阅读 更多 +
排行榜 更多 +
|