Quantcast
Channel: 《线程安全与共享资源》的评论
Browsing latest articles
Browse All 2 View Live

作者:夕水溪下

总结: 1.局部变量中的基本数据类型(8种)永远是线程安全的。 2.局部变量中的对象类型只要不会被其他线程访问到,也是线程安全的。 3.一个对象实例被多个线程同时访问时,他的成员变量就可能是线程不安全的。

View Article


作者:pig

总结的很好

View Article

Browsing latest articles
Browse All 2 View Live