1: public class U383 extends HttpServlet { 2: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 3: // Thread를 만들고 background에서 작업을 수행한다. 4: Runnable r = new Runnable() { 5: public void run() { 6: System.err.println("do something"); 7: } 8: }; 9: new Thread(r).start(); 10: } 11: }