go4it

just do it

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页

2009年5月7日

Thread-Specific Storage Pattern

摘要: 手工关闭logpublic class ClientThread extends Thread { public ClientThread(String name) { super(name); } public void run() { System.out.println(getName() + " BEGIN"); for (int i = 0; i < 10; i++) { Log.... 阅读全文

posted @ 2009-05-07 09:08 cxccbv 阅读(266) 评论(0) 推荐(0)

java多线程中断学习

摘要: 来至《java多线程设计模式》 1.wait    (1)调用wait方法必须先获得对象实例的锁;    (2)可以再synchronized方法中,或synchronized块中或两者调用的别的方法中;    (3)执行wait方法的线程会进入obj的wait set里面,进入之后就已经释放obj的锁;   ... 阅读全文

posted @ 2009-05-07 09:07 cxccbv 阅读(354) 评论(0) 推荐(0)

2009年4月20日

java线程入门

摘要: 书籍推荐:《Java多线程设计模式》http://www.china-pub.com/24630&ref=xiangguan 感性认识: package persia; public class MyThread extends Thread { public void run(){ for(int i=0;i<10000;i++){ System.out.print("Ni... 阅读全文

posted @ 2009-04-20 22:50 cxccbv 阅读(304) 评论(0) 推荐(0)

2009年4月12日

tomcat的PoolTcpEndpoint和LeaderFollowerWorkerThread

摘要: 在apache-tomcat-6.0.18-src\java\org\apache\tomcat\util\net里面 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distribu... 阅读全文

posted @ 2009-04-12 15:47 cxccbv 阅读(651) 评论(0) 推荐(0)

tomcat的ThreaadPool

摘要: 在apache-tomcat-6.0.18-src\java\org\apache\tomcat\util\threads\里面 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file dis... 阅读全文

posted @ 2009-04-12 15:34 cxccbv 阅读(637) 评论(0) 推荐(0)

tomcat线程池研究

摘要: 转至http://blog.csdn.net/hulefei29/archive/2009/01/21/3849150.aspx (一) 目前市场上常用的开源Java Web容器有Tomcat、Resin和Jetty。其中Resin从V3.0后需要购买才能用于商业目的,而其他两种则是纯开源的。可以分别从他们的网站上下载最新的二进制包和源代码。 作为Web容器,需要承受较高的访... 阅读全文

posted @ 2009-04-12 13:18 cxccbv 阅读(4634) 评论(0) 推荐(0)

Servlet 线程池 和 EJB 对象池

摘要: Servlet 线程池 和 EJB 对象池 2008/11/13 07:26 P.M. 转至http://hi.baidu.com/%D3%C0%CA%C0%CF%E9%BA%CD/blog/item/ca83e8876c55142dc65cc31a.html 目前所有的B/S系统应用可以分为:有状态(statefull)和无状态(stateless)两大类别。有状态是指在整个系统的处理过程中... 阅读全文

posted @ 2009-04-12 12:56 cxccbv 阅读(881) 评论(0) 推荐(0)

提高系统性能

摘要: 1.Cache缓存 对象有生命周期,有容量限制,适合保存有状态属性的对象。 有状态的session bean运行在EJB容器的Cache中 2.Pool池 对象池,实现对象的大量并行访问 无状态的session bean运行在EJB容器的Pool中。 阅读全文

posted @ 2009-04-12 12:48 cxccbv 阅读(224) 评论(0) 推荐(0)

Jive学习(四)--Jive缓存

摘要: 表现层的cache 1.Cache类/** * $RCSfile: Cache.java,v $ * $Revision: 1.3 $ * $Date: 2001/10/03 21:55:12 $ * * Copyright (C) 1999-2001 CoolServlets, Inc. All rights reserved. * * This software is the p... 阅读全文

posted @ 2009-04-12 10:59 cxccbv 阅读(433) 评论(0) 推荐(0)

2009年4月11日

Jive学习(三)ForumFactory的工厂、代理模式和单态模式

摘要: 1.ForumFactory工厂/** * $RCSfile: ForumFactory.java,v $ * $Revision: 1.9 $ * $Date: 2001/09/30 20:17:06 $ * * Copyright (C) 1999-2001 CoolServlets, Inc. All rights reserved. * * This software is ... 阅读全文

posted @ 2009-04-11 23:42 cxccbv 阅读(495) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页

导航