|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Unix signal handling mechanism Look at the "high-level programming environment for Unix," Chapter 10 of this book, "Signal", preaching and signal processing procedures can be complicated to implement, in a signal that the non-implementation of the entire process, another signal handling procedures are being implemented. Citing an example in section 10.15, in a signal processing procedures Another trigger a signal, the former appears to be waiting for the return of the latter procedure, as described is not correct.
Which Supreme Unix signal processor can be produced distinct description? |
Unix signal handling mechanism 10.15 waiting for the signal processing procedures may not be caused by the enforcement mechanism, in this case the alarm after a wait cycle, which is why we wait for a second signal processing is returned to the scene of this case unique.
Want to know is how to achieve signal processing with the process? Multithreading is a similar mechanism?
A signal processing of signals another longjmp could affect the implementation process? (Procedure 10-6) |
Unix signal handling mechanism Personal recommendations, in order to enhance the stability of procedures to consider in due course other signal Handle signals interrupted by the arrival of the operation, the first signal shielding may be interrupted. Signal Processing book that the return of some function is not reentry, the procedures that will lead to unpredictability. |
Unix signal handling mechanism Thank you upstairs to answer!
Which can be briefly describe Unix signal handling mechanism |
Unix signal handling mechanism The role of the software may not be immediately suspended. If the operation is affected by the current process, then by the short delay,
The possible role of software failure. If the process has been touched or affected their approach has been to replace the disk,
Mody software interruption may spend a very long time before it can play a role.
For software affected by the interruption of the process always moves and exert themselves to their own, and only when they
The process is an active process, the role of software failure that might arise.
If the disruption of the corresponding software is the implementation of a user-defined course of action, in order to achieve this, into the core of state
Stack attitude adjustment range of users with the following conditions : it has just entered the corresponding interruption of the software user-defined process, the ruling
Before his trip was interrupted Directive No. 1 (hardware types). So when returning from the kernel to user mode in the normal way,
As users stack adjusted to the role of the user mode implementation of a directive under the designation process is one of the first instructions.
...
Details can refer to the "Leon's UNIX source code analysis," Chapter 13 |
Unix signal handling mechanism A signal processing of signals another longjmp could affect the implementation process? (Procedure 10-6)
I think longjmp is designed so that some compulsory means that it is forced to return to setjmp, regardless of what they are doing. |
| |