G
Guest
Hi..
Am trying to kill a thread that is performing a method using abort call. But
the thread until reaches a "safe point" doesnt get killed. Is there any
method of killing a thread instantaneously.
here's what the method on which the thread is working on trying to do.
public static void ThreadMethod()
{
Socket mysocket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.IP);
mysocket.Connect(remoteEndPoint);
}
I want to kill the thread in 20ms.
Am trying to kill a thread that is performing a method using abort call. But
the thread until reaches a "safe point" doesnt get killed. Is there any
method of killing a thread instantaneously.
here's what the method on which the thread is working on trying to do.
public static void ThreadMethod()
{
Socket mysocket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.IP);
mysocket.Connect(remoteEndPoint);
}
I want to kill the thread in 20ms.