If we want to kill process, we use kill <process num>, but how can I kill the thread by system kill command?
for example, I create 10 threads by pthread_create, every thread runtime has an infinite loop, then I use the FreeBSD system command to kill the threads one by one, How can I do?
thank you.
for example, I create 10 threads by pthread_create, every thread runtime has an infinite loop, then I use the FreeBSD system command to kill the threads one by one, How can I do?
thank you.