title: Thread is alive even after Committing response
body: <p>I Have a Servlet to Show up a Login Page and when i Enter the URL the Servlet has been specified by a separate Thread and do the work.But Even After Committing the Response (i.e) After Finishing the Job the Thread is still Alive why does it does so? The Alive Status Shows True after im getting the Response in the Page.</p>
  
  <p>Code:</p>
  
  <pre class="lang-java prettyprint-override"><code>public class LoginNew extends HttpServlet implements Runnable {
      protected void service(HttpServletRequest request, HttpServletResponse response)  throws ServletException, IOException {
          PrintWriter writter = response.getWriter();
          writter.println(
                  "&lt;!DOCTYPE html&gt;" + 
                  "&lt;html&gt;" + 
                  "&lt;form&gt;" + 
                  "&lt;div style=\"text-align:center\"&gt;UserName   :&lt;input type=\"text\" name=\"UserName\"&gt;&lt;br&gt;" +
                  "&lt;div style=\"text-align:center\"&gt;Password   :&lt;input type=\"password\" name=\"Password\"&gt;&lt;br&gt;" +
                  "&lt;div style=\"text-align:center\"&gt;TimeOut Interval   :&lt;input type=\"text\" name=\"TimeOut\"&gt;&lt;br&gt;" +
                  "&lt;div style=\"text-align:center\"&gt;No TimeOut :&lt;input type=\"checkbox\" name=\"NoTimeout\" value=\"1\"&gt; NoTimeout &lt;br&gt;&lt;br&gt;" +
                  "&lt;input type=\"submit\" formaction=\"Home\" formmethod=\"post\" value=\"Login\" /&gt;" + 
                  " "+
                  "&lt;input type=\"submit\" formaction=\"SignUp\" formmethod=\"post\" value=\"SignUp\" /&gt;" + 
                  "&lt;/form&gt;" + 
                  "&lt;/body&gt;" + 
                  "&lt;/html&gt;"
          );
          Thread.currentThread().sleep(60000);
          System.out.println("After Commitment Thread -&gt; "+Thread.currentThread().getName()+" Alive Status--&gt; "+Thread.currentThread().isAlive());
      }
  }
  </code></pre>