Signal processing is an event that UNIX and Linux systems generate in response to certain conditions, usually the kernel generates a signal, and the process receives a signal and takes action accordingly.
For example, when we want to force the end of a program, we usually send it a signal, then the process will catch the signal, and then the process after the execution of a certain operation is eventually terminated. Not only that, usually the following situations
① keyboard Events (Ctrl + C, ctrl+\)
② access to illegal memory
③ hardware failure ( e.g. arithmetic operation divided by 0 )
④ Environment Switch
Signals are generated, and the signals that are generated are required to be processed by the process, and the signal is also used as a way of communicating or modifying the behavior between processes, which can be explicitly sent to another process by one process. Usually when a signal is generated, we call it a signal to generate, to a signal received called signal capture . About the signal capture example is more, here are listed in the usual may often encounter several, other can self-query (~v~ although more)
Signal processing is an event that UNIX and Linux systems generate in response to certain conditions