Chinaunix首页 | 论坛 | 博客
  • 博客访问: 268639
  • 博文数量: 88
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 840
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-20 21:13
文章分类

全部博文(88)

文章存档

2022年(1)

2017年(1)

2016年(2)

2015年(1)

2014年(83)

发布时间:2014-08-25 14:22:02

原文:http://www.ibm.com/developerworks/cn/java/j-jtp10264/index.html多线程和并发性并不是什么新内容,但是 Java 语言设计中的创新之一就是,它是第一个直接把跨平台线程模型和正规的内存模型集成到语言中的主流语言。核心类库包含一个 Thread 类,可以用它来构建、启动和操纵线程,Java 语言包括了跨.........【阅读全文】

阅读(665) | 评论(0) | 转发(0)

发布时间:2014-08-25 09:21:41

Why Are Thread.stop, Thread.suspend, Thread.resume and Runtime.runFinalizersOnExit Deprecated ?Why is Thread.stop deprecated?Because it is inherently unsafe. Stopping a thread causes it to unlock all the monitors that it has locked. (The monitors are unlocked as the ThreadDeath exceptio.........【阅读全文】

阅读(1447) | 评论(0) | 转发(0)

发布时间:2014-08-20 12:53:38

双重检查锁定失败可能性——参照《The "Double-Checked Locking is Broken" Declaration》......【阅读全文】

阅读(489) | 评论(0) | 转发(0)

发布时间:2014-08-14 15:04:23

在JDK1.7的新特性方面主要有下面几方面的增强: 1.jdk7语法上    1.1二进制变量的表示,支持将整数类型用二进制来表示,用0b开头。点击(此处)折叠或打开// 所有整数 int, short,long,byte都可以用二进制表示     // An 8-bit 'b.........【阅读全文】

阅读(10993) | 评论(0) | 转发(0)

发布时间:2014-08-11 09:10:05

转载请注明出处:http://cantellow.iteye.com/blog/838473 第一种(懒汉,线程不安全): 点击(此处)折叠或打开public class Singleton {    private static Singleton instance;.........【阅读全文】

阅读(582) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册