pthreadkill
pthreadkill is not a standard POSIX API. In common usage, the term may refer informally to sending a signal to a specific thread using the POSIX function pthread_kill, or to a project-specific wrapper named pthreadkill. There is no official function named pthreadkill in the POSIX threads (libpthread) specification.
Standard background and behavior
pthread_kill exists to deliver a signal to a single thread within a process. The typical usage
Delivering signals to individual threads is asynchronous and can interrupt critical sections. Signals should be used
For cooperative thread termination, pthread_cancel or a controlled shutdown flag is often preferable. In some designs,
POSIX threads, pthread_kill, pthread_cancel, signal handling.