摘要:
Below I present you two different ways to get the current Class: Using Thread Using getClass() The simplest way to get the name of the class where you 阅读全文
posted @ 2016-06-04 16:25 huhuuu 阅读(1454) 评论(0) 推荐(0)
|
|||
|
摘要:
Below I present you two different ways to get the current Class: Using Thread Using getClass() The simplest way to get the name of the class where you 阅读全文
posted @ 2016-06-04 16:25 huhuuu 阅读(1454) 评论(0) 推荐(0)
摘要:
普通情况下,是不会出现“GThread:XThread” 这种情况的,但是在上述高并发,并且共享内存的情况下就可能出现问题! 可以通过这样加锁: 总结:在高并发并且有共享内存的情况下,有几个方法解决并发问题: 1、把共享内存的变量变成线程内部的变量。(有时候是没必要线程共享变量)。 2、在必要线程共 阅读全文
posted @ 2016-06-04 15:52 huhuuu 阅读(1379) 评论(0) 推荐(0) |
|||