Tekkaman

导航

 

threadlocal

  Thread-local data is data whose values are thread specific. To manage thread-local data, just create an instance of local (or a subclass) and store attributes on it:

  

  The instance’s values will be different for separate threads.

  

  执行结果:

  

参考:http://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001431928972981094a382e5584413fa040b46d46cce48e000

posted on 2016-07-29 15:06  Tekkaman  阅读(246)  评论(0编辑  收藏  举报