Re: Regarding Signals in Kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sri,

On Sun, Sep 12, 2010 at 10:02 AM, Sri Ram Vemulpali
<sri.ram.gmu06@xxxxxxxxx> wrote:
> Hi Guys,
>    This is the question asked by WindRiver.com in interview.
>    Question: A process has 5 children. Process child 5 is trying to send
> signal (some signal) to Child 2 and Child 3. Calls signal(2,SIG),
> signal(3,SIG). Now the question is, How are the signals delivered, I mean
> their order and which child process gets the signal first.

It is my understanding that signals are delivered when a process makes
the kernel-space to user-space transition (say on a system call). So
which one will be called first depends on which child makes the next
system call.

> I know that if you use real time signals they are delivered in order and
> accounts for number of times signals are delivered, this is in threads. But
> when it comes process, a process can not send signals to its own group in
> linux kernel.
> So can anyone please clarify this, what is the right scenario.

I'm not familiar enough with the distinctions to provide any more detail here.

I don't see any reason why a process can't signal itself, but this is
just an opinion, not backed up by any fact or experiment.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux