title: how to kill a thread which is waiting for blocking function call in Java?
body: <p>I have a thread:</p>
  
  <pre><code>Thread t = new Thread(){
      public void run(){
          ServerSocketConnection scn = (ServerSocketConnection)
                  Connector.open("socket://:1234");
          // Wait for a connection.
          SocketConnection sc = (SocketConnection) scn.acceptAndOpen();
         //do other operation
      }
  };
  t.start();
  </code></pre>
  
  <p>Lets say no client is connecting to the Server, so this thread will be blocked.Now I want to kill the above thread t? How can I kill it?</p>