Are signals in unix queued. I had the idea that if a process receives more than two signals simultaneously then these will not be handled. Am I right?
Unix signals queueing?
This is not an easy question to answer in this space.
In general a particular signal (say Ctrl-Z) will not be queued. However different signal types may not mask each other.
However in some instances a signal will be queued.
It is safest to assume that that a signal will mask other similar signals and test for all of them in each signal handler. If a signal is queued and serviced in the first time the handler runs then it will simply ne skipped the second time.
The handling can vary from processor to processor also. This is not much of an answer but the best I can do in this space.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment