摘要:
转载自:http://blog.csdn.net/hekewangzi/article/details/45646279 阅读全文
posted @ 2016-08-31 13:47
你明哥
阅读(168)
评论(0)
推荐(0)
摘要:
转载自:http://blog.csdn.net/hekewangzi/article/details/45645831 阅读全文
posted @ 2016-08-31 13:38
你明哥
阅读(139)
评论(0)
推荐(0)
摘要:
转载自:http://blog.csdn.net/hekewangzi/article/details/41349591 阅读全文
posted @ 2016-08-31 10:49
你明哥
阅读(139)
评论(0)
推荐(0)
摘要:
转载自:http://blog.csdn.net/hekewangzi/article/details/41345237 阅读全文
posted @ 2016-08-31 10:28
你明哥
阅读(154)
评论(0)
推荐(0)
摘要:
synchronized 多用于并发不高并且需要单线程运行的地方。比如你有一个A方法,你在方法上加了synchronized修饰。那么两个人同时去调用这个方法的时候不是并行的,是抢占的,谁先抢到资源谁就先去调用,慢的人必须等先用的人使用完毕将资源释放后才能使用方法。 阅读全文
posted @ 2016-08-31 09:03
你明哥
阅读(130)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) { for(Thread t:getThreads()){ t.start(); } } public static Thread[] getThreads(){ Thread[] thread = new Thread[ 阅读全文
posted @ 2016-08-30 13:53
你明哥
阅读(467)
评论(0)
推荐(0)
摘要:
转载自:http://blog.csdn.net/hekewangzi/article/details/41324441 阅读全文
posted @ 2016-08-29 17:16
你明哥
阅读(141)
评论(0)
推荐(0)
摘要:
转载自:http://blog.csdn.net/hekewangzi/article/details/49047395 阅读全文
posted @ 2016-08-29 16:40
你明哥
阅读(116)
评论(0)
推荐(0)
摘要:
转载自:http://blog.csdn.net/hekewangzi/article/details/49990799 阅读全文
posted @ 2016-08-29 16:24
你明哥
阅读(656)
评论(0)
推荐(0)
摘要:
转载自:http://blog.csdn.net/hekewangzi/article/details/51712821 阅读全文
posted @ 2016-08-29 10:08
你明哥
阅读(109)
评论(0)
推荐(0)
浙公网安备 33010602011771号