What is the effect of Thread.CurrentThread () in JAVA __java

Source: Internet
Author: User


Heroes, the Java Thread.CurrentThread () what role ah. 397458726 | Browse 10,631 times 2009-09-16 13:39 2009-09-16 13:52 Best Answer
Thread.CurrentThread () can get a reference to the current thread, typically by Thread.CurrentThread () when there is no thread object and need to obtain thread information.
This answer is recommended by the questioner (6) 84 1 release comment Wind Snow _2012 | 2015-8-9 17:27 Thank you, big God, back to life change | 2015-8-8 10:41 No object will have a reference to it. Reply 67287919 | 2014-8-11 19:45 A See is a master reply Likevensin music | 2012-9-25 09:41 A good answer, anger praise ^ω^ reply Liulinlilll | 2012-9-18 12:15 O (≧v≦) o~~ Good reply Heroes, the Java Thread.CurrentThread () what role ah. 397458726 | Browse 10,631 times 2009-09-16 13:39 2009-09-16 13:52 Best Answer
Thread.CurrentThread () can get a reference to the current thread, typically by Thread.CurrentThread () when there is no thread object and need to obtain thread information.
This answer is recommended by the questioner (6) 84 1 release comment Wind Snow _2012 | 2015-8-9 17:27 Thank you, big God, back to life change | 2015-8-8 10:41 No object will have a reference to it. Reply 67287919 | 2014-8-11 19:45 A look is a master reply

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.