Manual Pages for Linux CentOS command on man pthread_kill_other_threads_np
MyWebUniversity

Manual Pages for Linux CentOS command on man pthread_kill_other_threads_np

PTHREADKILLOTHERTHREADSLinux Programmer's PTHREADKILLOTHERTHREADSNP(3)

NAME

pthreadkillotherthreadsnp - terminate all other threads in process SYNOPSIS

#include void pthreadkillotherthreadsnp(void); DESCRIPTION pthreadkillotherthreadsnp() has an effect only in the LinuxThreads threading implementation. On that implementation, calling this func‐ tion causes the immediate termination of all threads in the applica‐ tion, except the calling thread. The cancellation state and cancella‐

tion type of the to-be-terminated threads are ignored, and the cleanup handlers are not called in those threads. ATTRIBUTES For an explanation of the terms used in this section, see attributes(7). ┌────────────────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├────────────────────────────────┼───────────────┼─────────┤

│pthreadkillotherthreadsnp() │ Thread safety │ MT-Safe │ └────────────────────────────────┴───────────────┴─────────┘ CONFORMING TO This function is a nonstandard GNU extension; hence the suffix "np" (nonportable) in the name. NOTES pthreadkillotherthreadsnp() is intended to be called just before a thread calls execve(2) or a similar function. This function is designed to address a limitation in the obsolete LinuxThreads implemen‐ tation whereby the other threads of an application are not automati‐

cally terminated (as POSIX.1-2001 requires) during execve(2). In the NPTL threading implementation, pthreadkillotherthreadsnp() exists, but does nothing. (Nothing needs to be done, because the implementation does the right thing during an execve(2).) SEE ALSO execve(2), pthreadcancel(3), pthreadsetcancelstate(3), pthreadset‐ canceltype(3), pthreads(7) COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can

be found at http://www.kernel.org/doc/man-pages/.

Linux 2010-09-09 PTHREADKILLOTHERTHREADSNP(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™