multithreading - How to kill all thread are running in c language? -


i had thread running in program. want kill them. can do? in addition, want thread current running in program.

you have find out created thread somewhere pthread_create(&pid....) pid thread handle. in order kill them need pthread_kill

to check thread running can use pthread_self


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -