上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 55 下一页
一。server.xml在每个容器对象里面都有一个pipeline,Pipeline就像是每个容器的逻辑总线。 --> --> 二。源码追踪1.Engine /** * Cre... Read More
posted @ 2014-09-21 13:52 等风来。。 Views(886) Comments(0) Diggs(0) Edit
一、设计线程安全的类 步骤: 找出构成对象状态的所有变量 找出约束状态变量的不变性条件 建立对象状态的并发访问策略 1.在现有的线程安全类中添加功能 (1)重用能减低工作量和提高正确性 (2)如果底层的类改变了同步策略,使用不同的锁来保护它的状态,则子类会被破坏 2.客户端加锁机制 (1)对于使用对 Read More
posted @ 2014-09-20 18:20 等风来。。 Views(293) Comments(0) Diggs(0) Edit
一、ThreadLocal 在父子线程传递的问题 二、InheritableThreadLocal 和 ThreadLocal 的区别 1. InheritableThreadLocal 实现 2. ThreadLocal 的getMap、createMap实现 通过上面的代码我们可以看到Inher Read More
posted @ 2014-09-20 17:42 等风来。。 Views(359) Comments(0) Diggs(0) Edit
一、示例 线程池内的线程并没有父子关系,所以不适合InheritableThreadLocal的使用场景 二、TransmittableThreadLocal实现分析 读取线程间传递的ThreadLocal 值比较麻烦,ThreadLocal 和 InheritableThreadLocal 都没有 Read More
posted @ 2014-09-20 17:14 等风来。。 Views(1989) Comments(0) Diggs(0) Edit
加锁机制既可以确保可见性又可以确保原子性,而volatile变量只能确保可见性。public class NoVisibility { private static boolean ready; private static int number; private stat... Read More
posted @ 2014-09-20 16:18 等风来。。 Views(326) Comments(0) Diggs(0) Edit
Tomcat 经过长时间的发展,它已经广泛的被市场接受和认可,尤其在企业级应用方面,Tomcat 仍然是第一选择。但是随着 Jetty 的发展,Jetty 的市场份额也在不断提高。1.架构 Jetty 比 Tomcat 更加简单。Jetty 的所有组件都是基于 Handler 来实现。可以说 ... Read More
posted @ 2014-09-20 00:42 等风来。。 Views(929) Comments(0) Diggs(0) Edit
The Apache JServ Protocol (AJP) is a binary protocol that can proxy inbound requests from a web server through to an application serverthat sits behin... Read More
posted @ 2014-09-20 00:10 等风来。。 Views(3564) Comments(0) Diggs(0) Edit
Before obtaining an item each thread must acquire a permit from the semaphore, guaranteeing that an item is available for use. When the thread has fin Read More
posted @ 2014-09-18 23:06 等风来。。 Views(474) Comments(0) Diggs(0) Edit
转载SPDY 是什么 SPDY 是 Google 开发的基于传输控制协议 (TCP) 的应用层协议 ,开发组正在推动 SPDY 成为正式标准(现为互联网草案)。SPDY 协议旨在通过压缩、多路复用和优先级来缩短网页的加载时间和提高安全性。(SPDY : Speedy )1.SPDY 与 HTTP ... Read More
posted @ 2014-09-14 23:20 等风来。。 Views(339) Comments(0) Diggs(0) Edit
Architecture of a Highly Scalable NIO-Based ServerSelectorsA selector (java.nio.channels.Selectorand subclasses) provides a mechanism for waiting on c... Read More
posted @ 2014-09-11 23:49 等风来。。 Views(277) Comments(0) Diggs(0) Edit
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 55 下一页
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------