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
Post a Comment