Subj : Re: pthreads - cancellation To : comp.programming.threads From : David Schwartz Date : Sat Aug 20 2005 11:07 pm wrote in message news:1124588034.657514.267800@o13g2000cwo.googlegroups.com... > Is it possible to stop a thread from another one? Just code that other thread to stop. Threads are not at war with each other, they're all running code that you write. So just code each thread to do what you want. > Suppose I have the following case: A,B,C are blocked by a recv. > The communicator of B changes. D wants to kill and restart thread B so > that it's healthy again. > > How should I do that? Call 'shutdown' on the socket it's blocked on. DS .