Signal processing is an event that UNIX and Linux systems generate in response to certain conditions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.