pthread_kill_other_threads_np(3) - wariua/manpages-ko GitHub Wiki
pthread_kill_other_threads_np - νλ‘μΈμ€ λ΄μ λ€λ₯Έ λͺ¨λ μ€λ λλ€ μ’ λ£μν€κΈ°
#include <pthread.h>
void pthread_kill_other_threads_np(void);
pthread_kill_other_threads_np()
λ LinuxThreads μ€λ λ© κ΅¬νμμλ§ ν¨λ ₯μ΄ μλ€. κ·Έ ꡬνμμ μ΄ ν¨μλ₯Ό νΈμΆνλ©΄ νΈμΆ μ€λ λλ₯Ό μ μΈν μμ© λ΄ λͺ¨λ μ€λ λλ€μ΄ μ¦μ μ’
λ£λλ€. μ’
λ£λλ μ€λ λλ€μ μ·¨μ μνμ μ·¨μ μ νμ΄ λ¬΄μλλ©° κ·Έ μ€λ λμμ μ 리 νΈλ€λ¬λ€μ΄ νΈμΆλμ§ μλλ€.
μ΄ μ μμ μ¬μ©νλ μ©μ΄λ€μ λν μ€λͺ μ attributes(7)λ₯Ό 보λΌ.
μΈν°νμ΄μ€ | μμ± | κ° |
---|---|---|
pthread_kill_other_threads_np() |
μ€λ λ μμ μ± | MT-Safe |
μ΄ ν¨μλ€μ λΉνμ€ GNU νμ₯μ΄λ€. κ·Έλμ μ΄λ¦ λ€μ "_np"(nonportable: μ΄μμ± μμ)κ° λΆμ΄ μλ€.
pthread_kill_other_threads_np()
λ μ€λ λκ° execve(2)λ μ μ¬ ν¨μλ₯Ό νΈμΆνκΈ° λ°λ‘ μ μ νΈμΆνκΈ° μν κ²μ΄λ€. μ΄ ν¨μλ (POSIX.1-2001μ μꡬνλ λλ‘) execve(2) κ³Όμ μμ μμ©μ λ€λ₯Έ μ€λ λλ€μ΄ μλμΌλ‘ μ’
λ£λμ§ μλ ꡬμ LinuxThreads ꡬνμ νκ³μ λμ²νκΈ° μν΄ μ€κ³λ κ²μ΄λ€.
NPTL μ€λ λ© κ΅¬νμλ pthread_kill_other_threads_np()
κ° μ‘΄μ¬νκΈ°λ νμ§λ§ μ무κ²λ νμ§ μλλ€. (ꡬνμ΄ execve(2) κ³Όμ μμ μ λλ‘ λμνλ―λ‘ μ무κ²λ ν νμκ° μλ€.)
execve(2), pthread_cancel(3), pthread_setcancelstate(3), pthread_etcanceltype(3), pthreads(7)
2017-09-15