In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
What is the signaling mechanism in linux? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Signal Mechanism of linux
Signal mechanism is a method of using signals to transmit messages between processes. the full name of the signal is soft interrupt signal, which is referred to as soft interrupt. The essence of signal is a kind of simulation of interrupt (soft interrupt) at the software level. It is a processing mechanism for asynchronous communication. In fact, the process does not know when the signal will arrive.
64 signals are defined in the header file. The names of these signals all begin with SIG and are defined as positive integers, called signal numbers. You can use the "kill-l" command to see the specific name of the signal.
As shown in the figure:
The signal numbered 1-31 in the figure above is supported by the early Linux and is unreliable (non-real-time). The signal numbered 34-63 is later expanded to be called reliable signal (real-time signal).
The difference between an unreliable signal and a reliable signal is that the former does not support queuing (which means that if the kernel has already registered this signal, it will not register again, and for the process, it will not know about the occurrence of this signal). It may cause signal loss, while the registration mechanism of the latter is to register the signal every time a reliable signal is received and will not be lost.
This is the answer to the question about what is the signal mechanism in linux. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.