Notice
Recent Posts
Recent Comments
목록synchronized (1)
Gentle Breeze
[Servlet] 인스턴스 변수
public void init() throws ServletException { accessCount = 0; //인스턴스 변수 초기화 super.init(); } ... ... protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html; charset=euc-kr"); PrintWriter out = response.getWriter(); int localCount = 0; //인스턴스 변수 동기화 synchronized(this){ accessCount ++; localCount = acc..
⑥ PreSTC/jsp / Servlet
2008. 7. 22. 16:46