2 ms·
You may also interrupt most operations using pthread_cancel and a few other pthread functions.
by AstralStorm 10y ago
You may also interrupt most operations using pthread_cancel and a few other pthread functions.
- geofft 10y agopthread_cancel to abort a syscall is usually internally implemented by sending the thread a signal (on glibc, it's one of the real-time signals below SIGRTMIN), causing the syscall to return EINTR. So it's the same logic as SIGALRM, essentially. (And for some system calls, like certain NFS operations, they aren't interruptible by a signal of any sort other than perhaps SIGKILL.)