摘要: Java SE 6 provides an in-depth focus on performance, offering expanded tools for managing and monitoring applications and for diagnosing common proble... 阅读全文
posted @ 2014-11-10 19:30 一天不进步,就是退步 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 原文:http://stackoverflow.com/questions/4422211/what-is-the-difference-between-facade-and-gateway-design-patternsReviewing Facade in the GoF book and th... 阅读全文
posted @ 2014-11-10 18:44 一天不进步,就是退步 阅读(609) 评论(0) 推荐(0) 编辑
摘要: This chapter describes in detail the troubleshooting tools that are available in JDK 7. In addition, the chapter lists operating-system-specific tools... 阅读全文
posted @ 2014-11-10 16:04 一天不进步,就是退步 阅读(915) 评论(0) 推荐(0) 编辑
摘要: Java没有提供任何机制来安全地终止线程,虽然Thread.stop和suspend等方法提供了这样的机制,但是存在严重的缺陷,应该避免使用这些方法。但是Java提供了中断Interruption机制,这是一种协作机制,能够使一个线程终止另一个线程的当前工作。这种协作方式是必要的,我们很少希望某个任... 阅读全文
posted @ 2014-11-10 09:31 一天不进步,就是退步 阅读(1360) 评论(0) 推荐(1) 编辑
摘要: Semaphore用于保存当前可用许可的数量。是通过共享锁实现的。根据共享锁的获取原则,Semaphore分为"公平信号量"和"非公平信号量"。"公平信号量"和"非公平信号量"的释放信号量的机制是一样的!不同的是它们获取信号量的机制:线程在尝试获取信号量许可时,对于公平信号量而言,如果当前线程不在队... 阅读全文
posted @ 2014-11-10 09:22 一天不进步,就是退步 阅读(307) 评论(0) 推荐(0) 编辑