摘要:
1. java.lang.Object#wait() Causes the current thread to wait until another thread invokes the{@link java.lang.Object#notify()} method or the{@link jav 阅读全文
摘要:
在 Java 中线程的生命周期中一共有 6 种状态。 1. NEW Thread state for a thread which has not yet started. 新建状态,线程被创建出来,但尚未启动时的线程状态。 2. RUNNABLE A thread in the runnable 阅读全文
摘要:
CMS(Concurrent Mark Sweep)收集器是一种以获取最短回收停顿时间为目标的收集器。目前很大一部分的Java应用集中在互联网网站或者基于浏览器的B/S系统的服务端上,这类应用通常都会较为关注服务的响应速度,希望系统停顿时间尽可能短,以给用户带来良好的交互体验。CMS收集器就非常符合 阅读全文