[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: signal
signal in the term of UNIX signals is as explained but if there is a
high priority process like a NMI then syscall execution yields
control to processing the interrupt
-Abhishek
On 7/7/05, Gaurav Dhiman <gaurav4lkg@xxxxxxxxx> wrote:
> On 07 Jul 2005 12:34:15 +0530, Anurag Verma <averma@xxxxxxxxxxxxxxxxxxx> wrote:
> > Hi All
> > Can u please tell me when a process is busy in executing a system call,
> > and then another process sends a signal then what will happen to the
> > exectution of system call. Will it be interrupted ?
>
> No, Signals are handled while returning from system calls or
> interrupts handlers. When process P1 is executing the system call code
> in kernel, and another process sends the signal to it, it kernel will
> give the controol to signal handler while returning from that system
> call or the interrupt handler (whatever the next interrupt occurs),
> whichever occurs first.
>
> > If not then once the system call execution is finished then the signal
> > handler will be invoked?
>
> Well it will be invoked before that only, because timer interrupts
> occur too freq and while returing from its handler, kernel will check
> the pending signals for currenly running process and invoke the
> registered signal handlers.
>
> -Gaurav
>
> > Please clarify me.
> > Thanks in advance.
> > bye
> > Anu
> >
> >
> >
> >
> > ********************************************************************************
> > Network Programs is a SEI-CMM Level 5 & ISO 9001: 2000 Certified Company
> > ********************************************************************************
> > The information contained in this communication (including any attachments) is
> > intended solely for the use of the individual or entity to whom it is addressed
> > and others authorized to receive it. It may contain confidential or legally
> > privileged information. If you are not the intended recipient you are hereby
> > notified that any disclosure, copying, distribution or taking any action in
> > reliance on the contents of this information is strictly prohibited and may be
> > unlawful. If you have received this communication in error, please notify us
> > immediately by responding to this email and delete it from your system.
> > Network Programs (India) Limited is neither liable for the proper and complete
> > transmission of the information contained in this communication nor for any
> > delay in its receipt.
> > ********************************************************************************
> >
> >
> >
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/