For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > October 2007 > Re: Any command to kill thread. ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Any command to kill thread. ?
David Schwartz

2007-10-24, 7:18 pm

On Oct 24, 5:26 am, Sheth Raxit <raxitsheth2...@gmail.com> wrote:
> provided i am owner of process <or root>, say for Ex. Process having
> 10 thread. Is there any command by which one can kill particular
> thread of th process ?
>
> currently i am doing some programming/debugging, some threads goes to
> infinte loop, i want to kill those threads without affecting other
> threads and the process. <logically each thread is doing individual
> work, and they are at such a stage, if killed, not harming to other
> threads.>
>
> i know, i shoul correct the programming so it would not go to infinite
> loop...But just curious to know of any such command. ?


This is a FAQ. With the cooperation of the thread, you can do this any
way you would like. Without the cooperation of the thread, you cannot
do this.

DS

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com