[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nptl] Re: nptl
On Sat, 2005-07-23 at 15:07 +0530, divij bhatt wrote:
> Hi,
> I am reading one article regarding nptl and find some interesting
> things so these are some points:->
>
> 1. With the NPTL, signals can now be sent from one thread to another,
> rather than simply on a per-process basis. How?
see pthread_kill()
>
> 2. Signals can also use arguments to transfer information from one
> thread to another.How?
Hmmm yes, I also saw this is possible, but never played with it. See
sigqueue() function manual.
> 3. Some of the more complex changes that you may have to make in your
> application logic when moving to NPTL are changes related to NPTL's
> improved support for POSIX signals and signal handling. What are they?
I assume this is when moving from LinuxThreads to NPTL. In LinuxThreads,
the signal handling was not POSIX conformant, this is related to the
fact that threads were mostly independent processes. For example you
could send a signal to any thread using kill() -- as each thread had a
different PID. This is no more the case with NPTL, where you have to use
pthread_kill() and a thread ID.
PS: Sorry for the late answers, I was away from office lately.
Seb.
Liste de diffusion nptl
Pour se désinscrire : mailto:nptl_request@bullopensource.org?subject=unsubscribe