[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Terminering af tråde



> pthread under linux er 100% POSIX compliant. Libpthread er mig bekendt
> reference implementationen af POSIX tråde:-)

Nej, her er et udsnit fra man phtread_kill

BUGS
       Signal  handling  in  LinuxThreads  departs  significantly from the POSIX standard. According to the
       standard, ??asynchronous?? (external) signals are addressed to the whole process (the collection  of
       all  threads),  which then delivers them to one particular thread. The thread that actually receives
       the signal is any thread that does not currently block the signal.

       In LinuxThreads, each thread is actually a kernel process with its own PID, so external signals  are
       always directed to one particular thread.  If, for instance, another thread is blocked in sigwait on
       that signal, it will not be restarted.

       The LinuxThreads implementation of sigwait installs dummy signal handlers for the signals in set for
       the  duration  of the wait. Since signal handlers are shared between all threads, other threads must
       not attach their own signal handlers to these signals, or alternatively they should all block  these
       signals (which is recommended anyway -- see the Notes section).



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-05-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *