
java
mxy2002924
这个作者很懒,什么都没留下…
展开
-
java InterruptedException 的价值
[b]这里谈java 中的InterruptedException ,主要对如下让人迷惑的问题进行探讨:[/b][b]1: 什么情况下出现InterruptedException 这个异常 [/b][b]2: 出现这个异常有什么的目的[/b]InterruptedException 是个检查异常,在出现Thread.sleep() 和 Object.wait() 这类方法时候,编译...2009-10-12 17:11:29 · 88 阅读 · 0 评论 -
sun unsaft 有关的好文章
http://blog.youkuaiyun.com/fenglibing/article/details/17138079原创 2014-12-18 11:40:43 · 555 阅读 · 0 评论 -
jni 网站集锦
http://www.cnblogs.com/hoys/archive/2011/09/30/2196290.htmlhttp://www.ibm.com/developerworks/cn/java/j-lo-jnileak/原创 2015-11-10 09:05:46 · 97 阅读 · 0 评论 -
netty 加入自定义jni epoll实现
java 和netty epoll实现Java NIO根据操作系统不同, 针对nio中的Selector有不同的实现:macosx: KQueueSelectorProvidersolaris: DevPollSelectorProviderLinux: EPollSelectorProvider (Linux kernels >= 2.6)或 PollS...原创 2015-09-24 09:21:56 · 1069 阅读 · 0 评论 -
semaphore deadlock
semaphore 只所以可以避免死锁,是因为它的accquire() 和 release()可以不在同一个线程中, 没有拥有关系 ,只有个数的对应Semaphore threadLock = new Semaphore(0); ,此处个数为0 或者负值 ,需要先释放再 获取。...原创 2015-08-27 12:44:46 · 168 阅读 · 0 评论 -
Minor GC Major GC
新生代 GC(Minor GC):指发生在新生代的垃圾收集动作,因为 Java 对象大多都具备朝生夕灭的特性,所以 Minor GC 非常频繁,一般回收速度也比较快老年代 GC(Major GC / Full GC):指发生在老年代的 GC,MajorGC 的速度一般会比 Minor GC 慢 10倍以上 ,但是MinorGC 长久不能回收,会向Majorb GC 转变。...原创 2015-08-26 10:31:46 · 86 阅读 · 0 评论 -
java nio bug -- infamous epoll 100% CPU bug
in netty use rebuildSelectors() to workaround the infamous epoll 100% CPU bug;with newly created {@link Selector}s to replace old one.Linux-like OSs的选择器使用的是epoll-IO事件通知工具。这是一个在操作系统以异步方式工作的网络...原创 2015-08-24 17:54:43 · 378 阅读 · 0 评论 -
volatile,atomic ,atomicIntegerFieldUpdater
对volatile,atomic ,atomicIntegerFieldUpdater 讲的让人明白的文章。http://wsmajunfeng.iteye.com/blog/1520705原创 2015-08-19 14:26:37 · 108 阅读 · 0 评论 -
locksupport.park,unpark 和object.wait ,notify 的区分 很好的文章
http://www.myexception.cn/java-other/1873792.html原创 2016-05-19 15:21:53 · 377 阅读 · 0 评论 -
volatile 与 unsafe.putorderlong的使用区别
lazySet是使用Unsafe.putOrderedObject方法,这个方法在对低延迟代码是很有用的,它能够实现非堵塞的写入,这些写入不会被Java的JIT重新排序指令(instruction reordering),这样它使用快速的存储-存储(store-store) barrier, 而不是较慢的存储-加载(store-load) barrier, 后者总是用在volatile的写操作上...原创 2016-05-18 14:41:24 · 2112 阅读 · 0 评论 -
disruptor的阅读笔记
如何实现事件的多播,一个事件被一个线程消耗后,变成了何种状态如何实现的高性能,无锁,原创 2016-05-18 09:10:04 · 136 阅读 · 0 评论 -
java gc
1: java 中类加载器加载的类 是放在 pergeneration, 所以纸造过多的classloader去加载类, 会形成过多的类对象存在pergeneration中,最终会造成gc的负担, 因为perm generation 的收集需要full gc。...原创 2016-05-17 16:08:53 · 120 阅读 · 0 评论 -
eclipse svn 设置点点
1: window->preference->General->Appearance->Label Decorations 可以控制是否显示svn文件的版本号。2:window->preference->Team->Console->show console automatically (on output), 可以显示svn更新的文件信息。3: http://subclipse....原创 2014-10-10 12:58:45 · 126 阅读 · 0 评论 -
关于disruptor 我要记录的
https://github.com/LMAX-Exchange/disruptor原创 2016-04-29 14:36:26 · 136 阅读 · 0 评论 -
jetty continuation
下面的链接 解释了jetty 的长链接的实现原理: request,reposnse 的重入. jetty的continuation是用于异步处理请求,简单的讲,请求模型不再是一请求一线程,而是在请求的过程中,可以挂起当前请求,用该容器线程处理别的请求。减小请求线程数,从而减少内存占用和上下文切换。还可以使得应用对于请求更可控,比如针对不同优先级请求分别排队等。servlet3中也...原创 2016-04-25 16:23:37 · 215 阅读 · 0 评论 -
hmac 加密
http://blog.youkuaiyun.com/happylee6688/article/details/43968549 java version. http://studygolang.com/articles/6599 golang原创 2016-04-06 10:05:21 · 101 阅读 · 0 评论